Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Taking focus from a GUI (https://forums.graalonline.com/forums/showthread.php?t=62025)

Yen 11-01-2005 08:31 PM

Taking focus from a GUI
 
When a player enters specific levels, a GUI pops up in the corner of the screen. However, the GUI takes focus off the game, so the player has to click the screen or they can't move.

Is there any way to stop the GUI from taking focus?
Skyld suggested changing 'editting,' but it didn't work.

napo_p2p 11-01-2005 08:43 PM

pushToBack();

I think that'll do it.

EDIT: I am not so sure. I tested it with a GUI script and it worked, but when I took it out, the GUI still wasn't the 'focus'. Doesn't hurt to try though :P.

Yen 11-01-2005 08:52 PM

Tried it.. No luck.

napo_p2p 11-03-2005 06:32 AM

Found a way :D.

When you initialize the GuiControl, set visible to false.
Then after, use objName.visible = true;

Yen 11-03-2005 09:40 PM

I tried that too, no luck.. :/

napo_p2p 11-04-2005 01:18 AM

That's odd... I was having the same focus problem until I did that.

PHP Code:

function onCreated()
{
  new 
GuiWindowCtrl("Test_Window")
  {
    
//stuff
    
visible false;
  }
  
Test_Window.visible true;


Did you try something like that?

Yen 11-04-2005 02:29 AM

Yeah.. O_o
Oh well.


All times are GMT +2. The time now is 06:45 AM.

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