Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   ok i got this far guys now im stuck (https://forums.graalonline.com/forums/showthread.php?t=79647)

Rave_J 05-06-2008 07:53 AM

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";
    
x = 285;
    
y = 241;

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

heres a screen shot what i am talking about if yall dont know http://i60.photobucket.com/albums/h2...98/helpers.png

Tigairius 05-06-2008 06:38 PM

You can't do it with GUI Editor, you need to create profiles to display the GUIs with your own graphics.

cbk1994 05-07-2008 01:08 AM

See this page on the Wiki:

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

It will explain GUI Profiles to you.

xXziroXx 05-07-2008 03:11 AM

Also, might wanna use 1x GuiMLTextCtrl instead of several GuiTextCtrl.

zokemon 05-07-2008 07:34 AM

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(285, 241, 320, 240);
    
profile = GuiBlueWindowProfile;
    
clientrelative = true;
    
canresize = canminimize = canmaximize = false;
    
canclose = destroyonhide = true;
    
text = "message";
    new 
GuiMLTextCtrl("MyGUI_Text") {
      
resize(50, 50, 228, 0);
      
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".

Robin 05-07-2008 07:38 AM

Dude FF7 reference FTW.


All times are GMT +2. The time now is 05:15 AM.

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