5E Character Create Playlist
  1. #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."

  2. #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-

  3. #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."

  4. #4
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    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

  5. #5
    Quote Originally Posted by Foen
    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
    are you talking about controls that have setVisibile(false) or any control that has a transparent image for its frame/icon?
    Everybody lies...
    -Dr. Gregory House, HOUSE MD-

    Urge to destroy world, rising...
    -Black Mage, 8-Bit Theater-

  6. #6
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,658
    Blog Entries
    2
    Quote Originally Posted by Czarisyn
    are you talking about controls that have setVisibile(false) or any control that has a transparent image for its frame/icon?
    I believe Foen is referring to objects that have been set invisible by the setVisible(false) method.

    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.

  7. #7
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Like the good Doctor says ;o)

  8. #8
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,658
    Blog Entries
    2

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in