Thread: Genericcontrol Question
-
July 25th, 2010, 21:11 #1
- Join Date
- Feb 2009
- Location
- Jacksonville, Florida
- Posts
- 153
Genericcontrol Question
Can I make a genericcontrol invisible but still have it click-able?
For example I'm going to have a picture of a paper doll up and I want to put generic controls over the heads, arms, torso, etc so that they can click that part of the body and the page controlling that bit of equipment will come up. If I setVisible(false) on a generic control is it still click-able?
Thanks :P!"Tis better to die on your feet, then live on your knees."
-
July 25th, 2010, 21:15 #2
A transparent frame with a button that calls a windowclass with your desired info might do the trick...
That's how I am going about mine, anyways. I'm still planning so I don't know if it works or not.Everybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 25th, 2010, 22:24 #3
- Join Date
- Feb 2009
- Location
- Jacksonville, Florida
- Posts
- 153
Oh not a bad idea. Make a generic control with no frame behind it . That might work.
Anyone else know about this?"Tis better to die on your feet, then live on your knees."
-
July 26th, 2010, 06:22 #4
The forthcoming release of FG (2.7) will make invisible controls non-clickable, I believe. Your best bet is to use a generic control with no icon or frame.
Alternatively, you can capture the onClick event from your paper doll, and determine where on the image it was clicked using the mouse x,y coordinates. That's how the BRP Vitruvian man works.
Stuart
-
July 26th, 2010, 15:52 #5Originally Posted by FoenEverybody lies...
-Dr. Gregory House, HOUSE MD-
Urge to destroy world, rising...
-Black Mage, 8-Bit Theater-
-
July 26th, 2010, 15:56 #6Originally Posted by Czarisyn
In 2.7.0 controls that have been setVisible(false) will no longer intercept user interaction like mouse hover, click, drag etc.
Frameless/iconless controls should operate as normal.
.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
July 26th, 2010, 16:11 #7
Like the good Doctor says ;o)
-
July 26th, 2010, 16:18 #8
My bad, didn't mean to tread on any toes ...
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks