Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-14-2016, 12:57 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko is a jewel in the roughKirko is a jewel in the rough
getlines() not returning

The functions getlines() and getlinecount() are returning nothing but when I do something else like gettext() it returns correctly.
This is all in a for loop when displaying messages
PHP Code:
echo(("Message_"@temp.i).getlines());
echo((
"Message_"@temp.i).getlinecount());
echo((
"Message_"@temp.i).gettext());//only one to work 
Another thing I tried to do
PHP Code:
this.trueSize thiso.catchevent(this"onReflow""onTest"); 
PHP Code:
function onTest(temp.objnewwidthnewheight){
  echo(
temp.obj.getlinecount()); //does echo correctly
  
return temp.obj.getlinecount();

but then back in the for loop this just doesnt echo anything
PHP Code:
echo((@"Message_"@temp.i).trueSize); 
What I'm trying to do is get the amount of lines there are in the text control so I can adjust the y position for the next message.
Reply With Quote
 


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 07:33 PM.


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