Varsuuk
July 17th, 2023, 06:16
[EDIT] --> I am SO sorry, writting all this out gave my mind the ability to organize my thoughts better and after completing it, I rexamined the differences.
This issue was the darn "<readonly/> flag!
So, now I get it, I really should have thought about what the attrib "hidereadonly=" meant on <hover> --- I am sorry for wasting folks time. Leaving the rest but unless you want to know how I missed the obvious - you can stop here. RATHER, you could still answer the question I will copy from the original text, if ya know:
"One question, first: is the "copy=xxx" attribute for "prime time use" or still experimental? I'd like to be able to use it when it makes sense but have not yet considered where that might be since I read it was not yet "official" for non-SW until later."
<< BELOW WAS SOLVED... read only if bored, since no help is needed ;P >>
I have been very much enjoying reading through the updated (for me, been while) templates and documentation. I am trying, where possible, to follow new and upcoming standards.
One question, first: is the "copy=xxx" attribute for "prime time use" or still experimental? I'd like to be able to use it when it makes sense but have not yet considered where that might be since I read it was not yet "official" for non-SW until later.
The main reason I am posting this is some time ago, I did the first page of the main charactersheet and I asked where I could find out how to do the highlighting etc I see in 5E and others. I was told that it was already part of basicnumber. I was confused since I thought I was using that already but put it off since I had a lot more higher priority things.
Now that I am understanding/remembering more, I wanted to revisit this. My template for the equivalent to 5E character abilities uses:
<template name="number_charabilityscore">
<basicnumber>
<anchored to="abilities_title" position="insidetopleft"/>
<rollable />
<readonly />
<min>1</min>
<max>25</max>
<default>9</default>
<frame name="fielddark" />
<script file="campaign/scripts/number_abilityscore.lua" />
</basicnumber>
</template>
Here is one such use of the above:
<number_charabilityscore name="strength" source="abilities.strength.score">
<anchored offset="-10,38" height="36" width="35" />
<tooltip textres="char_strength_tooltip"></tooltip>
<target>strength</target>
</number_charabilityscore>
(I have to revisit anchoring for much of this since I started it using RSW.)
Now, in my case, hovering the cursor over any of the attribs does nothing but display the tooltip. I removed the frame definition (since I had made my own with that name) and it made the boxes different shapped but still no highlighting as I expect is defined in:
--> CoreRPG snippet:
<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>
Any idea what I might have done to "turn that off" or didn't do to "initialize" that sort of default behavior?
Thanks!
This issue was the darn "<readonly/> flag!
So, now I get it, I really should have thought about what the attrib "hidereadonly=" meant on <hover> --- I am sorry for wasting folks time. Leaving the rest but unless you want to know how I missed the obvious - you can stop here. RATHER, you could still answer the question I will copy from the original text, if ya know:
"One question, first: is the "copy=xxx" attribute for "prime time use" or still experimental? I'd like to be able to use it when it makes sense but have not yet considered where that might be since I read it was not yet "official" for non-SW until later."
<< BELOW WAS SOLVED... read only if bored, since no help is needed ;P >>
I have been very much enjoying reading through the updated (for me, been while) templates and documentation. I am trying, where possible, to follow new and upcoming standards.
One question, first: is the "copy=xxx" attribute for "prime time use" or still experimental? I'd like to be able to use it when it makes sense but have not yet considered where that might be since I read it was not yet "official" for non-SW until later.
The main reason I am posting this is some time ago, I did the first page of the main charactersheet and I asked where I could find out how to do the highlighting etc I see in 5E and others. I was told that it was already part of basicnumber. I was confused since I thought I was using that already but put it off since I had a lot more higher priority things.
Now that I am understanding/remembering more, I wanted to revisit this. My template for the equivalent to 5E character abilities uses:
<template name="number_charabilityscore">
<basicnumber>
<anchored to="abilities_title" position="insidetopleft"/>
<rollable />
<readonly />
<min>1</min>
<max>25</max>
<default>9</default>
<frame name="fielddark" />
<script file="campaign/scripts/number_abilityscore.lua" />
</basicnumber>
</template>
Here is one such use of the above:
<number_charabilityscore name="strength" source="abilities.strength.score">
<anchored offset="-10,38" height="36" width="35" />
<tooltip textres="char_strength_tooltip"></tooltip>
<target>strength</target>
</number_charabilityscore>
(I have to revisit anchoring for much of this since I started it using RSW.)
Now, in my case, hovering the cursor over any of the attribs does nothing but display the tooltip. I removed the frame definition (since I had made my own with that name) and it made the boxes different shapped but still no highlighting as I expect is defined in:
--> CoreRPG snippet:
<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>
Any idea what I might have done to "turn that off" or didn't do to "initialize" that sort of default behavior?
Thanks!