Skip to content

Commit

Permalink
feat(actor sheets): add functionality to add items directly from the …
Browse files Browse the repository at this point in the history
…sheet (#98)

* feat(character sheet): add functionality to add actions directly from the sheet

* feat(character sheet): add functionality to add weapons, armor, equipment and loot from sheet
  • Loading branch information
stanavdb authored Oct 22, 2024
1 parent 8e49597 commit 63ae1d3
Show file tree
Hide file tree
Showing 9 changed files with 525 additions and 283 deletions.
27 changes: 19 additions & 8 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@
"Consume": "Cost",
"Uses": "Uses",
"Use": "Use action",
"Strike": "Strike"
"Strike": "Strike",
"BaseSectionName": "{type} Actions",
"MiscSectionName": "Miscellaneous Actions",
"NewItem": "Add Action"
},
"Equipment": {
"Quantity": "Quantity",
Expand Down Expand Up @@ -269,22 +272,26 @@
"Weapon": {
"label": "Weapon",
"label_plural": "Weapons",
"desc_placeholder": "Edit this to describe what this weapon is & how it looks."
"desc_placeholder": "Edit this to describe what this weapon is & how it looks.",
"New": "New Weapon"
},
"Armor": {
"label": "Armor",
"label_plural": "Armor",
"desc_placeholder": "Edit this to describe what this armor is & how it looks."
"desc_placeholder": "Edit this to describe what this armor is & how it looks.",
"New": "New Armor"
},
"Equipment": {
"label": "Equipment",
"label_plural": "Equipment",
"desc_placeholder": "Edit this to describe what this piece of equipment is & how it looks."
"desc_placeholder": "Edit this to describe what this piece of equipment is & how it looks.",
"New": "New Equipment"
},
"Loot": {
"label": "Loot",
"label_plural": "Loot",
"desc_placeholder": "Edit this to describe the item."
"desc_placeholder": "Edit this to describe the item.",
"New": "New Loot"
},
"Ancestry": {
"label": "Ancestry",
Expand All @@ -309,17 +316,20 @@
"Talent": {
"label": "Talent",
"label_plural": "Talents",
"desc_placeholder": "Edit this to describe what this Talent does."
"desc_placeholder": "Edit this to describe what this Talent does.",
"New": "New Talent"
},
"Action": {
"label": "Action",
"label_plural": "Actions",
"desc_placeholder": "Edit this to describe what this action is and does."
"desc_placeholder": "Edit this to describe what this action is and does.",
"New": "New Action"
},
"Trait": {
"label": "Trait",
"label_plural": "Traits",
"desc_placeholder": "Edit this to describe this trait."
"desc_placeholder": "Edit this to describe this trait.",
"New": "New Trait"
},
"Injury": {
"label": "Injury",
Expand Down Expand Up @@ -854,6 +864,7 @@
"Clear": "Clear",
"Name": "Name",
"Level": "Level",
"Add": "Add",
"Button": {
"Roll": "Roll",
"Continue": "Continue",
Expand Down
6 changes: 4 additions & 2 deletions src/style/sheets/actor/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,6 @@
}

.controls {
// width: 3rem;
color: rgba(231, 209, 177, 0.3);
height: 100%;

> * {
Expand All @@ -758,6 +756,10 @@
}
}

&:not(.header) .controls {
color: rgba(231, 209, 177, 0.3);
}

&:not(.expanded) {
.controls
> a[data-action='toggle-action-details']
Expand Down
Loading

0 comments on commit 63ae1d3

Please sign in to comment.