Thread: Options: Collapse All
-
February 20th, 2024, 22:57 #11
Nice QoL improvement @mattekure! Not sure why something like this isn't part of the base build to begin with.
aka Laendra
(Discord: Laendra#9660)
Ultimate license (FGC/FGU)
Current Timezone : Central (CDT) (GMT -5)
OP: 3317036507 / 2369539
My opinions are my own and represent no entity other than myself
Extension Support Discord: https://discord.gg/gKgC7nGpZK
Extensions = risk to your gaming experience. If you haven't tested out the extensions in your campaign before your gaming session, turn them off. If you don't backup your campaigns regularly, you're doing it wrong.
-
February 21st, 2024, 09:37 #12If 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
-
February 21st, 2024, 10:42 #13
-
February 21st, 2024, 12:35 #14
The functionality is now built into Core so this extension is no longer needed. I have delisted it on the forge.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
February 21st, 2024, 16:57 #15
Dang, that's record time!
-
February 21st, 2024, 16:59 #16
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
It was a good idea; and actually something that had been on my list but low priority for a while. Thanks to @mattekure for bumping it. With the new UI changes we've been making, it was easier to add them before.
Regards,
JPG
-
February 21st, 2024, 18:02 #17
The new menubar system was really easy to add new buttons to. I was surprised at just how easy. The hardest part was trying to figure out how all the parts worked. For any developers who want to add buttons to the menubar, here is how I did it.
Create a windowclass to merge into the one you want to add menubars. In this case its the options windowclass. Then add something like the following on the windowmenubar_utilitybox. This adds a separator first and then adds my two buttons. You could probably do it entirely in the xml now that I think about it, but this was my initial solution
Code:<root> <windowclass merge="join" name="options"> <sheetdata> <windowmenubar_utilitybox name="menubar"> <script> function onInit() if super and super.onInit then super.onInit() end ToolbarManager.addSeparator(subwindow, "right"); ToolbarManager.addButton(subwindow, "collapse", "right"); ToolbarManager.addButton(subwindow, "expandall", "right"); end </script> </windowmenubar_utilitybox> </sheetdata> </windowclass> </root>
Code:function onTabletopInit() ToolbarManager.registerButton("collapse", { sType = "action", sIcon = "button_collapse", sTooltipRes = "tooltip_collapse", fnActivate = collapseOptions, }); ToolbarManager.registerButton("expandall", { sType = "action", sIcon = "button_expand", sTooltipRes = "tooltip_expand", fnActivate = expandOptions, }); end function collapseOptions() --whatever end function expandOptions() --whatever end
Last edited by mattekure; February 21st, 2024 at 18:08.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks