1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

The Ubiquitousse Update

This commit is contained in:
Reuh 2016-12-23 17:22:38 +01:00
parent 8ccf3534bc
commit 07cc7216a1
9 changed files with 96 additions and 96 deletions

View file

@ -7,7 +7,7 @@
local version = "0.0.1"
-- Require stuff
local abstract = require((...):match("^(.-abstract)%."))
local uqt = require((...):match("^(.-ubiquitousse)%."))
local ctr = require("ctr")
local gfx = require("ctr.gfx")
@ -18,7 +18,7 @@ do
local txt = ("Abstract ctrµLua backend version "..version.." was made for %s %s but %s is used!\nThings may not work as expected.")
:format(stuffName, expectedVersion, actualVersion)
print(txt)
for i=0,300 do
for _=0,300 do
gfx.start(gfx.TOP)
gfx.wrappedText(0, 0, txt, gfx.TOP_WIDTH)
gfx.stop()
@ -27,7 +27,7 @@ do
end
end
-- checkCompat("ctrµLua", "", ("%s.%s.%s"):format(love.getVersion())) -- not really a version, just get the latest build
checkCompat("abstract", "0.0.1", abstract.version)
checkCompat("abstract", "0.0.1", uqt.version)
end
-- Redefine all functions in tbl which also are in toAdd, so when used they call the old function (in tbl) and then the new (in toAdd).
@ -41,20 +41,20 @@ local function add(tbl, toAdd)
end
end
-- abstract
abstract.backend = "ctrulua"
-- uqt
uqt.backend = "ctrulua"
-- abstract.event: TODO
-- uqt.event: TODO
-- abstract.draw: TODO
-- uqt.draw: TODO
-- abstract.audio: TODO
-- uqt.audio: TODO
-- abstract.time
if abstract.time then
add(abstract.time, {
-- uqt.time
if uqt.time then
add(uqt.time, {
get = ctr.time
})
end
-- abstract.input: TODO
-- uqt.input: TODO