Thread: Opening a frame from a button?
-
February 21st, 2017, 15:40 #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!
-
February 21st, 2017, 17:57 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,541
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
-
February 21st, 2017, 18:06 #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.
-
February 22nd, 2017, 01:33 #4
-
February 22nd, 2017, 02:17 #5
Hey Ogedei - we wanna see what your working on
Do share!
-
February 22nd, 2017, 02:49 #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
-
February 22nd, 2017, 03:03 #7
-
February 22nd, 2017, 03:04 #8
It's coming along. I'll take what I have considering Friday was my first start at Fantasy Grounds.
-
February 22nd, 2017, 15:22 #9
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