Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2006, 03:24 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
GUI Issues

I am trying to get text to appear different text when I press each of the buttons individually. I want the text to appear in the body of the window and not the button titles. Help Please? O_O

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
addGUIControls();
}
function 
addGUIControls(){
  new 
GuiWindowCtrl("SH_Information"){
    
profile "GuiWindowProfile";
    
extent "432 300";
    
position "100 100";
    
canmaximize 1;
    
canminizmize 0;
    
canclose 1;
  new 
GuiButtonCtrl("News"){
  
profile "GuiButtonProfile";
  
position "6 24";
  
text "News";
  }
  new 
GuiButtonCtrl("Hirings"){
  
profile "GuiButtonProfile";
  
position "146 24";
  
text "Hirings";
  }
  new 
GuiButtonCtrl("FAQ"){
  
profile "GuiButtonProfile";
  
position "286 24";
  
text "FAQ";
  }
 }
  
GraalControl.addControl(Blah);

__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #2  
Old 08-09-2006, 08:04 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Use a GuiTextCtrl.
PHP Code:
new GuiTextCtrl(foo)
{
  
position = {xy};
  
extent = {wh};

  
text "Text value here";

__________________
Skyld
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:34 PM.


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