Changeset 6537 for code/branches/gamestate/data/gui/scripts/BasicGUI.lua
- Timestamp:
- Mar 16, 2010, 1:49:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/data/gui/scripts/BasicGUI.lua
r6459 r6537 8 8 end 9 9 10 -- useless ?10 -- useless, even wrong? P is the class, not the object.. 11 11 P.overlay = nil 12 12 13 13 -- constructor of the GUI 14 function P:new(_filename, _ visible, _gui)14 function P:new(_filename, _gui, _visible) 15 15 local newElement = { 16 16 filename = _filename, … … 23 23 end 24 24 25 -- Override this function if you need to 25 26 function P:init() 26 -- this function is empty and intended for inheriting GUIs to use 27 end 28 29 -- Override this function if you need to 30 -- But don't forget to stick to the naming convention ("GUI_" .. self.filename) 31 function P:createInputState() 32 self.inputState = guiMgr:createInputState("GUI_" .. self.filename) 27 33 end 28 34 … … 41 47 function P:load() 42 48 self.window = winMgr:loadWindowLayout(self.filename .. ".layout") 49 self:createInputState() 43 50 self:init() 44 51 return self
Note: See TracChangeset
for help on using the changeset viewer.