Changeset 5661 for code/branches/resource2/data/gui
- Timestamp:
- Aug 19, 2009, 12:19:11 AM (15 years ago)
- Location:
- code/branches/resource2/data/gui
- Files:
-
- 9 deleted
- 1 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/data/gui/layouts/MainMenu.layout
r5653 r5661 12 12 <Property Name="Text" Value="Standalone"/> 13 13 <Property Name="Disabled" Value="true"/> 14 <Event Name="Clicked" Function=" mainmenu_2.button_standalone_clicked"/>14 <Event Name="Clicked" Function="MainMenu.button_standalone_clicked"/> 15 15 </Window> 16 16 … … 20 20 <Property Name="UnifiedSize" Value="{{0.35,0},{0.33,0}}" /> 21 21 <Property Name="Tooltip" Value="Available Levels." /> 22 <Event Name="ItemSelectionChanged" Function=" mainmenu_2.listbox_level_selectionchanged" />22 <Event Name="ItemSelectionChanged" Function="MainMenu.listbox_level_selectionchanged" /> 23 23 </Window> 24 24 … … 27 27 <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/> 28 28 <Property Name="Text" Value="Dedicated"/> 29 <Event Name="Clicked" Function=" mainmenu_2.button_dedicated_clicked"/>29 <Event Name="Clicked" Function="MainMenu.button_dedicated_clicked"/> 30 30 </Window> 31 31 … … 34 34 <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/> 35 35 <Property Name="Text" Value="Server"/> 36 <Event Name="Clicked" Function=" mainmenu_2.button_server_clicked"/>36 <Event Name="Clicked" Function="MainMenu.button_server_clicked"/> 37 37 </Window> 38 38 … … 41 41 <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/> 42 42 <Property Name="Text" Value="Client"/> 43 <Event Name="Clicked" Function=" mainmenu_2.button_client_clicked"/>43 <Event Name="Clicked" Function="MainMenu.button_client_clicked"/> 44 44 </Window> 45 45 … … 48 48 <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/> 49 49 <Property Name="Text" Value="Quit"/> 50 <Event Name="Clicked" Function=" mainmenu_2.button_quit_clicked"/>50 <Event Name="Clicked" Function="MainMenu.button_quit_clicked"/> 51 51 </Window> 52 52 </Window> -
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.