DICE PACKS BUNDLE
  1. #1
    Papi's Avatar
    Join Date
    Feb 2016
    Location
    Athens, Greece
    Posts
    30

    Hover and Custom Paragraph Types

    Greetings Good aligned geniuses! I am trying to find a way to create a custom paragraph type in order to achieve the following:
    I want to create a text type that when your mouse hovers over it, it displays additional information. This should work just like when you hover over a link in a map image, but instead of displaying the link title it shows user defined information. Kind of like a hypertext link on hover. The whole point to this is that I am running a pretty complex campaign setting with loads of different NPCs and locations and it would really help for me to have an easy reference in a STORY.

    Is there any way to achieve this? My guess is that it should be pretty complex.
    Can it be done via an extension? Can it? Can it?
    What is the minimum INT score needed to do this? (mine is 8...)

    I am giving to you a visual example of what I would like to accomplish in order for you to understand better:
    Attachment 33457
    Attached Images Attached Images
    Last edited by Papi; April 11th, 2020 at 16:42.

  2. #2
    Good question. There is onHover (Frame) and setToolTipText options, both worth looking into to see if we can wrangle it to work. Not sure if we have implemented into a link or to get that ability. I like this idea and will investigate it for you.

    Reference to the refdoc.
    https://www.fantasygrounds.com/refdo...ol.xcp#onHover
    https://www.fantasygrounds.com/refdo...setTooltipText

    The examples I've seen and known to use is placing links on line by itself, but not inline with the text itself.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  3. #3
    Papi's Avatar
    Join Date
    Feb 2016
    Location
    Athens, Greece
    Posts
    30
    This is excellent! Is there anything I could do to help out? Files to tinker with, crashes to cause?
    (Pardon my delayed response, but I was running a Pathfinder game yesterday)

    Maybe by utilising the class used in the following image?
    example02.png
    And instead of displaying the link title it showed the whole text of the entry. That seems like a good first step. Is this possible?
    Would https://www.fantasygrounds.com/refdo...et.xcp#getText help?

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,534
    You're not going to be able to do this within a formatted text control - which is the control Story entries (and others) use. Because there are very limited API functions available for that control - due to the underlying complexity of the code used to visually present the underlying marked up data.

    You can do it within a string control - as these inherit the textbasecontrol API which includes the getCursorPosition Interface that can be used to identify where the mouse cursor is and do various operations. This type of code is used in the 5E ruleset to highlight the different actions in an ability description, attack/damage entry, etc.. But, of course, this is just a plain text field - none of the nice formatting is available.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    Papi's Avatar
    Join Date
    Feb 2016
    Location
    Athens, Greece
    Posts
    30
    Are these classes available in FG Classic? (Still haven't got my hands on a unity version because I am an ultimate owner via Steam and I am waiting to buy it there so the 40% discount kicks in.)
    Plain text would work just fine if there is at least a new line option...
    Are these the ones you are referring to:

    https://www.fantasygrounds.com/refdoc/stringcontrol.xcp
    https://www.fantasygrounds.com/refdoc/windowcontrol.xcp
    Last edited by Papi; April 12th, 2020 at 12:23.

  6. #6
    Well the issue I was running into was the inability to just select a word and basically turn it into a control that can then get a tooltip. I am going to at this time say it is something that I can't get accomplished with the tools we currently have. As I mentioned there is going to be a need for some backend help here that we won't have done till we finalize some projects with Unity. The idea is a great one and please use the link in my signature to make a note of it. So we can investigate it in the future.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  7. #7
    Papi's Avatar
    Join Date
    Feb 2016
    Location
    Athens, Greece
    Posts
    30
    No worries fellow cthulhian-octopus-enthusiast! Thank you for your time and effort and let me note that it is this community spirit that keeps me invested in fantasy grounds. Do you have any suggestion on how I should phrase it so that it becomes easily clear to other users?

  8. #8
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,534
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

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