Changeset 6621 for code/branches/gamestate/data/gui
- Timestamp:
- Mar 26, 2010, 8:51:37 PM (15 years ago)
- Location:
- code/branches/gamestate/data/gui/scripts
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/data/gui/scripts/AudioMenu.lua
r6571 r6621 1 1 -- AudioMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("AudioMenu") 5 if _REQUIREDNAME == nil then 6 AudioMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("AudioMenu") 10 4 11 5 function P:init() -
code/branches/gamestate/data/gui/scripts/BasicGUI.lua
r6537 r6621 1 -- gui.lua1 -- BasicGUI.lua 2 2 3 3 local P = {} 4 if _REQUIREDNAME == nil then 5 BasicGUI = P 6 else 7 _G[_REQUIREDNAME] = P 8 end 4 _G[_REQUIREDNAME or "BasicGUI"] = P 9 5 10 6 -- useless, even wrong? P is the class, not the object.. … … 27 23 end 28 24 29 -- Override this function if you need to 25 -- Override this function if you want to change one of the three input parameters: 26 -- showCursor = true, useKeyboard = true and blockJoyStick = false 30 27 -- But don't forget to stick to the naming convention ("GUI_" .. self.filename) 31 28 function P:createInputState() -
code/branches/gamestate/data/gui/scripts/ControlsMenu.lua
r6459 r6621 1 1 -- ControlsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("ControlsMenu") 5 if _REQUIREDNAME == nil then 6 ControlsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("ControlsMenu") 10 4 11 5 function P.ControlsMouseControlsButton_clicked(e) -
code/branches/gamestate/data/gui/scripts/CreditsMenu.lua
r6459 r6621 1 1 -- CreditsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("CreditsMenu") 5 if _REQUIREDNAME == nil then 6 CreditsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local sheetName = _REQUIREDNAME or "CreditsMenu" 4 -- Create object of type BasicGUI and make it global 5 local P = require("BasicGUI"):new(sheetName) 6 _G[sheetName] = P 10 7 11 8 function P.CreditsBackButton_clicked(e) -
code/branches/gamestate/data/gui/scripts/DecisionPopup.lua
r6537 r6621 1 1 -- DecisionPopup.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("DecisionPopup") 5 if _REQUIREDNAME == nil then 6 DecisionPopup = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("DecisionPopup") 10 4 11 5 function P.setCallback(functionPtr) -
code/branches/gamestate/data/gui/scripts/GUITools.lua
r6417 r6621 1 function createSheet(sheetName) 2 -- Create object of type BasicGUI and make it global 3 local sheet = require("BasicGUI"):new(sheetName) 4 _G[sheetName] = sheet 5 return sheet 6 end 7 1 8 function openDecisionPopup( text, callbackPtr ) 2 9 showGUI("DecisionPopup", false, true) -
code/branches/gamestate/data/gui/scripts/GameplayMenu.lua
r6571 r6621 1 1 -- GameplayMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("GameplayMenu") 5 if _REQUIREDNAME == nil then 6 GameplayMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("GameplayMenu") 10 4 11 5 function P:init() -
code/branches/gamestate/data/gui/scripts/GraphicsMenu.lua
r6571 r6621 1 1 -- GraphicsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("GraphicsMenu") 5 if _REQUIREDNAME == nil then 6 GraphicsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("GraphicsMenu") 10 4 11 5 function P:init() -
code/branches/gamestate/data/gui/scripts/InGameMenu.lua
r6537 r6621 1 1 -- InGameMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("InGameMenu") 5 if _REQUIREDNAME == nil then 6 InGameMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("InGameMenu") 10 4 11 5 -- events for ingamemenu -
code/branches/gamestate/data/gui/scripts/InfoPopup.lua
r6537 r6621 1 1 -- InfoPopup.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("InfoPopup") 5 6 if _REQUIREDNAME == nil then 7 InfoPopup = P 8 else 9 _G[_REQUIREDNAME] = P 10 end 3 local P = createSheet("InfoPopup") 11 4 12 5 function P.execute(functionPtr, arguments) -
code/branches/gamestate/data/gui/scripts/KeyBindMenu.lua
r6564 r6621 1 1 -- KeyBindMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("KeyBindMenu") 5 6 if _REQUIREDNAME == nil then 7 KeyBindMenu = P 8 else 9 _G[_REQUIREDNAME] = P 10 end 3 local P = createSheet("KeyBindMenu") 11 4 12 5 function P:init() -
code/branches/gamestate/data/gui/scripts/MainMenu.lua
r6459 r6621 1 1 -- MainMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("MainMenu") 5 if _REQUIREDNAME == nil then 6 MainMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("MainMenu") 10 4 11 5 -- events for MainMenu -
code/branches/gamestate/data/gui/scripts/MouseControlsMenu.lua
r6459 r6621 1 1 -- MouseControlsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("MouseControlsMenu") 5 if _REQUIREDNAME == nil then 6 MouseControlsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("MouseControlsMenu") 10 4 11 5 function P:init() -
code/branches/gamestate/data/gui/scripts/MultiplayerMenu.lua
r6571 r6621 1 1 -- MultiplayerMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("MultiplayerMenu") 5 if _REQUIREDNAME == nil then 6 MultiplayerMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("MultiplayerMenu") 10 4 11 5 function P:init() -
code/branches/gamestate/data/gui/scripts/MultiplayerOptionsMenu.lua
r6459 r6621 1 1 -- MultiplayerOptionsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("MultiplayerOptionsMenu") 5 if _REQUIREDNAME == nil then 6 MultiplayerOptionsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("MultiplayerOptionsMenu") 10 4 11 5 function P.MultiplayerOptionsBackButton_clicked(e) -
code/branches/gamestate/data/gui/scripts/PickupInventory.lua
r6459 r6621 1 1 -- PickupInventory.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("PickupInventory") 5 if _REQUIREDNAME == nil then 6 PickupInventory = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("PickupInventory") 10 4 11 5 P.lastEquipmentCount_ = 0 -
code/branches/gamestate/data/gui/scripts/QuestGUI.lua
r6459 r6621 1 gui = require("BasicGUI") 2 local P = BasicGUI:new("QuestGUI") 3 if _REQUIREDNAME == nil then 4 QuestGUI = P 5 else 6 _G[_REQUIREDNAME] = P 7 end 1 -- QuestGUI.lua 2 3 local P = createSheet("QuestGUI") 8 4 9 5 function P:show() -
code/branches/gamestate/data/gui/scripts/SettingsMenu.lua
r6459 r6621 1 1 -- SettingsMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("SettingsMenu") 5 if _REQUIREDNAME == nil then 6 SettingsMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("SettingsMenu") 10 4 11 5 function P.SettingsGameplayButton_clicked(e) -
code/branches/gamestate/data/gui/scripts/SingleplayerMenu.lua
r6571 r6621 1 1 -- SingleplayerMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new("SingleplayerMenu") 5 if _REQUIREDNAME == nil then 6 SingleplayerMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createSheet("SingleplayerMenu") 10 4 11 5 function P:init()
Note: See TracChangeset
for help on using the changeset viewer.