Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit d118a998ad - Show all commits

View file

@ -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

View file

@ -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