Changeset 6704 for code/branches
- Timestamp:
- Apr 12, 2010, 11:23:45 PM (15 years ago)
- Location:
- code/branches/gamestates2/data/gui/scripts
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/AudioMenu.lua
r6662 r6704 169 169 170 170 function P.AudioBackButton_clicked(e) 171 hideGUI(P. filename)171 hideGUI(P.name) 172 172 end 173 173 -
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() -
code/branches/gamestates2/data/gui/scripts/ControlsMenu.lua
r6662 r6704 12 12 13 13 function P.ControlsBackButton_clicked(e) 14 hideGUI(P. filename)14 hideGUI(P.name) 15 15 end 16 16 -
code/branches/gamestates2/data/gui/scripts/CreditsMenu.lua
r6666 r6704 4 4 5 5 function P.CreditsBackButton_clicked(e) 6 hideGUI(P. filename)6 hideGUI(P.name) 7 7 end 8 8 -
code/branches/gamestates2/data/gui/scripts/GameplayMenu.lua
r6662 r6704 37 37 38 38 function P.GameplayBackButton_clicked(e) 39 hideGUI(P. filename)39 hideGUI(P.name) 40 40 end 41 41 -
code/branches/gamestates2/data/gui/scripts/GraphicsMenu.lua
r6662 r6704 192 192 193 193 function P.GraphicsBackButton_clicked(e) 194 hideGUI(P. filename)194 hideGUI(P.name) 195 195 end 196 196 -
code/branches/gamestates2/data/gui/scripts/InfoPopup.lua
r6662 r6704 29 29 -- events for ingamemenu 30 30 function P.close(e) 31 hideGUI(P. filename)31 hideGUI(P.name) 32 32 end 33 33 -
code/branches/gamestates2/data/gui/scripts/KeyBindMenu.lua
r6662 r6704 126 126 plus:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 127 127 plus:setText("add") 128 orxonox.GUIManager:subscribeEventHelper(plus, "Clicked", P. filename .. ".KeyBindPlus_clicked")128 orxonox.GUIManager:subscribeEventHelper(plus, "Clicked", P.name .. ".KeyBindPlus_clicked") 129 129 line:addChildWindow(plus) 130 130 offset = offset + addWidth + spaceWidth … … 141 141 button:setSize(CEGUI.UVector2(CEGUI.UDim(0, buttonWidth), CEGUI.UDim(0.7, 0))) 142 142 button:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 143 orxonox.GUIManager:subscribeEventHelper(button, "Clicked", P. filename .. ".KeyBindButton_clicked")144 --button:subscribeScriptedEvent("EventClicked", P. filename .. ".KeyBindButton_clicked")143 orxonox.GUIManager:subscribeEventHelper(button, "Clicked", P.name .. ".KeyBindButton_clicked") 144 --button:subscribeScriptedEvent("EventClicked", P.name .. ".KeyBindButton_clicked") 145 145 line:addChildWindow(button) 146 146 offset = offset + buttonWidth … … 150 150 clear:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 151 151 clear:setText("X") 152 orxonox.GUIManager:subscribeEventHelper(clear, "Clicked", P. filename .. ".KeyBindClear_clicked")152 orxonox.GUIManager:subscribeEventHelper(clear, "Clicked", P.name .. ".KeyBindClear_clicked") 153 153 line:addChildWindow(clear) 154 154 offset = offset + clearWidth + spaceWidth -
code/branches/gamestates2/data/gui/scripts/MouseControlsMenu.lua
r6662 r6704 95 95 96 96 function P.MouseControlsBackButton_clicked(e) 97 hideGUI(P. filename)97 hideGUI(P.name) 98 98 end 99 99 -
code/branches/gamestates2/data/gui/scripts/MultiplayerMenu.lua
r6662 r6704 67 67 68 68 function P.MultiplayerBackButton_clicked(e) 69 hideGUI(P. filename)69 hideGUI(P.name) 70 70 end 71 71 -
code/branches/gamestates2/data/gui/scripts/MultiplayerOptionsMenu.lua
r6662 r6704 4 4 5 5 function P.MultiplayerOptionsBackButton_clicked(e) 6 hideGUI(P. filename)6 hideGUI(P.name) 7 7 end 8 8 -
code/branches/gamestates2/data/gui/scripts/QuestGUI.lua
r6662 r6704 11 11 local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") 12 12 13 local window = questManager:getQuestGUI(P. filename)13 local window = questManager:getQuestGUI(P.name) 14 14 15 15 questsList:addChildWindow(window) -
code/branches/gamestates2/data/gui/scripts/SettingsMenu.lua
r6662 r6704 29 29 30 30 function P.SettingsBackButton_clicked(e) 31 hideGUI(P. filename)31 hideGUI(P.name) 32 32 end 33 33 -
code/branches/gamestates2/data/gui/scripts/SingleplayerMenu.lua
r6662 r6704 39 39 40 40 function P.SingleplayerBackButton_clicked(e) 41 hideGUI(P. filename)41 hideGUI(P.name) 42 42 end 43 43
Note: See TracChangeset
for help on using the changeset viewer.