DICE PACKS BUNDLE
  1. #1

    Opening a frame from a button?

    I will post this stating I am pretty new to this whole Fantasy Grounds thing.

    I am working with MoreCore at the moment and an existing Extension for the Conan RPG.

    If I had a button control and I wanted to be able to drag and drop a node from the DB, so that clicking on the button opened a frame to display that entry, how would one go about doing that?

    At present, I can drag and drop onto the buttoncontrol and see and pull the data from the node, but I am at a loss on how I would, then go about displaying this in a frame that pops open.

    I am sure I am doing this the hard way, so if you are reading this and wondering to yourself. WTF?! Feel free to show me the light.

    If I am not totally insane, I would love some input on how to open a window from Lua.

    Thanks!

  2. #2
    You should use the "windowreferencefield" object to store and open links. It's basically a button linked to a "link" data field, so that it opens the "link" when you press the button. You'll see it used all the time throughout all the rulesets. The graphics are just customized for each game system. Plus, there are template examples in CoreRPG, such as "linkcontrol" and "linkfield" that already predefine graphics and sizes for windowreference control/field objects.

    Every "link" is a combination of a data path and a window class. The data path tells FG where the data for the record should come from, and the window class tells FG which windowclass definition to use to display the data.

    Hope that helps. Let us know if you have any other questions.

    Cheers,
    JPG

  3. #3
    Thanks very much. I am not surprised this exists, I just. Could. Not. Find. it. hahhaha. I am quite sure it is all throughout the systems. I have a look through Core and MoreCore for something and couldn't find it. I do see it is a basic level control, just never came across it for some reason!

    I will give this a try tonight or tomorrow whenever I get time.

  4. #4
    Worked beautifully! Much thanks!

  5. #5

  6. #6
    Hey. Nothing to really publish at this time, although getting there.

    I am extending the Jolly GM's Conan skin of More Core. Just adding more Conan specific stuff, such as a character sheet, where the bulk of my work has gone. I had hoped to record a publishable video demo of it yesterday but the quality was abysmal.

    I can drop the link here and you can take a look.

    https://www.youtube.com/watch?v=4HMJkPnsNps

    Adding reference links next to all the rollers now.

    Attachment 18001

  7. #7

  8. #8
    It's coming along. I'll take what I have considering Friday was my first start at Fantasy Grounds.

  9. #9
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,246
    Blog Entries
    9
    Quote Originally Posted by Ogedei View Post
    It's coming along. I'll take what I have considering Friday was my first start at Fantasy Grounds.
    Nice Glad to have you in the community and will keep and eye on what else you work on in the future!

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

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
  •  
Starfinder Playlist

Log in

Log in