Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-20-2010, 02:06 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Making GUI Controls invisible

Is it possible to make GUI controls invisible but still be able to click them? I assume all you have to do is use a transparent image and custom profile.
Reply With Quote
  #2  
Old 10-20-2010, 02:10 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
If you want to make a control invisible, you can just set the GUI Control to use own profile and set profile transparency to 0.

PHP Code:
new GuiWindowCtrl("Window"){
  
profile = GuiBlueWindowCtrl;
  
useownprofile = true;
  
profile.transparency = 0;
} 
Reply With Quote
  #3  
Old 10-20-2010, 02:10 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You could just use a generic GuiControl.

PHP Code:
new GuiControl("Example") {
  
x = 0;
  
y = 0;
  
width = screenwidth;
  
height = screenheight;
} 
I used something like that to prevent people from respawning when default heart systems were used.
__________________
Quote:
Reply With Quote
  #4  
Old 10-20-2010, 02:18 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
You could just use a generic GuiControl.

PHP Code:
new GuiControl("Example") {
  
x = 0;
  
y = 0;
  
width = screenwidth;
  
height = screenheight;
} 
I used something like that to prevent people from respawning when default heart systems were used.

so just dont define a profile?
Reply With Quote
  #5  
Old 10-20-2010, 02:24 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Cubical View Post
so just dont define a profile?
Well GuiControl is the base container for all GuiObjects, it's got all the functionality you want and is 'invisible' on-screen by default.

http://wiki.graal.net/index.php/Crea...ent/GuiControl
__________________
Quote:
Reply With Quote
  #6  
Old 10-20-2010, 02:24 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by Cubical View Post
so just dont define a profile?
a GUI Control on it's own doesn't have any real definition to how it looks. One created like that will just be a giant transparent field.

If you're wanting to create buttons and such using the existing GuiControls, i.e: GuiWindowCtrl, GuiButtonCtrl, then you'd want to use the approach I posted.
Reply With Quote
  #7  
Old 10-20-2010, 02:27 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
Well GuiControl is the base container for all GuiObjects, it's got all the functionality you want and is 'invisible' on-screen by default.

http://wiki.graal.net/index.php/Crea...ent/GuiControl
Oh, I misread what you said. I didn't think about that, thanks.
Reply With Quote
  #8  
Old 10-20-2010, 07:11 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Could just do GraalControl.onMouseMove() and check the mousescreenx/mousescreeny with params 1 and params 2.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
Reply


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 11:21 PM.


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