Quote:
Originally Posted by cbk1994
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
Second: Text list columns work like this:
PHP Code:
new GuiScrollCtrl( "blah" )
{
// stuff here
new GuiTextListCtrl( "blahblah" )
{
columns = { 0, 50, 100, 120 }; // Where (the x value) at where the new column starts
addRow( 0, "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
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.a = params[2];
temp.b = 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.