Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-20-2008, 08:53 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by cbk1994 View Post
First: I'm not certain that onAction() is called for a GuiMLTextCtrl ... I recommend simply a GuiTextCtrl, there's no reason you need a multi-line one anyway.
From the graal wiki:
"onAction() - is invoked when a button control is pressed, you press the enter-key in a text edit control, or move a slider control"
I think it would look a little strange to have an instant messaging window that when you sent a message it just put it as text on the window itself instead of displaying it in a text box. Not sure o:

Quote:
Originally Posted by cbk1994 View Post
Second: Text list columns work like this:
PHP Code:
new GuiScrollCtrl"blah" )
{
  
// stuff here
  
new GuiTextListCtrl"blahblah" )
  {
    
columns = { 050100120 }; // Where (the x value) at where the new column starts
    
addRow0"Hi \t Yo \t ;o \t sup ); // You don't need the spaces, that's just to show.
  }

This is perfect, thanks!

Quote:
Originally Posted by cbk1994 View Post
Third: How are you using saveLines?
PHP Code:
array.saveLines"path/to/file"false ); // The second paramater is to append; false to overwrite, true to append 
PHP Code:
    case "SaveProfile":
    
temp.params[2];
    
temp.params[1];
    echo(
temp.a);
    echo(
temp.b);
    
temp.a.saveLines("profiles/profile_" params[1] @".txt",0);
    break; 
Echo from temp.a:
"Hello","these","are","test","lines"

Echo from temp.b:
"The_Kez"

Like I said, no change is being made to the file at all.
Reply With Quote
 

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 10:43 AM.


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