Zhern
December 23rd, 2016, 22:00
Okay, I feel a bit silly having to ask this, but for some reason I'm not able to find the exact control that determines the width of a column in a reference header. For example, in the Swords & Wizardry weapon list, one of the columns has a label for "Rate of Fire," but I can't seem to find the right spot to either make the width of the column dynamic, increase the width of the column, or increase the height of the header to allow the text to wrap, so I'm left with "Rate of." At first I was thinking, okay, I'll come back to this later, but it is bugging the crap out of me and I'm hoping someone can point me to the spot that I'm missing. I'm sure it is right before me, ready to bite me, but for the life of me I'm not able to see it.
Also, I'm having another brain fart and it isn't making sense to me why I'm getting an error about anchoring to an uncalculated control in this particular windowclass. I'm sure it is something silly that I'm doing and just not seeing it. Any insight is welcomed. I promise I'm not dense - this is one of those cases of when you stare at something too long it is usually right before your eyes and very, very obvious. Like when you keep searching for that missing semi-colon or brace or unclosed tag...
ref_equipment.xml
<windowclass name="ref_weapon_header">
<margins control="0,0,0,7" />
<sheetdata>
<link_record_header>
<class>referenceweapon</class>
</link_record_header>
<string_record_name name="name">
<anchored>
<top offset="25"/>
<left offset="40" />
<right offset="-25" />
</anchored>
<dynamic />
</string_record_name>
</sheetdata>
</windowclass>
<windowclass name="ref_weapon_stats">
<script>
function onInit()
type_label.setValue("[" .. type.getValue() .. "; " .. subtype.getValue() .. "]");
end
</script>
<sheetdata>
<anchor_column name="columnanchor" />
<hs name="type" />
<hs name="subtype" />
<label_column name="type_label">
<anchored>
<top relation="relative" offset="50" />
</anchored>
<font>reference-b-large</font>
</label_column>
<line_column />
<label_column>
<static textres="ref_label_damage" />
</label_column>
<string_column name="damage">
<readonly />
</string_column>
<label_column>
<static textres="ref_label_ratefire" />
</label_column>
<string_column name="ratefire">
<readonly />
</string_column>
<line_column />
<label_column name="range_label">
<static textres="ref_label_range" />
</label_column>
<number_column name="range">
<readonly />
</number_column>
<label_column_right>
<anchored to="cost" />
<static textres="ref_label_weight" />
</label_column_right>
<number_column_right name="weight">
<anchored to="cost" />
<readonly />
</number_column_right>
<label_column name="cost_label">
<static textres="ref_label_cost" />
</label_column>
<string_column_left name="cost">
<readonly />
</string_column_left>
<line_column name="line_desc"/>
<ft_columnh name="description">
<separator>line_desc</separator>
<readonly />
</ft_columnh>
</sheetdata>
</windowclass>
Also, I'm having another brain fart and it isn't making sense to me why I'm getting an error about anchoring to an uncalculated control in this particular windowclass. I'm sure it is something silly that I'm doing and just not seeing it. Any insight is welcomed. I promise I'm not dense - this is one of those cases of when you stare at something too long it is usually right before your eyes and very, very obvious. Like when you keep searching for that missing semi-colon or brace or unclosed tag...
ref_equipment.xml
<windowclass name="ref_weapon_header">
<margins control="0,0,0,7" />
<sheetdata>
<link_record_header>
<class>referenceweapon</class>
</link_record_header>
<string_record_name name="name">
<anchored>
<top offset="25"/>
<left offset="40" />
<right offset="-25" />
</anchored>
<dynamic />
</string_record_name>
</sheetdata>
</windowclass>
<windowclass name="ref_weapon_stats">
<script>
function onInit()
type_label.setValue("[" .. type.getValue() .. "; " .. subtype.getValue() .. "]");
end
</script>
<sheetdata>
<anchor_column name="columnanchor" />
<hs name="type" />
<hs name="subtype" />
<label_column name="type_label">
<anchored>
<top relation="relative" offset="50" />
</anchored>
<font>reference-b-large</font>
</label_column>
<line_column />
<label_column>
<static textres="ref_label_damage" />
</label_column>
<string_column name="damage">
<readonly />
</string_column>
<label_column>
<static textres="ref_label_ratefire" />
</label_column>
<string_column name="ratefire">
<readonly />
</string_column>
<line_column />
<label_column name="range_label">
<static textres="ref_label_range" />
</label_column>
<number_column name="range">
<readonly />
</number_column>
<label_column_right>
<anchored to="cost" />
<static textres="ref_label_weight" />
</label_column_right>
<number_column_right name="weight">
<anchored to="cost" />
<readonly />
</number_column_right>
<label_column name="cost_label">
<static textres="ref_label_cost" />
</label_column>
<string_column_left name="cost">
<readonly />
</string_column_left>
<line_column name="line_desc"/>
<ft_columnh name="description">
<separator>line_desc</separator>
<readonly />
</ft_columnh>
</sheetdata>
</windowclass>