home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / FCData / Scripts.pak / Scripts / OldUI / MenuScreens / MainMenu.lua < prev    next >
Encoding:
Text File  |  2004-09-02  |  2.2 KB  |  107 lines

  1.  
  2. UI.PageMainMenu=
  3. {    
  4.     GUI=
  5.     {
  6.  
  7. -- ------------------------- Apply -------------------------
  8.     
  9.     
  10.         SelfRunning =
  11.         {
  12.             classname = "superbutton",
  13.             skin = UI.skins.SuperButton,
  14.             
  15.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  16.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  17.             texrect     = "0 0 256 64",
  18.         
  19.             left = 304, top = 300,
  20.             width = 192, height = 48,
  21.             text = "",
  22.             
  23.             color = "255 255 255 255",
  24.             
  25.             tabstop = 1,
  26.             
  27.             OnCommand = function(self)
  28.                 TechDemo:GoToScreen( ".." );
  29.             end,
  30.         },
  31.         
  32.         Options =
  33.         {
  34.             classname = "superbutton",
  35.             skin = UI.skins.SuperButton,
  36.             
  37.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  38.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  39.             texrect     = "0 64 256 64",
  40.         
  41.             left = 304, top = 348,
  42.             width = 192, height = 48,
  43.             text = "",
  44.             
  45.             color = "255 255 255 255",
  46.             
  47.             tabstop = 2,
  48.             
  49.             OnCommand = function(self)
  50.                 TechDemo:GoToScreen( "Options" );
  51.             end,
  52.         },
  53.         Credits =
  54.         {
  55.             classname = "superbutton",
  56.             skin = UI.skins.SuperButton,
  57.             
  58.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  59.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  60.             texrect     = "0 128 256 64",
  61.         
  62.             left = 304, top = 396,
  63.             width = 192, height = 48,
  64.             text = "",
  65.             
  66.             color = "255 255 255 255",
  67.             
  68.             tabstop = 3,
  69.             
  70.             OnCommand = function(self)
  71.                 TechDemo:GoToScreen( "Credits" );
  72.             end,
  73.         },
  74.         Quit =
  75.         {
  76.             classname = "superbutton",
  77.             skin = UI.skins.SuperButton,
  78.             
  79.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  80.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  81.             texrect     = "0 192 256 64",
  82.         
  83.             left = 304, top = 444,
  84.             width = 192, height = 48,
  85.             text = "",
  86.             
  87.             color = "255 255 255 255",
  88.             
  89.             tabstop = 4,
  90.             
  91.             OnCommand = function(self)
  92.                 TechDemo:Quit();
  93.             end,
  94.         },
  95.         
  96.         
  97.         OnInit = function(self)
  98.         end,    
  99.                     
  100.         OnActivate= function(self) -- this will be called everytime you activate this screen
  101.  
  102.         end,
  103.     },
  104. };
  105.  
  106. UI:CreateScreenFromTable("MainMenu", UI.PageMainMenu.GUI);
  107.