Finish implementing the Add Spell button
This commit is contained in:
parent
1f26bbae1b
commit
e5bd1e8338
5 changed files with 32 additions and 5 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
export class PlayerActor {
|
export class PlayerActor {
|
||||||
static createCustomSpell() {};
|
static createCustomSpell() {
|
||||||
|
this.createEmbeddedDocuments(
|
||||||
|
"Item",
|
||||||
|
[{ type: `spell`, name: `New Spell` }]
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
static async updateEmbeddedDocument($event) {
|
static async updateEmbeddedDocument($event) {
|
||||||
let data = $event.target.dataset;
|
let data = $event.target.dataset;
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,22 @@ $title-font: 'Pixelify Sans', sans-serif;
|
||||||
$body-font: sans-serif;
|
$body-font: sans-serif;
|
||||||
$input-font: $body-font;
|
$input-font: $body-font;
|
||||||
$background: #f2f2f2;
|
$background: #f2f2f2;
|
||||||
|
/*
|
||||||
|
Greens:
|
||||||
|
Dark Cyan: #32908F, #048A81
|
||||||
|
Verdigris: #48A9A6
|
||||||
|
Cambridge Blue: #72BDA3
|
||||||
|
Carribean Current: #28666E
|
||||||
|
|
||||||
|
Reds:
|
||||||
|
Indian Red: #C1666B
|
||||||
|
Persian Red: #C3423F
|
||||||
|
Wine: #7C3238
|
||||||
|
Penn Red: #960200
|
||||||
|
*/
|
||||||
|
|
||||||
$colour-confirm: #00aa00;
|
$colour-confirm: #048A81;
|
||||||
$text-on-confirm: black;
|
$text-on-confirm: white;
|
||||||
|
|
||||||
$colour-neutral: #007ACC;
|
$colour-neutral: #007ACC;
|
||||||
$text-on-neutral: white;
|
$text-on-neutral: white;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
transition: 400ms;
|
transition: 400ms;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
|
||||||
&.confirm {
|
&.confirm {
|
||||||
background: $colour-confirm;
|
background: $colour-confirm;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,9 @@ $iconSizes: 12, 14, 16, 18, 20, 22, 24;
|
||||||
|
|
||||||
.dotdungeon.dotdungeon.dotdungeon.dotdungeon {
|
.dotdungeon.dotdungeon.dotdungeon.dotdungeon {
|
||||||
.icon {
|
.icon {
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
// The various icon sizes
|
// The various icon sizes
|
||||||
@each $size in $iconSizes {
|
@each $size in $iconSizes {
|
||||||
|
|
|
||||||
|
|
@ -65,11 +65,14 @@
|
||||||
|
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
<button
|
<button
|
||||||
class="confirm add-spell equal-padding"
|
class="confirm add-spell"
|
||||||
>
|
>
|
||||||
<div class="icon icon--20">
|
<div aria-hidden="true" class="icon icon--20">
|
||||||
{{{ icons.create }}}
|
{{{ icons.create }}}
|
||||||
</div>
|
</div>
|
||||||
|
<span>
|
||||||
|
Add Spell
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{{/ dotdungeon.panel}}
|
{{/ dotdungeon.panel}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue