home *** CD-ROM | disk | FTP | other *** search
-
- -- get the list of videofiles
- szScriptFolder = "Scripts/UIScreens/";
-
- -- Load Configuration
- Script:LoadScript(szScriptFolder.."UISystemCfg.lua", 1); -- Load Configuration File
-
- -- Load the skin
- Script:LoadScript(UI.szSkinPath, 1);
-
- UI.PageMainMenu=
- {
- GUI=
- {
-
- -- ------------------------- Apply -------------------------
-
- --Benchmark =
- --{
- -- classname = "superbutton",
- -- skin = UI.skins.SuperButton,
-
- -- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- -- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- -- texrect = "0 0 256 64",
-
- -- left = 304, top = 246,
- -- width = 192, height = 48,
- -- text = "",
-
- -- color = "255 255 255 255",
-
- -- tabstop = 11,
-
- -- OnCommand = function(self)
- -- TechDemo:GoToScreen( "Benchmark" );
- -- end,
- --},
-
- SelfRunning =
- {
- --classname = "superbutton",
- --skin = UI.skins.SuperButton,
- classname = "button",
- skin = UI.skins.ActionButton,
-
- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- downtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- --texrect = "0 0 256 64",
- texrect = "0 0 256 70",
-
- left = 304, top = 300,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 1,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( "SelfRunning", 1 );
- end,
- },
-
- Options =
- {
- --classname = "superbutton",
- --skin = UI.skins.SuperButton,
- classname = "button",
- skin = UI.skins.ActionButton,
-
- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- downtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- --texrect = "0 64 256 64",
- texrect = "0 71 256 61",
-
- left = 304, top = 348,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 2,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( "Options" );
- end,
- },
- Credits =
- {
- --classname = "superbutton",
- --skin = UI.skins.SuperButton,
- classname = "button",
- skin = UI.skins.ActionButton,
-
- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- downtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- --texrect = "0 128 256 64",
- texrect = "0 133 256 61",
-
- left = 304, top = 396,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 3,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( ".." );
- TechDemo:GoToScreen( "Credits" );
- end,
- },
- Quit =
- {
- --classname = "superbutton",
- --skin = UI.skins.SuperButton,
- classname = "button",
- skin = UI.skins.ActionButton,
-
- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- downtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- --texrect = "0 192 256 64",
- texrect = "0 195 256 60",
-
- left = 304, top = 444,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 4,
-
- OnCommand = function(self)
- TechDemo:Quit();
- end,
- },
-
-
- OnInit = function(self)
- end,
-
- OnActivate= function(self) -- this will be called everytime you activate this screen
- --TechDemo:GoToScreen( "SelfRunning", 1 );
- end,
- },
- };
-
- szScreen = "MainMenu";
- UI:CreateScreenFromTable(szScreen, UI.PageMainMenu.GUI);
- Script:LoadScript("Scripts/UIScreens/UISystem.lua", 1);
-