Changeset 6704 for code/branches/gamestates2/data/gui/scripts/BasicGUI.lua
- Timestamp:
- Apr 12, 2010, 11:23:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/BasicGUI.lua
r6662 r6704 8 8 9 9 -- constructor of the GUI 10 function P:new(_ filename, _gui, _visible)10 function P:new(_name, _gui, _visible) 11 11 local newElement = { 12 filename = _filename,12 name = _name, 13 13 gui = _gui, 14 14 visible = _visible or false … … 25 25 -- Override this function if you want to change one of the three input parameters: 26 26 -- showCursor = true, useKeyboard = true and blockJoyStick = false 27 -- But don't forget to stick to the naming convention ("GUI_" .. self. filename)27 -- But don't forget to stick to the naming convention ("GUI_" .. self.name) 28 28 function P:createInputState() 29 self.inputState = guiMgr:createInputState("GUI_" .. self. filename)29 self.inputState = guiMgr:createInputState("GUI_" .. self.name) 30 30 end 31 31 … … 43 43 44 44 function P:load() 45 self.window = winMgr:loadWindowLayout(self. filename .. ".layout")45 self.window = winMgr:loadWindowLayout(self.name .. ".layout") 46 46 self:createInputState() 47 47 self:init()
Note: See TracChangeset
for help on using the changeset viewer.