PDA

View Full Version : Buttons to the left?



Druthlen
June 25th, 2019, 04:34
I want my shortcut buttons to the left... lets take traits from 3.5

If its on the right it automatically shortens the list.
If its on the left it overlaps and looks hideous and doesn't function correctly.

What am I doing wrong?

I have tried offsetting the list and that doesn't seem to work. It seems that list will spread out over all of the frame regardless of any setting I put on it.

sorry for being such a newbie. Good news is I am making good progress on the VtM ruleset. If I could figure this out....


<frame_char name="traitframe">
<anchored position="insidebottomleft" offset="29,20">
<right anchor="center" offset="-140" />
<top anchor="center" offset="60" />
</anchored>
</frame_char>
<label_frametop>
<anchored to="traitframe" />
<static textres="char_label_traits" />
</label_frametop>
<list_charabilities name="traits">
<anchored to="traitframe">
</anchored>
<datasource>.traitlist</datasource>
<class>char_ability_race</class>
</list_charabilities>
<scrollbar>
<anchored to="traits" />
<target>traits</target>
</scrollbar>
<button_iedit name="traits_iedit">
<anchored to="traits" position="aboveright" offset="5,5" />
<target>traits</target>
</button_iedit>
<button_iadd name="traits_iadd">
<anchored to="traits" position="aboveleft" offset="5,5" />
<target>traits</target>
</button_iadd>


<windowclass name="char_ability_race">
<margins control="0,0,0,2" />
<sheetdata>
<genericcontrol name="rightanchor">
<anchored height="0" width="0">
<top />
<right />
</anchored>
</genericcontrol>
<button_idelete name="idelete">
<anchored>
<top offset="2" />
<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
</anchored>
</button_idelete>
<genericcontrol name="leftanchor">
<anchored height="0" width="0">
<top />
<left />
</anchored>
</genericcontrol>
<linkcontrol name="shortcut">
<anchored width="20" height="20">
<top offset="2" />
<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
</anchored>
<class>referencediscipline</class>
<description field="name" />
<readonly />
</linkcontrol>
<string_textlistitem name="name">
<anchored>
<top offset="2" />
<left offset="5" />
<right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
</anchored>
<multilinespacing>20</multilinespacing>
</string_textlistitem>
</sheetdata>
</windowclass>

Trenloe
June 25th, 2019, 15:13
You’ll need to read up on anchoring and relative anchoring. https://www.fantasygrounds.com/wiki/index.php/Developer_Guide_-_Rulesets_-_Interface#Anchoring

But, in the above XML you post, the control positions are built from the right to the left (using relative anchoring on right side of each control and a "rightanchor" control). So try moving the XML of the "shortcut" control to after the XML of the "name" control.

Druthlen
June 25th, 2019, 18:05
You’ll need to read up on anchoring and relative anchoring. https://www.fantasygrounds.com/wiki/index.php/Developer_Guide_-_Rulesets_-_Interface#Anchoring

But, in the above XML you post, the control positions are built from the right to the left (using relative anchoring on right side of each control and a "rightanchor" control). So try moving the XML of the "shortcut" control to after the XML of the "name" control.


Thank you so much!!