Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.93 KB | None | 0 0
  1.  
  2.    
  3.     local MenuButtons = {
  4.                            
  5.                         {
  6.                             ID              = 1;
  7.                             Parent          = FRAME:
  8.                             Pos             = { ScrW() * 0.05, 50 };
  9.                             Size            = { ScrW() * 0.1 , 50 };
  10.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  11.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  12.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  13.                             PressedColor    = Color( 25, 25 , 25, 128 );
  14.                             Text            = "Message of the Day";
  15.                             ShowToolTip     = true;
  16.                             DoAlpha = true;
  17.                             OnPressed = function( self )
  18.                                
  19.                                 for _, x in pairs( FRAME.Tabs ) do
  20.                        
  21.                                     if ispanel( x ) then
  22.                                        
  23.                                         x:SetVisible( false )
  24.                                         x._tabAlpha =  0;
  25.                                        
  26.                                     end
  27.                                        
  28.                                 end
  29.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  30.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  31.                                
  32.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  33.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  34.                            
  35.                             end;
  36.                             ToolTipBox = {
  37.                                 Title = "Message of the Day";
  38.                                 Size = { 230 , 115 };
  39.                                 Description = {
  40.                                     "This button will lead you to the our website";
  41.                                     "located at www.560rp.com.";
  42.                                     "";
  43.                                     "You can check out our home-page or find";
  44.                                     "more about in-game content here!";
  45.                                 };
  46.                                 //BackgroundColor = Color (0,0,0,240);
  47.                                
  48.                             }
  49.                         };
  50.                         {
  51.                             ID              = 2;
  52.                             Parent          = FRAME:
  53.                             Pos             = { ScrW() * 0.15, 50 };
  54.                             Size            = { ScrW() * 0.1 , 50 };
  55.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  56.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  57.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  58.                             PressedColor    = Color( 25, 25 , 25, 128 );
  59.                             Text            = "Development Cycle";
  60.                             DoAlpha         = true;
  61.                             ShowToolTip     = true;
  62.                             DisableOnInit   = false;
  63.                             OnPressed = function( self )
  64.                                
  65.                                 for _, x in pairs( FRAME.Tabs ) do
  66.                        
  67.                                     if ispanel( x ) then
  68.                                        
  69.                                         x:SetVisible( false )
  70.                                         x._tabAlpha =  0;
  71.                                        
  72.                                     end
  73.                                        
  74.                                 end
  75.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  76.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  77.                                
  78.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  79.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  80.                            
  81.                             end;
  82.                             ToolTipBox = {
  83.                                 Title = "Development Cycle";
  84.                                 Size = { 230 , 115 };
  85.                                 Description = {
  86.                                     "This is our over-view of the alpha. Updates-";
  87.                                     "as well as developer commentary is posted";
  88.                                     "in this menu for ease-of-access.";
  89.                                     "";
  90.                                     "(Note: This is an alpha gamemode, Suggest";
  91.                                     "-your ideas or invest to bring them to life.)";
  92.                                 };
  93.                             }
  94.                         };
  95.                         {
  96.                             ID              = 3;
  97.                             Parent          = FRAME:
  98.                             Pos             = { ScrW() * 0.25, 50 };
  99.                             Size            = { ScrW() * 0.1 , 50 };
  100.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  101.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  102.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  103.                             PressedColor    = Color( 25, 25 , 25, 128 );
  104.                             Text            = "My Character";
  105.                             DoAlpha         = true;
  106.                             DisableOnInit   = false;
  107.                             ShowToolTip     = true;
  108.                             OnPressed = function( self )
  109.                                
  110.                                 for _, x in pairs( FRAME.Tabs ) do
  111.                        
  112.                                     if ispanel( x ) then
  113.                                        
  114.                                         x:SetVisible( false )
  115.                                         x._tabAlpha =  0;
  116.                                        
  117.                                     end
  118.                                        
  119.                                 end
  120.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  121.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  122.                                
  123.                                 timer.Simple( 0.2, function()
  124.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  125.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  126.                                 end)
  127.                             end;
  128.                             ToolTipBox = {
  129.                                 Title = "My Character";
  130.                                 Size = { 230 , 110 };
  131.                                 Description = {
  132.                                     "This is the over-view of your character.";
  133.                                     "You can extract useful information to find";
  134.                                     "out new things about yourself through game-";
  135.                                     "play. We encourage trying out jobs to access";
  136.                                     "special information about them here.";
  137.                                 };
  138.                             }
  139.                         };
  140.                         {
  141.                             ID              = 4;
  142.                             Parent          = FRAME:
  143.                             Pos             = { ScrW() * 0.35, 50 };
  144.                             Size            = { ScrW() * 0.1 , 50 };
  145.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  146.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  147.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  148.                             PressedColor    = Color( 25, 25 , 25, 128 );
  149.                             Text            = "Quests";
  150.                             DoAlpha         = true;
  151.                             DisableOnInit   = false;
  152.                             OnPressed = function( self )
  153.                                
  154.                                 for _, x in pairs( FRAME.Tabs ) do
  155.                        
  156.                                     if ispanel( x ) then
  157.                                        
  158.                                        
  159.                                         x:SetVisible( false )
  160.                                         x._tabAlpha =  0;
  161.                                        
  162.                                     end
  163.                                        
  164.                                 end
  165.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  166.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  167.                                
  168.                                 timer.Simple( 0.2, function()
  169.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  170.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  171.                                 end)
  172.                             end;
  173.                             ShowToolTip     = true;
  174.                             ToolTipBox = {
  175.                                 Title = "Quests";
  176.                                 Size = { 230 , 100 };
  177.                                 Description = {
  178.                                     "You can look up your quest progress here.";
  179.                                     "There is no archive of quests because we";
  180.                                     "are working on perfecting the questing system";
  181.                                     "to perfection."
  182.                                 };
  183.                             }
  184.                         };
  185.                         {
  186.                             ID              = 5;
  187.                             Parent          = FRAME:
  188.                             Pos             = { ScrW() * 0.45, 50 };
  189.                             Size            = { ScrW() * 0.1 , 50 };
  190.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  191.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  192.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  193.                             PressedColor    = Color( 25, 25 , 25, 128 );
  194.                             Text            = "My Inventory";
  195.                             DoAlpha         = true;
  196.                             DisableOnInit   = false;
  197.                             OnPressed = function( self )
  198.                                
  199.                                 for _, x in pairs( FRAME.Tabs ) do
  200.                        
  201.                                     if ispanel( x ) then
  202.                                        
  203.                                        
  204.                                         x:SetVisible( false )
  205.                                         x._tabAlpha =  0;
  206.                                        
  207.                                     end
  208.                                        
  209.                                 end
  210.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  211.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  212.                                
  213.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  214.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  215.                            
  216.                             end;
  217.                             ShowToolTip     = true;
  218.                             ToolTipBox = {
  219.                                 Title = "My Inventory";
  220.                                 Size = { 230 , 150 };
  221.                                 Description = {
  222.                                     "With your inventory you may equip, drop";
  223.                                     "and use items that receive during game-play.";
  224.                                     "Some items are more common than others and ";
  225.                                     "certain quests will give you an item as a";
  226.                                     "reward for completing them.";
  227.                                     "";
  228.                                     "(Note: Your crafting tab directly links to your";
  229.                                     "-inventory.)";
  230.                                 };
  231.                             }
  232.                         };
  233.                         {
  234.                             ID              = 6;
  235.                             Parent          = FRAME:
  236.                             Pos             = { ScrW() * 0.55, 50 };
  237.                             Size            = { ScrW() * 0.1 , 50 };
  238.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  239.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  240.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  241.                             PressedColor    = Color( 25, 25 , 25, 128 );
  242.                             Text            = "My Businesses";
  243.                             DoAlpha         = true;
  244.                             DisableOnInit   = false;
  245.                             OnPressed = function( self )
  246.                                
  247.                                 for _, x in pairs( FRAME.Tabs ) do
  248.                        
  249.                                     if ispanel( x ) then
  250.                                        
  251.                                        
  252.                                         x:SetVisible( false )
  253.                                         x._tabAlpha =  0;
  254.                                        
  255.                                     end
  256.                                        
  257.                                 end
  258.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  259.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  260.                                
  261.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  262.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  263.                            
  264.                             end;
  265.                             ShowToolTip     = true;
  266.                             ToolTipBox = {
  267.                                 Title = "My Businesses";
  268.                                 Size = { 230 , 90 };
  269.                                 Description = {
  270.                                     "You can see your status of your invested";
  271.                                     "businesses here. If you do not own any";
  272.                                     "shares in a business then you can try";
  273.                                     "finding the mysterious slav around town.";
  274.                                 };
  275.                             }
  276.                         };
  277.                         {
  278.                             ID              = 7;
  279.                             Parent          = FRAME:
  280.                             Pos             = { ScrW() * 0.65, 50 };
  281.                             Size            = { ScrW() * 0.1 , 50 };
  282.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  283.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  284.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  285.                             PressedColor    = Color( 25, 25 , 25, 128 );
  286.                             Text            = "Crafting";
  287.                             DoAlpha         = true;
  288.                             DisableOnInit   = false;
  289.                             OnPressed = function( self )
  290.                                
  291.                                 for _, x in pairs( FRAME.Tabs ) do
  292.                        
  293.                                     if ispanel( x ) then
  294.                                        
  295.                                        
  296.                                         x:SetVisible( false )
  297.                                         x._tabAlpha =  0;
  298.                                        
  299.                                     end
  300.                                        
  301.                                 end
  302.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  303.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  304.                                
  305.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  306.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  307.                            
  308.                             end;
  309.                             ShowToolTip     = true;
  310.                             ToolTipBox = {
  311.                                 Title = "Crafting";
  312.                                 Size = { 230 , 150 };
  313.                                 Description = {
  314.                                     "Together with your gathered items in your";
  315.                                     "inventory, you can put them together to make";
  316.                                     "special items that will help you with what you";
  317.                                     "require.";
  318.                                     "";
  319.                                     "(Note: What you can craft is directly";
  320.                                     "dependent on your skills and research.";
  321.                                     "Not all items may be legal to craft).";
  322.                                 };
  323.                             }
  324.                         };
  325.                         {
  326.                             ID              = 8;
  327.                             Parent          = FRAME:
  328.                             Pos             = { ScrW() * .75, 50 };
  329.                             Size            = { ScrW() * 0.1 , 50 };
  330.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  331.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  332.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  333.                             PressedColor    = Color( 25, 25 , 25, 128 );
  334.                             Text            = "Skill & Research";
  335.                             DoAlpha         = true;
  336.                             DisableOnInit   = false;
  337.                             OnPressed = function( self )
  338.                                
  339.                                 for _, x in pairs( FRAME.Tabs ) do
  340.                        
  341.                                     if ispanel( x ) then
  342.                                        
  343.                                         x:SetVisible( false )
  344.                                         x._tabAlpha =  0;
  345.                                        
  346.                                     end
  347.                                        
  348.                                 end
  349.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  350.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  351.                                
  352.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  353.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  354.                            
  355.                             end;
  356.                             ShowToolTip     = true;
  357.                             ToolTipBox = {
  358.                                 Title = "Skill's & Research";
  359.                                 Size = { 230 , 100 };
  360.                                 Description = {
  361.                                     "Through research your can receive status";
  362.                                     "upgrades & bonuses that will help you find";
  363.                                     "your own path in the world.";
  364.                                     "";
  365.                                     "(Note: Some research can strain you.)"
  366.                                 };
  367.                             }
  368.                         };
  369.                         {
  370.                             ID              = 9;
  371.                             Parent          = FRAME:
  372.                             Pos             = { ScrW() * .85, 50 };
  373.                             Size            = { ScrW() * 0.1 , 50 };
  374.                             RelativeColor   = Color( 56, 56 ,56, 128 );
  375.                             OriginalColor   = Color( 56, 56 ,56, 128 );
  376.                             HoveredColor    = Color( 255, 255 , 255, 255 );
  377.                             PressedColor    = Color( 25, 25 , 25, 128 );
  378.                             Text            = "Settings";
  379.                             DoAlpha         = true;
  380.                             DisableOnInit   = false;
  381.                             OnPressed = function( self )
  382.                                
  383.                                 for _, x in pairs( FRAME.Tabs ) do
  384.                        
  385.                                     if ispanel( x )  then
  386.                                        
  387.                                        
  388.                                         x:SetVisible( false )
  389.                                         x._tabAlpha =  0;
  390.                                        
  391.                                     end
  392.                                        
  393.                                 end
  394.                                
  395.                                 FRAME.Tabs[self.ID].DoCloseAlpha =  false;
  396.                                 FRAME.Tabs[self.ID]._tabAlpha =  0;
  397.                                
  398.                                
  399.                                 FRAME.Tabs[self.ID]:SetVisible( true )
  400.                                 FRAME.Tabs[self.ID].DoAlpha =  true
  401.                            
  402.                             end;
  403.                             ShowToolTip     = true;
  404.                             ToolTipBox = {
  405.                                 Title = "Settings";
  406.                                 Size = { 230 , 50 };
  407.                                 Description = {
  408.                                     "With this menu you can adjust all client-side";
  409.                                     "options.";
  410.                                 };
  411.                             }
  412.                         };
  413.                        
  414.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement