Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Next line (https://forums.graalonline.com/forums/showthread.php?t=84667)

Schetti 03-13-2009 07:28 PM

Next line
 
ok ... I fail to make a text into the next line.
PHP Code:

findPlayer("Schetti").addweapon(this.name);
//#CLIENTSIDE
function onKeyPressed(code,key) {
 if (
key == "o")
  {

   
show(); 
 }

 public function 
show() {
  new 
GuiWindowCtrl("-System/News_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "488,390";

    
canmove true;
    
canresize true;
    
closequery false;
    
destroyonhide false;
    
text "News!";
    
500;
    
280;

    new 
GuiTextCtrl("-System/News_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Text 1" NL "hi";
      
width 30;
      
25;
      
10;
    }
  }



I DONT want to hear something about the if (key == "o")
It doesnt matter ...


Well actually the text is in 1 low like: Tex 1 hi

but it should show as

Text1
hi



someone can help?

xXziroXx 03-13-2009 07:34 PM

GuiTextCtrl's can only be used for single lines, use GuiMLTextCtrl instead. (ML means multi-line).

Schetti 03-13-2009 07:51 PM

THANKS
(I NEVER would try that out by my own)

Chompy 03-13-2009 07:55 PM

This can also be of much help for future working with gui controls:

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

Schetti 03-13-2009 07:59 PM

I knew this but thanks


All times are GMT +2. The time now is 02:31 PM.

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