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.bak next >
Encoding:
Text File  |  2004-09-02  |  2.7 KB  |  128 lines

  1.  
  2. UI.PageMainMenu=
  3. {    
  4.     GUI=
  5.     {
  6.  
  7. -- ------------------------- Apply -------------------------
  8.     
  9.         Interactive =
  10.         {
  11.             classname = "superbutton",
  12.             skin = UI.skins.SuperButton,
  13.             
  14.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  15.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  16.             texrect     = "0 0 256 64",
  17.         
  18.             left = 304, top = 246,
  19.             width = 192, height = 48,
  20.             text = "",
  21.             
  22.             color = "255 255 255 255",
  23.             
  24.             tabstop = 1,
  25.             
  26.             OnCommand = function(self)
  27.                 TechDemo:GoToScreen( "Interactive" );
  28.             end,
  29.         },
  30.         
  31.         SelfRunning =
  32.         {
  33.             classname = "superbutton",
  34.             skin = UI.skins.SuperButton,
  35.             
  36.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  37.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  38.             texrect     = "0 0 256 64",
  39.         
  40.             left = 304, top = 300,
  41.             width = 192, height = 48,
  42.             text = "",
  43.             
  44.             color = "255 255 255 255",
  45.             
  46.             tabstop = 1,
  47.             
  48.             OnCommand = function(self)
  49.                 TechDemo:GoToScreen( ".." );
  50.             end,
  51.         },
  52.         
  53.         Options =
  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 64 256 64",
  61.         
  62.             left = 304, top = 348,
  63.             width = 192, height = 48,
  64.             text = "",
  65.             
  66.             color = "255 255 255 255",
  67.             
  68.             tabstop = 2,
  69.             
  70.             OnCommand = function(self)
  71.                 TechDemo:GoToScreen( "Options" );
  72.             end,
  73.         },
  74.         Credits =
  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 128 256 64",
  82.         
  83.             left = 304, top = 396,
  84.             width = 192, height = 48,
  85.             text = "",
  86.             
  87.             color = "255 255 255 255",
  88.             
  89.             tabstop = 3,
  90.             
  91.             OnCommand = function(self)
  92.                 TechDemo:GoToScreen( "Credits" );
  93.             end,
  94.         },
  95.         Quit =
  96.         {
  97.             classname = "superbutton",
  98.             skin = UI.skins.SuperButton,
  99.             
  100.             texture     = System:LoadImage("textures/gui/Menu/Menu_unselected.dds"),
  101.             overtexture = System:LoadImage("textures/gui/Menu/Menu_selected.dds"),
  102.             texrect     = "0 192 256 64",
  103.         
  104.             left = 304, top = 444,
  105.             width = 192, height = 48,
  106.             text = "",
  107.             
  108.             color = "255 255 255 255",
  109.             
  110.             tabstop = 4,
  111.             
  112.             OnCommand = function(self)
  113.                 TechDemo:Quit();
  114.             end,
  115.         },
  116.         
  117.         
  118.         OnInit = function(self)
  119.         end,    
  120.                     
  121.         OnActivate= function(self) -- this will be called everytime you activate this screen
  122.  
  123.         end,
  124.     },
  125. };
  126.  
  127. UI:CreateScreenFromTable("MainMenu", UI.PageMainMenu.GUI);
  128.