mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 13:41:07 +01:00
start resources tab
This commit is contained in:
parent
5b7272c2c7
commit
8b1850fc5c
5 changed files with 57 additions and 16 deletions
|
|
@ -1876,6 +1876,7 @@
|
||||||
"story": "Story",
|
"story": "Story",
|
||||||
"biography": "Biography",
|
"biography": "Biography",
|
||||||
"general": "General",
|
"general": "General",
|
||||||
|
"resources": "Resources",
|
||||||
"foundation": "Foundation",
|
"foundation": "Foundation",
|
||||||
"specialization": "Specialization",
|
"specialization": "Specialization",
|
||||||
"mastery": "Mastery",
|
"mastery": "Mastery",
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,14 @@ export default class Party extends DHBaseActorSheet {
|
||||||
header: { template: 'systems/daggerheart/templates/sheets/actors/party/header.hbs' },
|
header: { template: 'systems/daggerheart/templates/sheets/actors/party/header.hbs' },
|
||||||
tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' },
|
tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' },
|
||||||
partyMembers: { template: 'systems/daggerheart/templates/sheets/actors/party/party-members.hbs' },
|
partyMembers: { template: 'systems/daggerheart/templates/sheets/actors/party/party-members.hbs' },
|
||||||
|
resources: { template: 'systems/daggerheart/templates/sheets/actors/party/resources.hbs' },
|
||||||
notes: { template: 'systems/daggerheart/templates/sheets/actors/party/notes.hbs' }
|
notes: { template: 'systems/daggerheart/templates/sheets/actors/party/notes.hbs' }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @inheritdoc */
|
/** @inheritdoc */
|
||||||
static TABS = {
|
static TABS = {
|
||||||
primary: {
|
primary: {
|
||||||
tabs: [{ id: 'partyMembers' }, { id: 'notes' }],
|
tabs: [{ id: 'partyMembers' }, { id: 'resources' }, { id: 'notes' }],
|
||||||
initial: 'partyMembers',
|
initial: 'partyMembers',
|
||||||
labelPrefix: 'DAGGERHEART.GENERAL.Tabs'
|
labelPrefix: 'DAGGERHEART.GENERAL.Tabs'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,21 +6,6 @@
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.actions-section {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 10px;
|
|
||||||
gap: 20px;
|
|
||||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
|
||||||
|
|
||||||
button {
|
|
||||||
span {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.actors-list {
|
.actors-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,21 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actions-section {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
gap: 20px;
|
||||||
|
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||||
|
|
||||||
|
button {
|
||||||
|
span {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
38
templates/sheets/actors/party/resources.hbs
Normal file
38
templates/sheets/actors/party/resources.hbs
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
<section
|
||||||
|
class='tab {{tabs.resources.cssClass}} {{tabs.resources.id}}'
|
||||||
|
data-tab='{{tabs.resources.id}}'
|
||||||
|
data-group='{{tabs.resources.group}}'
|
||||||
|
>
|
||||||
|
<div class="actions-section">
|
||||||
|
<button>
|
||||||
|
<i class="fa-solid fa-bed"></i>
|
||||||
|
<span>{{localize "DAGGERHEART.APPLICATIONS.Downtime.longRest.title"}}</span>
|
||||||
|
</button>
|
||||||
|
<button>
|
||||||
|
<i class="fa-solid fa-utensils"></i>
|
||||||
|
<span>{{localize "DAGGERHEART.APPLICATIONS.Downtime.shortRest.title"}}</span>
|
||||||
|
</button>
|
||||||
|
<button>
|
||||||
|
<i class="fa-solid fa-campground"></i>
|
||||||
|
<span>New Section</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<fieldset class="resource-section glassy">
|
||||||
|
<legend>{{localize tabs.resources.label}}</legend>
|
||||||
|
<ul class="actors-list">
|
||||||
|
{{#each document.system.partyMembers as |actor id|}}
|
||||||
|
{{> 'daggerheart.inventory-item'
|
||||||
|
item=actor
|
||||||
|
type='character'
|
||||||
|
isActor=true
|
||||||
|
}}
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
{{#unless document.system.partyMembers.length}}
|
||||||
|
<div class="actors-dragger">
|
||||||
|
<span>{{localize "DAGGERHEART.GENERAL.dropActorsHere"}}</span>
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
|
</fieldset>
|
||||||
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue