-
July 11th, 2019, 18:49 #11
So, ignore the scroll issue mentioned above, all sorted. Turns out the previous options I needed (maintaining the contentframe bottom anchor) was unnecessary for a non-windowlist.
Everything seems to be working!
I'll clean up the code and post the important bits incase anyone is interested after a bit.---
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.
-
July 11th, 2019, 22:31 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
And celestian solved it before I made it back from lunch.
JPG
-
July 12th, 2019, 22:06 #13
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
Congrats, Celestian. Will probably come in handy
-
July 13th, 2019, 04:36 #14
So here is the parts of the code that matter here.
This is the xml for the window. I tried not to template anything so folks could more easily see what was going on but there are bits like tabs/etc that are but those are "standard" of sorts.
Code:<!-- main selected window, actions/saves/etc, right side with all the fun stuff --> <windowclass name="cta_main_selected_host"> <!-- <frame name="field-red" /> --> <script file="cta/scripts/cta_selected.lua" /> <sheetdata> <subwindow name="header"> <anchored> <top offset="35" /> <left offset="13" /> <right offset="-10" /> </anchored> <activate /> <fastinit /> <noscroll /> <class>selected_entry_header</class> <frame name="headergray" offset="5,5,5,5" /> </subwindow> <genericcontrol name="contentframe"> <anchored> <top parent="header" anchor="bottom" offset="0" /> <left offset="0" /> <bottom parent="" anchor="bottom" offset="0" /> </anchored> <disabled /> <!-- <frame name="groupbox" offset="0,0,0,0" /> --> </genericcontrol> <genericcontrol name="contentanchor"> <anchored height="0"> <top parent="header" anchor="bottom" offset="0" relation="relative"/> <left parent="" anchor="left" offset="0" /> <right parent="" anchor="right" offset="0" /> </anchored> <disabled /> <!-- <frame name="field-yellow" /> --> </genericcontrol> <subwindow name="actions"> <!-- <frame name="field-green" /> --> <anchored to="contentanchor" > <top anchor="top" offset="5" /> <left parent="" anchor="left" offset="5"/> <right parent="" anchor="right" offset="-20"/> <bottom parent="contentframe" anchor="bottom" offset="-5"/> </anchored> <activate /> <fastinit /> <class>cta_actions_host</class> </subwindow> <cta_selected_scrollbar> <anchored to="actions" /> <target>actions</target> </cta_selected_scrollbar> <subwindow name="effects"> <!-- <frame name="field-green" /> --> <anchored to="contentanchor" > <top anchor="top" offset="5" /> <left parent="" anchor="left" offset="5"/> <right parent="" anchor="right" offset="-20"/> <bottom parent="contentframe" anchor="bottom" offset="-5"/> </anchored> <activate /> <fastinit /> <class>cta_effects_host</class> </subwindow> <cta_selected_scrollbar> <anchored to="effects" /> <target>effects</target> </cta_selected_scrollbar> <subwindow name="skills"> <!-- <frame name="field-green" /> --> <anchored to="contentanchor" > <top anchor="top" offset="5" /> <left parent="" anchor="left" offset="5"/> <right parent="" anchor="right" offset="-20"/> <bottom parent="contentframe" anchor="bottom" offset="-5"/> </anchored> <activate /> <fastinit /> <class>cta_skills_host</class> </subwindow> <cta_selected_scrollbar> <anchored to="skills" /> <target>skills</target> </cta_selected_scrollbar> <subwindow name="stats"> <!-- <frame name="field-blue" /> --> <anchored to="contentanchor" > <top anchor="top" offset="5" /> <left parent="" anchor="left" offset="5"/> <right parent="" anchor="right" offset="-20"/> <bottom parent="contentframe" anchor="bottom" offset="-5"/> </anchored> <class>cta_stats_host</class> <activate /> <fastinit /> </subwindow> <cta_selected_scrollbar> <anchored to="stats" /> <target>stats</target> </cta_selected_scrollbar> <tabs_cta name="tabs_cta"> <tab> <icon>htab_actions_icon</icon> <subwindow>actions</subwindow> </tab> <tab> <icon>htab_effects_icon</icon> <subwindow>effects</subwindow> </tab> <tab> <icon>htab_stats_icon</icon> <subwindow>stats</subwindow> </tab> <tab> <icon>htab_skills_icon</icon> <subwindow>skills</subwindow> </tab> </tabs_cta> </sheetdata> </windowclass>
I did also have to create a horizontal tab system. I took the existing vertical one and tweaked it to support horizontal. If/when I get the chance I'm going to see if I can merge them and you just set a flag within the xml to determine which one to use.---
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.
-
July 13th, 2019, 04:55 #15
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
Let me know when you do this, and I can merge into CoreRPG.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks