Changeset 6659 for code/branches/gamestate/data/gui/scripts
- Timestamp:
- Mar 30, 2010, 4:34:01 PM (15 years ago)
- Location:
- code/branches/gamestate/data/gui/scripts
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/data/gui/scripts/AudioMenu.lua
r6621 r6659 3 3 local P = createSheet("AudioMenu") 4 4 5 function P :init()5 function P.init() 6 6 soundMgr = orxonox.SoundManager:getInstance() 7 7 block = false -
code/branches/gamestate/data/gui/scripts/GameplayMenu.lua
r6623 r6659 3 3 local P = createSheet("GameplayMenu") 4 4 5 function P :init()5 function P.init() 6 6 dropdown = winMgr:getWindow("orxonox/ThemeCombobox") 7 7 local themeList = {} -
code/branches/gamestate/data/gui/scripts/GraphicsMenu.lua
r6623 r6659 3 3 local P = createSheet("GraphicsMenu") 4 4 5 function P :init()5 function P.init() 6 6 block = true 7 7 file = orxonox.PathConfig:getConfigPathString() .. orxonox.getConfig("GraphicsManager", "ogreConfigFile_") -
code/branches/gamestate/data/gui/scripts/KeyBindMenu.lua
r6621 r6659 3 3 local P = createSheet("KeyBindMenu") 4 4 5 function P :init()5 function P.init() 6 6 7 7 commandList = {} -
code/branches/gamestate/data/gui/scripts/MouseControlsMenu.lua
r6621 r6659 3 3 local P = createSheet("MouseControlsMenu") 4 4 5 function P :init()5 function P.init() 6 6 block = false 7 7 mousenormalscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalScrollbar"),"CEGUI::Scrollbar") -
code/branches/gamestate/data/gui/scripts/MultiplayerMenu.lua
r6621 r6659 3 3 local P = createSheet("MultiplayerMenu") 4 4 5 function P :init()5 function P.init() 6 6 listbox = winMgr:getWindow("orxonox/MultiplayerLevelListbox") 7 7 preselect = orxonox.LevelManager:getInstance():getDefaultLevel() -
code/branches/gamestate/data/gui/scripts/PickupInventory.lua
r6621 r6659 8 8 9 9 -- events 10 function P :frmUpdate(e)10 function P.frmUpdate(e) 11 11 local equipCount = orxonox.PickupInventory:getEquipmentCount() 12 12 local usableCount = orxonox.PickupInventory:getUsableCount() 13 13 14 if equipCount ~= self.lastEquipmentCount_ or usableCount ~= self.lastUsableCount_ then15 self:updateTabs()14 if equipCount ~= P.lastEquipmentCount_ or usableCount ~= P.lastUsableCount_ then 15 P.updateTabs() 16 16 end 17 17 end … … 25 25 end 26 26 27 function P :mItemClicked(e)27 function P.mItemClicked(e) 28 28 local w = CEGUI.toWindowEventArgs(e).window 29 29 local name = w:getName() … … 36 36 37 37 if t == "use" then 38 if self.currentUsableID_ >= 0 then39 winMgr:getWindow("orxonox/Inventory/Title/use/" .. self.currentUsableID_):setProperty("TextColours", "tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF")38 if P.currentUsableID_ >= 0 then 39 winMgr:getWindow("orxonox/Inventory/Title/use/" .. P.currentUsableID_):setProperty("TextColours", "tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF") 40 40 end 41 41 orxonox.PickupInventory:selectUsable(tonumber(i)) 42 self.currentUsableID_ = tonumber(i)42 P.currentUsableID_ = tonumber(i) 43 43 winMgr:getWindow("orxonox/Inventory/Title/use/" .. i):setProperty("TextColours", "tl:FFFF4444 tr:FFFF4444 bl:FFFF4444 br:FFFF4444") 44 44 end … … 46 46 47 47 -- methods 48 function P :updateTabs()48 function P.updateTabs() 49 49 local eqWin = winMgr:getWindow("orxonox/Inventory/TabControl/TabEquipment") 50 50 local usWin = winMgr:getWindow("orxonox/Inventory/TabControl/TabUsable") … … 52 52 orxonox.PickupInventory:getSingleton():updateTabs(winMgr, eqWin, usWin) 53 53 54 self.currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex()55 self.lastEquipmentCount_ = orxonox.PickupInventory:getEquipmentCount()56 self.lastUsableCount_ = orxonox.PickupInventory:getUsableCount()54 P.currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex() 55 P.lastEquipmentCount_ = orxonox.PickupInventory:getEquipmentCount() 56 P.lastUsableCount_ = orxonox.PickupInventory:getUsableCount() 57 57 end 58 58 -
code/branches/gamestate/data/gui/scripts/QuestGUI.lua
r6621 r6659 3 3 local P = createSheet("QuestGUI") 4 4 5 function P :show()6 self.window:show() -- TDO: Do this through parent...7 self.visible = true5 function P.show() 6 P.window:show() -- TDO: Do this through parent... 7 P.visible = true 8 8 9 9 local questManager = orxonox.QuestManager:getInstance() -
code/branches/gamestate/data/gui/scripts/SingleplayerMenu.lua
r6621 r6659 3 3 local P = createSheet("SingleplayerMenu") 4 4 5 function P :init()5 function P.init() 6 6 listbox = winMgr:getWindow("orxonox/SingleplayerLevelListbox") 7 7 preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
Note: See TracChangeset
for help on using the changeset viewer.