Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   showimg on top of gui window (https://forums.graalonline.com/forums/showthread.php?t=134265626)

sssssssssss 01-26-2012 06:27 AM

I'm sorry. I do still have the issue of trying to edit the zoom or hint using it as a temp.var holding the object and addcontrol to parent window. It's just not doing it which is odd because setting the x,y,image,ect initially works fine.

PHP Code:

("weapon"@temp.v).hint = temp.tokens[tokens.size() - 1]; 


Crow 01-26-2012 02:49 PM

There's a good chance that hints do not work correctly if the control is not focused. I'm not 100% sure if that's still the case, but I believe it was a problem before.

fowlplay4 01-26-2012 04:29 PM

Try giving the GUI Object width and height.

sssssssssss 01-29-2012 05:31 AM

Gave the gui image width and height, but editting the hint later still isn't working.

how would I set focus?

fowlplay4 01-29-2012 06:28 AM

Quote:

Originally Posted by sssssssssss (Post 1683042)
Gave the gui image width and height, but editting the hint later still isn't working.

how would I set focus?

Use onMouseEnter, onMouseLeave and see if they work. If they do you might as well make your own hint system.

GuiName.makefirstresponder(true);

sssssssssss 01-30-2012 01:47 AM

the firstresponder made it work as long as I set the hint when read to hover over the image with
PHP Code:

thiso.catchevent(this.("weapon"@temp.v), "onMouseEnter", "hoverMouseEnter"); 

Also enabled me to add text somewhere else. Appreciated. :)


All times are GMT +2. The time now is 03:50 PM.

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