Thread: Modifier Field
-
March 15th, 2024, 16:09 #1
- Join Date
- Mar 2023
- Posts
- 70
Modifier Field
PFRPG1.0
I want to remove the Modifier field from the dashboard. I tried looking in the CorRPG file and i'm seeing it reference in multiple files. Any idea on how I can remove this from the dashboard without breaking FGU? So far when I nullify the lines using <!-- --> i'm getting load errors.
Modifier.png
-
March 15th, 2024, 16:36 #2
I don't know if this will work, but try the following once the desktop has loaded:
Code:local wModifier = Interface.findWindow("modifierstack", ""); if wModifier then wModifier.close(); end
Last edited by Trenloe; March 15th, 2024 at 18:29. Reason: Edit of findWindow code
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!
-
March 15th, 2024, 16:38 #3
- Join Date
- Mar 2023
- Posts
- 70
Looks good. Is that in the CoreRPG/desktop/desktop_classes.xml?
-
March 15th, 2024, 16:48 #4Private 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!
-
March 15th, 2024, 17:09 #5
- Join Date
- Mar 2023
- Posts
- 70
Oh I just caught what you said. "...once the desktop has loaded". Type that code in the chat then?
-
March 15th, 2024, 17:16 #6If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
March 15th, 2024, 17:19 #7
This is base FG code, so you will need to write an extension with code to carry out the operation.
Use Interface.onDesktopInit to assign a handler. For example:
Code:function onInit() Interface.onDesktopInit = closeModifierStack; end function closeModifierStack() local wModifier = Interface.findWindow("modifierstack", ""); if wModifier then wModifier.close(); end end
Last edited by Trenloe; March 15th, 2024 at 18:30. Reason: findWindow code update
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!
-
March 15th, 2024, 17:53 #8
- Join Date
- Mar 2023
- Posts
- 70
I'm ok at looking through extensions and doing some minor editing and tweaking. I haven't taken on writing an extension yet. Anyway any of you all have the time to put one together?
-
March 15th, 2024, 18:29 #9
Try the attached - it will appear as "Feature: Close modifier stack" in the extension list.
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!
-
March 15th, 2024, 19:27 #10
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,613
Actually you can just use this now; no need to register an event handler.
Code:function onTabletopInit() closeModifierStack(); end
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks