mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-28 01:29:31 +00:00
ubiquitousse.asset
This commit is contained in:
parent
bdb9e710d9
commit
ed683c6a70
5 changed files with 85 additions and 8 deletions
|
|
@ -21,7 +21,7 @@ local m = uqt.module
|
|||
-- * all scene change callbacks are called after setting scene.current to the new scene but before changing scene.stack
|
||||
-- * all scene exit/suspend callbacks are called before scene enter/resume callbacks
|
||||
local scene
|
||||
scene = {
|
||||
scene = setmetatable({
|
||||
--- The current scene table.
|
||||
-- @impl ubiquitousse
|
||||
current = nil,
|
||||
|
|
@ -131,6 +131,11 @@ scene = {
|
|||
draw = function(...)
|
||||
if scene.current then scene.current:draw(...) end
|
||||
end
|
||||
}
|
||||
}, {
|
||||
--- scene(...) is a shortcut for scene.new(...)
|
||||
__call = function(self, ...)
|
||||
return scene.new(...)
|
||||
end
|
||||
})
|
||||
|
||||
return scene
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue