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 05-06-2008, 07:53 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
ok i got this far guys now im stuck

kk i have my message gui where when u click on a npc it opens up a blue gui an talks to you instead of the blue gui u get in teh gui editor how would u upload ur own image instead of that blue box

PHP Code:
//#CLIENTSIDE
function onActionLeftMouse(){
new 
GuiWindowCtrl("MyGUI_Window1"){
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "320,240";
    
canresize=false;
canminimize=false;
canclose=true;
canmaximize=false;
destroyonhide=true;
    
text "message";
    
285;
    
241;

    new 
GuiTextCtrl("MyGUI_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Uhhhhhhh.The earth is tearing apart with ";
      
width 228;
      
50;
      
50;
    }
    new 
GuiTextCtrl("MyGUI_Text2") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "with the reactors there are making the ";
      
width 217;
      
52;
      
69;
    }
    new 
GuiTextCtrl("MyGUI_Text3") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "planet die you must stop them please.";
      
width 212;
      
55;
      
88;
    }
  }

heres a screen shot what i am talking about if yall dont know
Reply With Quote
  #2  
Old 05-06-2008, 06:38 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
You can't do it with GUI Editor, you need to create profiles to display the GUIs with your own graphics.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 05-07-2008, 01:08 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
See this page on the Wiki:

http://wiki.graal.net/index.php/Crea...g_GUI_Profiles

It will explain GUI Profiles to you.
__________________
Reply With Quote
  #4  
Old 05-07-2008, 03:11 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Also, might wanna use 1x GuiMLTextCtrl instead of several GuiTextCtrl.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 05-07-2008, 07:34 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yes, and also set the GuiMLTextCtrl's active variable to false if you want it to not be selectable (like normal TextCtrls).

Example:
PHP Code:
//#CLIENTSIDE
function onActionLeftMouse() {
  new 
GuiWindowCtrl("MyGUI_Window1") {
    
resize(285241320240);
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
canresize canminimize canmaximize false;
    
canclose destroyonhide true;
    
text "message";
    new 
GuiMLTextCtrl("MyGUI_Text") {
      
resize(50502280);
      
profile GuiBlueTextProfile;
      
text "Uhhhhhhh.The earth is tearing apart with\nwith the reactors there are making the\nplanet die you must stop them please.";
    }
  }

Basically, look at the text = line. See the \n's? Those will change to line breaks.

Good luck!

Also, if you want to use an image instead of a gui window or so, just use GuiBitmapCtrl rather then GuiWindowCtrl and set bitmap = "yourimagehere.png".
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 05-07-2008, 07:38 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Dude FF7 reference FTW.
__________________

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 12:23 PM.


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