feat: add a way to pass arbitrary in scene switch
This commit is contained in:
parent
47b86c1862
commit
d118a998ad
2 changed files with 7 additions and 2 deletions
|
@ -122,8 +122,9 @@ function Gui:hideScreen(screenname)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function Gui:showScreen(screenname)
|
function Gui:showScreen(screenname, focusElement, widgetId, page, arbitraryDatas)
|
||||||
self.screens[screenname]:show()
|
self.screens[screenname]:show(focusElement, widgetId, page)
|
||||||
|
self.screens[screenname]:setDatas(arbitraryDatas)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- SOUND FUNCTIONS
|
-- SOUND FUNCTIONS
|
||||||
|
|
|
@ -65,6 +65,10 @@ function GuiScreen:showSimple(focusElement, widgetId, page)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GuiScreen:setDatas(datas)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
function GuiScreen:hide()
|
function GuiScreen:hide()
|
||||||
if (self.isVisible) then
|
if (self.isVisible) then
|
||||||
if (self.transforms["hide"] ~= nil) then
|
if (self.transforms["hide"] ~= nil) then
|
||||||
|
|
Loading…
Reference in a new issue