Changed to drag-area style. Updated localization

This commit is contained in:
WBHarry 2025-08-24 19:07:29 +02:00
parent 6fdd2318a5
commit 25cf14ab07
6 changed files with 24 additions and 27 deletions

View file

@ -1894,6 +1894,7 @@
"amount": "Amount", "amount": "Amount",
"any": "Any", "any": "Any",
"armor": "Armor", "armor": "Armor",
"armors": "Armors",
"armorScore": "Armor Score", "armorScore": "Armor Score",
"activeEffects": "Active Effects", "activeEffects": "Active Effects",
"armorSlots": "Armor Slots", "armorSlots": "Armor Slots",
@ -1944,6 +1945,7 @@
"inactiveEffects": "Inactive Effects", "inactiveEffects": "Inactive Effects",
"inventory": "Inventory", "inventory": "Inventory",
"itemResource": "Item Resource", "itemResource": "Item Resource",
"items": "Items",
"label": "Label", "label": "Label",
"level": "Level", "level": "Level",
"levelShort": "Lv", "levelShort": "Lv",
@ -1955,8 +1957,7 @@
"plural": "Miss" "plural": "Miss"
}, },
"maxWithThing": "Max {thing}", "maxWithThing": "Max {thing}",
"missingDragDropThing": "Drag in a {thing} to add it", "missingDragDropThing": "Drop {thing} here",
"missingDragDropThingAlt": "Drag in an {thing} to add it",
"multiclass": "Multiclass", "multiclass": "Multiclass",
"newCategory": "New Category", "newCategory": "New Category",
"none": "None", "none": "None",
@ -1978,6 +1979,7 @@
"scalable": "Scalable", "scalable": "Scalable",
"situationalBonus": "Situational Bonus", "situationalBonus": "Situational Bonus",
"stress": "Stress", "stress": "Stress",
"subclasses": "Subclasses",
"success": "Success", "success": "Success",
"take": "Take", "take": "Take",
"Target": { "Target": {
@ -1995,6 +1997,7 @@
"used": "Used", "used": "Used",
"uses": "Uses", "uses": "Uses",
"value": "Value", "value": "Value",
"weapons": "Weapons",
"withThing": "With {thing}" "withThing": "With {thing}"
}, },
"ITEMS": { "ITEMS": {

View file

@ -1,5 +1,12 @@
.hint { .drag-area {
flex: 0 0 100%; display: flex;
margin: 0; align-items: center;
color: var(--color-form-hint); justify-content: center;
box-sizing: border-box;
width: 100%;
height: 40px;
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
border-radius: 3px;
color: light-dark(@dark-blue-50, @beige-50);
font-family: @font-body;
} }

View file

@ -34,18 +34,5 @@
width: 100%; width: 100%;
} }
} }
.adversaries-dragger {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
height: 40px;
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
border-radius: 3px;
color: light-dark(@dark-blue-50, @beige-50);
font-family: @font-body;
}
} }
} }

View file

@ -25,7 +25,7 @@
</div> </div>
{{/each}} {{/each}}
</div> </div>
<div class="adversaries-dragger"> <div class="drag-area">
{{localize "DAGGERHEART.GENERAL.dropActorsHere"}} {{localize "DAGGERHEART.GENERAL.dropActorsHere"}}
</div> </div>
</fieldset> </fieldset>

View file

@ -28,7 +28,7 @@
<legend>{{localize "TYPES.Item.subclass"}}</legend> <legend>{{localize "TYPES.Item.subclass"}}</legend>
<div class="feature-list"> <div class="feature-list">
{{#unless source.system.subclasses}} {{#unless source.system.subclasses}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "TYPES.Item.subclass")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.subclasses")}}</div>
{{/unless}} {{/unless}}
{{#each source.system.subclasses as |subclass index|}} {{#each source.system.subclasses as |subclass index|}}
<li class='feature-item'> <li class='feature-item'>

View file

@ -46,7 +46,7 @@
</div> </div>
</div> </div>
{{else}} {{else}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "TYPES.Item.weapon")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.weapons")}}</div>
{{/if}} {{/if}}
</div> </div>
</fieldset> </fieldset>
@ -63,7 +63,7 @@
</div> </div>
</div> </div>
{{else}} {{else}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "TYPES.Item.weapon")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.weapons")}}</div>
{{/if}} {{/if}}
</div> </div>
</fieldset> </fieldset>
@ -80,7 +80,7 @@
</div> </div>
</div> </div>
{{else}} {{else}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThingAlt" thing=(localize "TYPES.Item.armor")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.armors")}}</div>
{{/if}} {{/if}}
</div> </div>
</fieldset> </fieldset>
@ -92,7 +92,7 @@
<legend>{{localize "DAGGERHEART.GENERAL.take"}}</legend> <legend>{{localize "DAGGERHEART.GENERAL.take"}}</legend>
<div class="drop-section-body list-items"> <div class="drop-section-body list-items">
{{#unless source.system.inventory.take}} {{#unless source.system.inventory.take}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThingAlt" thing=(localize "Item")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
{{/unless}} {{/unless}}
{{#each source.system.inventory.take}} {{#each source.system.inventory.take}}
{{#if this}} {{#if this}}
@ -112,7 +112,7 @@
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.thenChoose"}}</legend> <legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.thenChoose"}}</legend>
<div class="drop-section-body list-items"> <div class="drop-section-body list-items">
{{#unless source.system.inventory.choiceA}} {{#unless source.system.inventory.choiceA}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThingAlt" thing=(localize "Item")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
{{/unless}} {{/unless}}
{{#each source.system.inventory.choiceA}} {{#each source.system.inventory.choiceA}}
{{#if this}} {{#if this}}
@ -132,7 +132,7 @@
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.andEither"}}</legend> <legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.andEither"}}</legend>
<div class="drop-section-body list-items"> <div class="drop-section-body list-items">
{{#unless source.system.inventory.choiceB}} {{#unless source.system.inventory.choiceB}}
<div class="hint">{{localize "DAGGERHEART.GENERAL.missingDragDropThingAlt" thing=(localize "Item")}}</div> <div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
{{/unless}} {{/unless}}
{{#each source.system.inventory.choiceB}} {{#each source.system.inventory.choiceB}}
{{#if this}} {{#if this}}