mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 05:31:07 +01:00
Removed tabs when in Summary
This commit is contained in:
parent
629782eccc
commit
aca1f8a541
5 changed files with 28 additions and 22 deletions
|
|
@ -765,6 +765,7 @@
|
||||||
"summary": "Summary"
|
"summary": "Summary"
|
||||||
},
|
},
|
||||||
"navigateLevel": "To Level {level}",
|
"navigateLevel": "To Level {level}",
|
||||||
|
"navigateToLevelup": "Return To Levelup",
|
||||||
"navigateToSummary": "To Summary",
|
"navigateToSummary": "To Summary",
|
||||||
"TakeLevelUp": "Finish Level Up",
|
"TakeLevelUp": "Finish Level Up",
|
||||||
"Delevel": {
|
"Delevel": {
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
|
|
||||||
const { selections } = currentLevel.nrSelections;
|
const { selections } = currentLevel.nrSelections;
|
||||||
context.tabs.advancements.progress = { selected: selections, max: currentLevel.maxSelections };
|
context.tabs.advancements.progress = { selected: selections, max: currentLevel.maxSelections };
|
||||||
|
context.showTabs = this.tabGroups.primary !== 'summary';
|
||||||
break;
|
break;
|
||||||
case 'selections':
|
case 'selections':
|
||||||
const advancementChoices = Object.keys(currentLevel.choices).reduce((acc, choiceKey) => {
|
const advancementChoices = Object.keys(currentLevel.choices).reduce((acc, choiceKey) => {
|
||||||
|
|
|
||||||
|
|
@ -2739,6 +2739,7 @@ div.daggerheart.views.multiclass {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 22px;
|
gap: 22px;
|
||||||
|
height: 36px;
|
||||||
}
|
}
|
||||||
.daggerheart.levelup .levelup-navigation-container nav {
|
.daggerheart.levelup .levelup-navigation-container nav {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
@ -2934,7 +2935,7 @@ div.daggerheart.views.multiclass {
|
||||||
--primary-color-fear: rgba(9, 71, 179, 0.75);
|
--primary-color-fear: rgba(9, 71, 179, 0.75);
|
||||||
--secondary-color-fear: rgba(9, 71, 179, 0.75);
|
--secondary-color-fear: rgba(9, 71, 179, 0.75);
|
||||||
--shadow-text-stroke: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
|
--shadow-text-stroke: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
|
||||||
--fear-animation: background 0.3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
|
--fear-animation: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
|
||||||
}
|
}
|
||||||
#resources {
|
#resources {
|
||||||
min-height: calc(var(--header-height) + 4rem);
|
min-height: calc(var(--header-height) + 4rem);
|
||||||
|
|
@ -3030,7 +3031,7 @@ div.daggerheart.views.multiclass {
|
||||||
#resources .window-content #resource-fear.isGM i:hover {
|
#resources .window-content #resource-fear.isGM i:hover {
|
||||||
font-size: var(--font-size-20);
|
font-size: var(--font-size-20);
|
||||||
}
|
}
|
||||||
#resources button[data-action="close"] {
|
#resources button[data-action='close'] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#resources:not(:hover):not(.minimized) {
|
#resources:not(:hover):not(.minimized) {
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 22px;
|
gap: 22px;
|
||||||
|
height: 36px;
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,29 @@
|
||||||
<section class='tab-navigation'>
|
<section class='tab-navigation'>
|
||||||
<line-div></line-div>
|
<line-div></line-div>
|
||||||
<div class="levelup-navigation-container">
|
<div class="levelup-navigation-container">
|
||||||
<nav class='feature-tab sheet-tabs tabs' data-group='primary'>
|
{{#if this.showTabs}}
|
||||||
{{#each tabs as |tab|}}
|
<nav class='feature-tab sheet-tabs tabs' data-group='primary'>
|
||||||
{{#if (not (eq tab.id 'summary'))}}
|
{{#each tabs as |tab|}}
|
||||||
<div class="levelup-tab-container">
|
{{#if (not (eq tab.id 'summary'))}}
|
||||||
<a class='{{tab.id}} {{tab.cssClass}}' data-action='tab' data-group='{{tab.group}}' data-tab='{{tab.id}}'>
|
<div class="levelup-tab-container">
|
||||||
{{localize tab.label}}
|
<a class='{{tab.id}} {{tab.cssClass}}' data-action='tab' data-group='{{tab.group}}' data-tab='{{tab.id}}'>
|
||||||
</a>
|
{{localize tab.label}}
|
||||||
{{#if tab.progress}}
|
</a>
|
||||||
<div>{{tab.progress.selected}}/{{tab.progress.max}}</div>
|
{{#if tab.progress}}
|
||||||
{{/if}}
|
<div>{{tab.progress.selected}}/{{tab.progress.max}}</div>
|
||||||
</div>
|
{{/if}}
|
||||||
{{/if}}
|
</div>
|
||||||
{{/each}}
|
|
||||||
</nav>
|
|
||||||
<div class="levelup-navigation-actions">
|
|
||||||
{{#if (not this.navigate.previous.disabled)}}
|
|
||||||
{{#if this.navigate.previous.fromSummary}}
|
|
||||||
<button data-action="activatePart" data-part="advancements">{{this.navigate.previous.label}}</button>
|
|
||||||
{{else}}
|
|
||||||
<button data-action="updateCurrentLevel" >{{this.navigate.previous.label}}</button>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</nav>
|
||||||
|
{{/if}}
|
||||||
|
<div class="levelup-navigation-actions {{#if (not this.showTabs)}}test{{/if}}">
|
||||||
|
{{#if this.navigate.previous.fromSummary}}
|
||||||
|
<button data-action="activatePart" data-part="advancements">{{localize "DAGGERHEART.Application.LevelUp.navigateToLevelup"}}</button>
|
||||||
|
{{else}}
|
||||||
|
{{#if (not this.navigate.previous.disabled)}}
|
||||||
|
<button data-action="updateCurrentLevel" >{{this.navigate.previous.label}}</button>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if this.navigate.next.show}}
|
{{#if this.navigate.next.show}}
|
||||||
{{#if this.navigate.next.toSummary}}
|
{{#if this.navigate.next.toSummary}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue