Changeset 5661 for code/branches/resource2/data/gui/scripts
- Timestamp:
- Aug 19, 2009, 12:19:11 AM (15 years ago)
- Location:
- code/branches/resource2/data/gui/scripts
- Files:
-
- 9 deleted
- 1 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/data/gui/scripts/BasicGUI.lua
r5653 r5661 3 3 local P = {} 4 4 if _REQUIREDNAME == nil then 5 gui= P5 BasicGUI = P 6 6 else 7 7 _G[_REQUIREDNAME] = P … … 40 40 end 41 41 42 return gui or _G[_REQUIREDNAME]42 return P -
code/branches/resource2/data/gui/scripts/InitialiseGUI.lua
r5653 r5661 14 14 15 15 loadedGUIs = {} 16 17 -- datapath is set before executing the script and points to media-folder18 package.path = package.path .. ";" .. datapath .. "gui/scripts/?.lua"19 16 20 17 -- loads the GUI with the specified filename -
code/branches/resource2/data/gui/scripts/MainMenu.lua
r5653 r5661 1 -- mainmenu_2.lua 2 gui = require("gui") 3 local P = gui:new() --inherit everything from the gui package 1 -- MainMenu.lua 4 2 5 mainmenu_2 = P 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 if _REQUIREDNAME == nil then 6 MainMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 6 10 7 P.filename = " mainmenu_2"8 P.layoutString = "MainMenu _2.layout"11 P.filename = "MainMenu" 12 P.layoutString = "MainMenu.layout" 9 13 10 14 function P:init() … … 85 89 end 86 90 87 return mainmenu_291 return P 88 92 -
code/branches/resource2/data/gui/scripts/PickupInventory.lua
r5587 r5661 1 gui = require("gui") 2 local P = gui:new() --inherit everything from the gui package 1 -- PickupInventory.lua 3 2 4 PickupInventory = P 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 if _REQUIREDNAME == nil then 6 PickupInventory = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 5 10 6 11 P.filename = "PickupInventory" … … 61 66 end 62 67 63 return P ickupInventory68 return P
Note: See TracChangeset
for help on using the changeset viewer.