Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   getlines() quirk (https://forums.graalonline.com/forums/showthread.php?t=134262350)

MrOmega 03-08-2011 12:36 AM

getlines() quirk
 
I have a guiMLTextCtrl and when the player invokes a few certain actions, a function will change the text, afterward I call a function that uses getlines() with MLText. Now .text returns the appropriate text always but only if I remove a line of text from the MLText will it return the proper line array. How come getlines is not returning my MLText all the time?

EDIT : adding a sleep() delay to the beginning final functions seems to correct it.

fowlplay4 03-08-2011 12:43 AM

Are you just modifying it with obj.text @= "etc." are you calling one of the GUI methods (obj.addtext(text, reflow_bool)) to do so?

MrOmega 03-08-2011 12:46 AM

obj.addtext(); and when I have to take a a line I do obj.text = ""; I add back the lines except the ones I need to remove.


All times are GMT +2. The time now is 05:49 AM.

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