Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-12-2010, 01:26 AM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Startup GUI?

Hey guys I want to get a startup GUI and I found this in the Graal Bible

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
ExampleWindow = new GuiWindowCtrl("ExampleWindow");
  
  
with (ExampleWindow)
  {
    
profile     "GuiBlueWindowProfile";
    
position    "20 20";
    
extent      "320 240";
    
canMove     true;
    
canResize   false;
    
canMaximize false;
    
canClose    true;
    
tile        true;
    
text        "Welcome here i will display all the required information";
    
    new 
GuiControl(AppleTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "222 184";
      
      new 
GuiTextCtrl(AppleTab_Label)
      {
        
profile  "GuiBlueTextProfile";
        
position "0 0";
        
extent   "222 20";
        
text     "Current Staff: Owner: iSlayer";
      };
    };
    
    new 
GuiControl(BananaTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "222 184";
      
      new 
GuiTextCtrl(BananaTab_Label)
      {
        
profile  "GuiBlueTextProfile";
        
position "0 0";
        
extent   "222 20";
        
text     "We are hiring all dev positions";
      };
    };
    
    new 
GuiControl(CranberryTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "222 184";
      
      new 
GuiTextCtrl(CranberryTab_Label)
      {
        
profile  "GuiBlueTextProfile";
        
position "0 0";
        
extent   "222 20";
        
text     "Forum PM to iSlayer";
      };
    };
    
    new 
GuiTabCtrl(ExampleTabs)
    {
      
profile   "GuiBlueTabProfile";
      
position  "10 28";
      
extent    "300 24";
      
      
clearRows();
      
with (addRow(0"Staff Members"))
      {
        
this.pane AppleTab;
      }
      
with (addRow(1"Hirings"))
      {
        
this.pane BananaTab;
      }
      
with (addRow(2"Contact"))
      {
        
this.pane CranberryTab;
      }
      
      
thiso.catchevent(name"onSelect""onTabSelect");
    };
  };
  
ExampleTabs.setSelectedById(0);
  
GraalControl.addControl(ExampleWindow);
}

function 
onTabSelect(tabs)
{
  for (
temp.tabtemp.tabs.rows)
  {
    if (
temp.tab.pane == null)
    {
      continue;
    }
    
    if (
temp.tab == temp.tabs.selected)
    {
      
temp.tab.pane.show();
    }
    else
    {
      
temp.tab.pane.hide();
    }
  }

Would this work? Any help would be helpful
__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.