Changeset 6666
- Timestamp:
- Mar 31, 2010, 2:37:45 AM (15 years ago)
- Location:
- code/branches/gamestates2/data/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/CreditsMenu.lua
r6662 r6666 1 1 -- CreditsMenu.lua 2 2 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 3 local P = createSheet("CreditsMenu") 7 4 8 5 function P.CreditsBackButton_clicked(e) -
code/branches/gamestates2/data/gui/scripts/GUITools.lua
r6662 r6666 1 1 function createSheet(sheetName) 2 2 -- Create object of type BasicGUI and make it global 3 local sheet = require("BasicGUI"):new(sheetName) 3 local basicGUI = require("BasicGUI") 4 if basicGUI == nil then 5 error("Loading BasicGUI.lua failed") 6 end 7 local sheet = basicGUI:new(sheetName) 4 8 _G[sheetName] = sheet 5 9 return sheet
Note: See TracChangeset
for help on using the changeset viewer.