celestian
May 27th, 2018, 08:42
I've written a block into the combat tab that shows on both the npc/pc sheets and the CT for npcs. The problem is it doesn't show up the same as on the npc record. Here you can see the Aarakocra in the CT and then a npc record (from the shortcut in the CT). You'll note the combat section is empty in the CT but not in the NPC record. I can add and remove those line entries (for notes on special combat information) and the CT expands and shrinks as needed but doesn't show the lines nor the shortcut buttons.
They use the same xml/code for both other than placement. I've since created a copy on the mini_combat and called in mini_combat_ct to play around with something....
https://i.imgur.com/uziA1JU.png
I think it might be something to do with the window placement in the CT and it's actually just really narrow or something and I can't see it?
This is the XML for the subwindow and title.
<!-- combat mini bar -->
<label_charframetop name="minicombattitle">
<anchored height="20">
<top parent="columnanchor" anchor="bottom" relation="relative" offset="15" />
<left offset="15" />
<right offset="-10" />
</anchored>
<icons>char_abilities</icons>
<static textres="char_label_combat" />
</label_charframetop>
<button_iedit name="abilitynotes_iedit">
<anchored to="minicombattitle" position="insidetopright" offset="5,0" />
<script>
function onValueChanged()
local bEditMode = (getValue() == 1);
window.abilitynotes_iadd.setVisible(bEditMode);
window.mini_combat_window.subwindow.abilitynotes.u pdate();
end
</script>
</button_iedit>
<button_iadd_abilitynotes name="abilitynotes_iadd">
<anchored to="abilitynotes_iedit" position="insidetopleft" offset="-25,0" />
<target>abilitynotes</target>
</button_iadd_abilitynotes>
<subwindow name="mini_combat_window">
<anchored to="columnanchor">
<top anchor="bottom" relation="relative" offset="2" />
<left offset="15" />
<right offset="-10" />
</anchored>
<class>combat_mini_section_ct</class>
<activate />
<fastinit />
</subwindow>
<!-- combat mini end -->
Is it the way I placed the subwindow? I've been futzing with this for a while and I just can't see it (almost 3am) so going to sleep on it... but hoping someone has a clue on where the error could be.
They use the same xml/code for both other than placement. I've since created a copy on the mini_combat and called in mini_combat_ct to play around with something....
https://i.imgur.com/uziA1JU.png
I think it might be something to do with the window placement in the CT and it's actually just really narrow or something and I can't see it?
This is the XML for the subwindow and title.
<!-- combat mini bar -->
<label_charframetop name="minicombattitle">
<anchored height="20">
<top parent="columnanchor" anchor="bottom" relation="relative" offset="15" />
<left offset="15" />
<right offset="-10" />
</anchored>
<icons>char_abilities</icons>
<static textres="char_label_combat" />
</label_charframetop>
<button_iedit name="abilitynotes_iedit">
<anchored to="minicombattitle" position="insidetopright" offset="5,0" />
<script>
function onValueChanged()
local bEditMode = (getValue() == 1);
window.abilitynotes_iadd.setVisible(bEditMode);
window.mini_combat_window.subwindow.abilitynotes.u pdate();
end
</script>
</button_iedit>
<button_iadd_abilitynotes name="abilitynotes_iadd">
<anchored to="abilitynotes_iedit" position="insidetopleft" offset="-25,0" />
<target>abilitynotes</target>
</button_iadd_abilitynotes>
<subwindow name="mini_combat_window">
<anchored to="columnanchor">
<top anchor="bottom" relation="relative" offset="2" />
<left offset="15" />
<right offset="-10" />
</anchored>
<class>combat_mini_section_ct</class>
<activate />
<fastinit />
</subwindow>
<!-- combat mini end -->
Is it the way I placed the subwindow? I've been futzing with this for a while and I just can't see it (almost 3am) so going to sleep on it... but hoping someone has a clue on where the error could be.