Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   .setActive();? (https://forums.graalonline.com/forums/showthread.php?t=77740)

Angel_Light 11-28-2007 05:54 AM

.setActive();?
 
Is it possible to set a gui active, after it has been turn visible? I've searched the wiki with no success. I got this so far.
PHP Code:

function blah.onWake()
{

...???...




DustyPorViva 11-28-2007 06:07 AM

blah.active=true;
?

Angel_Light 11-29-2007 01:13 AM

no, tried it. :[

Twinny 11-29-2007 01:16 AM

obj.makefirstresponder(true); ?

Angel_Light 11-29-2007 01:38 AM

Love ya Twinny <3, ok one more question, how do I highlight already written text in a regular text edit?

cbk1994 11-29-2007 01:44 AM

I'm pretty sure that's not possible in Graal ... :(

Would be useful though.

Angel_Light 11-29-2007 03:13 AM

found it

PHP Code:

foo.setselectionstrstr); 

first string is where to start the highlight and second is where to end. :P

cbk1994 11-29-2007 04:49 AM

Quote:

Originally Posted by Angel_Light (Post 1361155)
found it

PHP Code:

foo.setselectionstrstr); 

first string is where to start the highlight and second is where to end. :P

Are you sure it takes a string?

Wouldn't it take an integer, so you would say where it started, and where it ended, not the text where it started?

Angel_Light 11-29-2007 05:30 AM

well, wiki says str, I'll fix the wiki later and turn it to num, maybe. You might be able to highlight specific texts, (haven't tested) but I found the command for it never the less.

Tolnaftate2004 11-29-2007 05:38 AM

Quote:

Originally Posted by Angel_Light (Post 1361178)
... turn it to num, maybe...

int, please.
e: it says int...


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

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