DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #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.

  2. #12
    And celestian solved it before I made it back from lunch.

    JPG

  3. #13

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    Congrats, Celestian. Will probably come in handy

  4. #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>
    Once I stopped using the windowlist it made things a lot easier. I could set the contentframe to the bottom of parent="" and that solved all the issues. When it was in a windowlist I had to watch for window resizing and manually set it.

    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.

  5. #15
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in