-
1 Attachment(s)
So you literally just need something like this?
Is there a min/max value?
Is there a default value?
Should it show in Combat Tracker or Party Sheet?
Should anything happen to it when double clicked?
https://www.fantasygrounds.com/forum...chmentid=55724
Attachment 55724
-
Hey damned,
Yes, just show on the sheet is all we need. I realize it's just a cosmetic change and should be simple. I've gone through the code and made some progress on where it's located but that's it. There are function calls I can't locate to see if they need additions, etc and so on. The graphic there was done by one of our GM's wife who works in graphic design. She kindly mocked one up for us.
It's just a box that we can type in any value as the Character Types each have their own way of calculating 'energy'. It does nothing else. We'll alter it as we need by just changing the value. Could set a default of 0 if you think it necessary. It does not need to go on the combat tracker and doesn't need a maximum value either.
thanks so much!
Cal
PS: that color scheme you have on that sheet is awesome as well as the layout heh.
-
Here is where I think it has to go with what I believe to be the 'changes'. I know you don't need me to tell you this. Just want to show that I was trying heh heh. The below is a copy from our discord code channel where I'm discussing what's needed with another Coder GM
<number_charwounds name="wounds" source="hp.wounds">
<anchored to="hpframe" position="insidetopright" offset="120,27" width="40" height="28" />
<description textres="char_tooltip_wounds" />
</number_charwounds>
<label_fieldtop name="wounds_label">
<anchored to="wounds" />
<static textres="char_label_wounds" />
</label_fieldtop>
Starts with < of course...it got cut off in the copy
<number_charenergy name="Energy" source="hp.energy">
<anchored to="hpframe" position="insidetopright" offset="120,27" width="40" height="28" />
<description textres="char_tooltip_energy" />
</number_charenergy>
<label_fieldtop name="energy_label">
<anchored to="energy" />
<static textres="char_label_energy" />
</label_fieldtop>
everything with 'energy' will have to be added
His response:
yeah. the code for HP, Temp, Wounds, Subdual should all be what we are looking for
Cal
PS: to go into the <---Defense---> field is what I figured. Just wondering if I was close heh
-
-
damned, wow man. That's fully awesome! I can't wait to fire it up.
Hey man, was I even close with the code discussion above?
thanks indeed
Cal
-
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<windowclass name="charsheet_main" merge="join">
<sheetdata>
<number_energy name="energy" source="energy" insertbefore="cmd">
<anchored to="touchac" position="below" offset="0,20" height="28" />
</number_energy>
<label_fieldtop name="energy_label">
<anchored to="energy" />
<static text="Energy" />
</label_fieldtop>
</sheetdata>
</windowclass>
</root>
<template name="number_energy">
<number>
<frame name="fieldlight" offset="7,5,7,5" />
</number>
</template>
-
Thanks! My fellow coder and I will analyze.
Cal
-
1 Attachment(s)