Changeset 5523
- Timestamp:
- May 19, 2009, 11:43:04 AM (16 years ago)
- Location:
- data/media/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/gui.lua
r5491 r5523 15 15 setmetatable(newElement, self) -- connects new element with class 16 16 self.__index = self 17 P:init() 17 18 return newElement 19 end 20 21 function P:init() 22 -- this function is empty and intended for inheriting GUIs to use 18 23 end 19 24 -
data/media/gui/scripts/mainmenu_2.lua
r5491 r5523 8 8 P.layoutString = "MainMenu_2.layout" 9 9 10 -- overwrites load function of previous load function 11 function P:load() 12 element = P.__index.load(P) -- calling load function of parent class with ourselves and do other stuff now 10 function P:init() 13 11 --win = winMgr:getWindow("orxonox/LevelListBox") 14 12 --print(win.getItemCount()) … … 17 15 --win:addItem(item) 18 16 --print(win:getItemCount()) 19 return element20 17 end 21 18
Note: See TracChangeset
for help on using the changeset viewer.