-
April 20th, 2019, 23:47 #1
FGU: Dev question, Blocking windows?
Is there any plans to add blocking popups in FGU now or down the road?
Many libraries have a window/menu control that you can use that pops up for "yes/no" or question or alert that forces you to repond to the window and doesn't let you do anything else. It is the top window until you do. Typically these are also not something you need to do callbacks/registers for.
Among other things it allows you to do something like these.
Code:local bAccept = popupYesNo(nodeChar,"Are you sure you want to delete that?"); if bAccept then .... end local sNewName = popupGetString(nodechar,"Enter the new name of your pet.","Spot"); DB.setValue(nodeChar,"petname","string",sNewName); popupCustom(nodeChar,windowClass); ... continue after the custom window was closed...
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
April 21st, 2019, 00:02 #2
Even if you get a response from John or Doug, if you want this (which you do) I would add it to the wishlist. That way we can vote and they can track it.
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.
-
April 21st, 2019, 03:25 #3
How about this? https://www.fantasygrounds.com/refdo...#dialogMessage
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!
-
April 21st, 2019, 03:46 #4
There's also one of these inside the DOE:Base - it does need to be called via code, of course
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
April 21st, 2019, 03:47 #5
I think celestian is looking for a window that is always on top. Can't dialogMessage be hidden/obscured under other windows?
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.
-
April 21st, 2019, 06:10 #6
That does solve a yes/no question (thanks for pointing it out I missed it) but my main use case is a blocking window for anything so I can force the function to run and get input (other than just yes/no) before proceeding.
I will certainly make use of the yes/no on somethings I've been floating around if I can. I will experiment with it, thanks!
It doesn't seem to, it's exactly what I want only I also want the ability to do more than just yes/noLast edited by celestian; April 21st, 2019 at 06:18.
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
April 22nd, 2019, 01:35 #7
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
I made a wishlist entry so we can set an FG window to modal. Just go to the last page of the wishlist and it is there. Can’t figure out how to link to individual wish list item.
-
April 22nd, 2019, 02:03 #8
- Join Date
- Jan 2014
- Location
- California
- Posts
- 1,564
https://fg2app.idea.informer.com/proj/?ia=125639
You click on the title of the wishlist entry and it will open a window that is the specific entry. Then just cut/paste URL.Last edited by esmdev; April 22nd, 2019 at 02:05. Reason: Add solution
-
April 29th, 2019, 00:25 #9
The linked idea is sorta what I want but I want it to actually block everything for that user until the menu is dealt with... and not just yes/no but customizable input/view. I want to prompt users for various things and not proceed in the code until they respond and then use those values and proceed with that same function.
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
May 1st, 2019, 00:15 #10
I guess what I really want is blocking, period. Where I could show a window that is blocking and force focused. That way you can do as I mentioned previously without the leaping around call backs for some specific tasks.
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks