mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 21:21:08 +01:00
Changed to a warning icon
This commit is contained in:
parent
4f6c87a524
commit
20841ae7bf
6 changed files with 30 additions and 24 deletions
|
|
@ -1078,9 +1078,9 @@
|
||||||
"faith": "Faith",
|
"faith": "Faith",
|
||||||
"ShortRest": "Take a Short Rest",
|
"ShortRest": "Take a Short Rest",
|
||||||
"LongRest": "Take a Long Rest",
|
"LongRest": "Take a Long Rest",
|
||||||
"CharacterSetup": "Setup",
|
"CharacterSetup": "Character setup isn't done yet",
|
||||||
"Level": "Level",
|
"Level": "Level",
|
||||||
"LevelUp": "Level Up!",
|
"LevelUp": "You can level up",
|
||||||
"Tabs": {
|
"Tabs": {
|
||||||
"Features": "Features",
|
"Features": "Features",
|
||||||
"Inventory": "Inventory",
|
"Inventory": "Inventory",
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,7 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
useAdvancementCard: this.useAdvancementCard,
|
useAdvancementCard: this.useAdvancementCard,
|
||||||
useAdvancementAbility: this.useAdvancementAbility,
|
useAdvancementAbility: this.useAdvancementAbility,
|
||||||
toggleEquipItem: this.toggleEquipItem,
|
toggleEquipItem: this.toggleEquipItem,
|
||||||
characterSetup: this.characterSetup,
|
levelManagement: this.levelManagement,
|
||||||
levelup: this.openLevelUp,
|
|
||||||
editImage: this._onEditImage
|
editImage: this._onEditImage
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
|
|
@ -458,11 +457,19 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static characterSetup() {
|
static levelManagement() {
|
||||||
|
if (this.document.system.needsCharacterSetup) {
|
||||||
|
this.characterSetup();
|
||||||
|
} else {
|
||||||
|
this.openLevelUp();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
characterSetup() {
|
||||||
new DhCharacterCreation(this.document).render(true);
|
new DhCharacterCreation(this.document).render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static openLevelUp() {
|
openLevelUp() {
|
||||||
if (!this.document.system.class.value || !this.document.system.class.subclass) {
|
if (!this.document.system.class.value || !this.document.system.class.subclass) {
|
||||||
ui.notifications.error(game.i18n.localize('DAGGERHEART.Sheets.PC.Errors.missingClassOrSubclass'));
|
ui.notifications.error(game.i18n.localize('DAGGERHEART.Sheets.PC.Errors.missingClassOrSubclass'));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -3453,7 +3453,7 @@ div.daggerheart.views.multiclass {
|
||||||
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row {
|
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
@ -3487,7 +3487,7 @@ div.daggerheart.views.multiclass {
|
||||||
}
|
}
|
||||||
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row .level-div .level-button {
|
.application.sheet.daggerheart.actor.dh-style.character .character-header-sheet .name-row .level-div .level-button {
|
||||||
color: light-dark(#222, #efe6d8);
|
color: light-dark(#222, #efe6d8);
|
||||||
font-size: 28px;
|
font-size: 18px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
height: min-content;
|
height: min-content;
|
||||||
|
|
@ -4106,7 +4106,7 @@ div.daggerheart.views.multiclass {
|
||||||
box-shadow: 0 0 1px 1px #f3c267;
|
box-shadow: 0 0 1px 1px #f3c267;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
box-shadow: 0 0 3px 3px #f3c267;
|
box-shadow: 0 0 2px 2px #f3c267;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@keyframes glow-dark {
|
@keyframes glow-dark {
|
||||||
|
|
@ -4114,7 +4114,7 @@ div.daggerheart.views.multiclass {
|
||||||
box-shadow: 0 0 1px 1px #18162e;
|
box-shadow: 0 0 1px 1px #18162e;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
box-shadow: 0 0 3px 3px #18162e;
|
box-shadow: 0 0 2px 2px #18162e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
.name-row {
|
.name-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
.level-button {
|
.level-button {
|
||||||
color: light-dark(@dark, @beige);
|
color: light-dark(@dark, @beige);
|
||||||
font-size: 28px;
|
font-size: 18px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
height: min-content;
|
height: min-content;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
box-shadow: 0 0 3px 3px @golden;
|
box-shadow: 0 0 2px 2px @golden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,6 +36,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
box-shadow: 0 0 3px 3px @dark-blue;
|
box-shadow: 0 0 2px 2px @dark-blue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,17 +12,16 @@
|
||||||
|
|
||||||
<div class='level-div'>
|
<div class='level-div'>
|
||||||
<h3 class='label'>
|
<h3 class='label'>
|
||||||
{{#if document.system.needsCharacterSetup}}
|
{{#if (or document.system.needsCharacterSetup document.system.levelData.canLevelUp)}}
|
||||||
<button class="level-button glow" data-action="characterSetup">{{localize 'DAGGERHEART.Sheets.PC.CharacterSetup'}}</button>
|
<button
|
||||||
{{else}}
|
class="level-button glow" data-tooltip="{{#if document.system.needsCharacterSetup}}{{localize "DAGGERHEART.Sheets.PC.CharacterSetup"}}{{else}}{{localize "DAGGERHEART.Sheets.PC.LevelUp"}}{{/if}}"
|
||||||
{{#if document.system.levelData.canLevelUp}}
|
data-action="levelManagement"
|
||||||
<button class="level-button glow" data-action="levelup">{{localize 'DAGGERHEART.Sheets.PC.LevelUp'}}</button>
|
>
|
||||||
{{!-- <div class="levelup">{{localize 'DAGGERHEART.Sheets.PC.LevelUp'}}</div> --}}
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
||||||
{{else}}
|
</button>
|
||||||
{{localize 'DAGGERHEART.Sheets.PC.Level'}}
|
|
||||||
{{/if}}
|
|
||||||
<input type="text" data-dtype="Number" class="level-value" value={{document.system.levelData.level.changed}} />
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{localize 'DAGGERHEART.Sheets.PC.Level'}}
|
||||||
|
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue