PDA

View Full Version : What triggers the highlighting in 5E ruleset for fields like AbilityStats, Wounds, et



Varsuuk
June 12th, 2023, 06:18
I notice when the cursor passes over STR, DEX, CON, etc and also Wounds, TMP. etc that the graphic basically "bolds" the rectangle outline.

What causes this? I didn't see where it occurs in: number_charwounds, it can't be a default in basicnumber. Nor did I see it in the attached script either (that I understood):


<script>
function onInit()
if super.onInit then
super.onInit();
end

OptionsManager.registerCallback("WNDC", onValueChanged);
onValueChanged();
end
...

Moon Wizard
June 12th, 2023, 07:34
It comes from this code for a template of a basic editable number field:



<template name="basicnumber">
<simplenumber>
<frame mergerule="replace" name="fielddark" offset="7,5,7,5" />
<stateframe>
<keyedit name="fieldfocus" offset="7,5,7,5" />
<hover name="fieldfocus" offset="7,5,7,5" hidereadonly="true" />
<drophilight name="fieldfocus" offset="7,5,7,5" hidereadonly="true" />
</stateframe>
</simplenumber>
</template>


Regards,
JPG

Varsuuk
June 12th, 2023, 08:19
Odd then I must have either used something that overwrote it or… dunno - I’ll look tomorrow (in bed atm)

I didn’t look at BN cos I assumed if it was there, I’d be seeing it in effect. Thanks!