home *** CD-ROM | disk | FTP | other *** search
-
- UI.PageMainMenu=
- {
- GUI=
- {
-
- -- ------------------------- Apply -------------------------
-
- Interactive =
- {
- 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 = 1,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( "Interactive" );
- end,
- },
-
- SelfRunning =
- {
- 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 = 300,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 1,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( ".." );
- end,
- },
-
- Options =
- {
- 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 64 256 64",
-
- 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,
-
- texture = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
- overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
- texrect = "0 128 256 64",
-
- left = 304, top = 396,
- width = 192, height = 48,
- text = "",
-
- color = "255 255 255 255",
-
- tabstop = 3,
-
- OnCommand = function(self)
- TechDemo:GoToScreen( "Credits" );
- end,
- },
- Quit =
- {
- 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 192 256 64",
-
- 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
-
- end,
- },
- };
-
- UI:CreateScreenFromTable("MainMenu", UI.PageMainMenu.GUI);
-