Attribute Item Subtype #76

Merged
Oliver merged 50 commits from feature/attribute-items into main 2026-04-27 02:12:56 +00:00
3 changed files with 18 additions and 10 deletions
Showing only changes of commit de1b976b12 - Show all commits

View file

@ -49,7 +49,8 @@
"PlayerSheet": "Player Sheet", "PlayerSheet": "Player Sheet",
"SingleModePlayerSheet": "Player Sheet (Always Editing)", "SingleModePlayerSheet": "Player Sheet (Always Editing)",
"AttributeOnlyPlayerSheet": "Player Sheet (Attributes Only)", "AttributeOnlyPlayerSheet": "Player Sheet (Attributes Only)",
"GenericItemSheet": "System Item Sheet" "GenericItemSheet": "System Item Sheet",
"AttributeItemSheet": "Attribute Sheet"
}, },
"misc": { "misc": {
"Key": "Key", "Key": "Key",
@ -68,6 +69,15 @@
"quantity": "Quantity", "quantity": "Quantity",
"equipped": "Equipped", "equipped": "Equipped",
"group": "Group" "group": "Group"
},
"attribute": {
"key": {
"hint": "This is the computer-friendly identifier for the attribute. When accessing the attribute in rolls, this is the name you will need to use. Changing this WILL break any existing macros you have."
},
"always-visible": "Always Visible",
"minimum": "Minimum",
"current-value": "Current Value",
"maximum": "Maximum"
} }
}, },
"Apps": { "Apps": {

View file

@ -1,7 +1,7 @@
<div> <div>
<div class="property"> <div class="property">
<label for="{{meta.idp}}-key"> <label for="{{meta.idp}}-key">
Key {{ localize "taf.misc.key" }}
</label> </label>
<input <input
type="text" type="text"
@ -10,14 +10,12 @@
value="{{system.key}}" value="{{system.key}}"
> >
<p class="hint"> <p class="hint">
This is the computer-friendly identifier for the attribute. {{ localize "taf.misc.attribute.key.hint" }}
When accessing the attribute in rolls, this is the name you will
need to use. Changing this WILL break any existing macros you have.
</p> </p>
</div> </div>
<div class="property"> <div class="property">
<label for="{{meta.idp}}-aboveTheFold"> <label for="{{meta.idp}}-aboveTheFold">
Always Visible? {{ localize "taf.misc.attribute.always-visible" }}
</label> </label>
<taf-toggle <taf-toggle
id="{{meta.idp}}-aboveTheFold" id="{{meta.idp}}-aboveTheFold"
@ -28,7 +26,7 @@
{{#if (not system.aboveTheFold)}} {{#if (not system.aboveTheFold)}}
<div class="property"> <div class="property">
<label for="{{meta.idp}}-group"> <label for="{{meta.idp}}-group">
Group {{ localize "taf.misc.item.group" }}
</label> </label>
<input <input
type="text" type="text"

View file

@ -1,6 +1,6 @@
<div class="value-controls"> <div class="value-controls">
<label for="{{meta.idp}}-min"> <label for="{{meta.idp}}-min">
Minimum {{ localize "taf.misc.attribute.minimum" }}
</label> </label>
<input <input
type="number" type="number"
@ -12,7 +12,7 @@
> >
<label for="{{meta.idp}}-value"> <label for="{{meta.idp}}-value">
Current Value {{ localize "taf.misc.attribute.current-value" }}
</label> </label>
<input <input
type="number" type="number"
@ -25,7 +25,7 @@
> >
<label for="{{meta.idp}}-max"> <label for="{{meta.idp}}-max">
Maximum {{ localize "taf.misc.attribute.maximum" }}
</label> </label>
<input <input
type="number" type="number"