PDA

View Full Version : Subsection Frames Shifted in Combat Tracker



leozelig
September 4th, 2017, 12:52
A little issue I encountered while working on my DCC RPG ruleset...

I have looked through the combat tracker and graphics code several times at this point, and I cannot figure out why the subsection frames are different for a PC compared with an NPC - see screenshot. The labels/fields are in the same position for both (bit of an optical illusion there), but the frame is shifted. The only code that seems to care about NPC status is the script file "ct/scripts/ct_entry.lua" for visibility of the 'Atk' field, so I must be overlooking something simple.

I was hoping someone/JPG could at least identify the bit of code that is misbehaving...

Edit: Actually, I am seeing this in the 5E ruleset also.

20355

Nickademus
September 4th, 2017, 19:28
Let me look...
Find this section (or your equivalent) in the ct_host.xml file and paste it here:


<!-- Targeting subsection -->
<icon_ctsection name="targetingicon">
<icon>button_section_targeting_down</icon>
</icon_ctsection>
<subwindow name="sub_targeting">
<anchored>
<top parent="name" anchor="bottom" relation="relative" offset="10" />
<left parent="targetingicon" anchor="right" offset="8" />
<right offset="-12" />
</anchored>
<class>ct_targets</class>
</subwindow>
<frame_ctsub name="frame_targeting">
<anchored>
<top parent="targetingicon" offset="-1" />
<bottom parent="sub_targeting" />
</anchored>
</frame_ctsub>


EDIT: I'm not seeing this in the 5e ruleset with no extensions. What extensions are you running?