Thread: Next line
View Single Post
  #1  
Old 03-13-2009, 07:28 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
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!";
    
x = 500;
    
y = 280;

    new 
GuiTextCtrl("-System/News_Text1") {
      
profile = GuiBlueTextProfile;
      
height = 20;
      
text = "Text 1" NL "hi";
      
width = 30;
      
x = 25;
      
y = 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?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote