From 9e7ef02f6254b64371e4b88411a632a94c9f8621 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 5 Oct 2025 16:27:06 -0600 Subject: [PATCH 1/5] Add a plus icon --- assets/_credit.txt | 3 +++ assets/icons/plus.svg | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 assets/icons/plus.svg diff --git a/assets/_credit.txt b/assets/_credit.txt index bac6dc2..523f49c 100644 --- a/assets/_credit.txt +++ b/assets/_credit.txt @@ -13,6 +13,9 @@ ARISO: Abdulloh Fauzan: - icons/info-circle.svg (https://thenounproject.com/icon/information-4176576/) : Rights Purchased +hanifmuhammad: + - icons/plus.svg (https://thenounproject.com/icon/plus-7363257/) : Rights Purchased + QOLBIN SALIIM: - icons/arrow-left.svg (https://thenounproject.com/icon/arrow-1933583/) : Rights Purchased - icons/arrow-right.svg (https://thenounproject.com/icon/arrow-1933581/) : Rights Purchased diff --git a/assets/icons/plus.svg b/assets/icons/plus.svg new file mode 100644 index 0000000..0d975df --- /dev/null +++ b/assets/icons/plus.svg @@ -0,0 +1,4 @@ + + + + From a2b6fd8dfcc71336507e79de896f9571acca58a3 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 5 Oct 2025 16:27:50 -0600 Subject: [PATCH 2/5] Pass in the showEquipPrompt flag since we don't want it when making items directly from the sheet --- module/Apps/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Apps/utils.mjs b/module/Apps/utils.mjs index 7c55ec4..d0c12e5 100644 --- a/module/Apps/utils.mjs +++ b/module/Apps/utils.mjs @@ -11,7 +11,7 @@ export async function createItemFromElement(target, { parent } = {}) { const type = data.defaultItemType; await Item.createDialog( { type }, - { parent }, + { parent, showEquipPrompt: false }, { types, folders: [], From 9b239831b8e6872e2fb9ca07bc98096f3bd599fa Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 5 Oct 2025 16:28:12 -0600 Subject: [PATCH 3/5] Add a grow helper class for better flexbox positioning --- templates/css/elements/generic.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/css/elements/generic.css b/templates/css/elements/generic.css index 0bacb35..4b3115e 100644 --- a/templates/css/elements/generic.css +++ b/templates/css/elements/generic.css @@ -4,4 +4,6 @@ .left-pill { border-radius: 999px 0 0 999px; } .right-pill { border-radius: 0 999px 999px 0; } .full-pill { border-radius: 999px; } + + .grow { flex-grow: 1; } } From 495e669ba68a65f6298c90488bdfe99fcea27960 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 5 Oct 2025 16:28:40 -0600 Subject: [PATCH 4/5] Add the buttons for creating new embedded items from the sheet --- langs/en-ca.json | 1 + templates/Apps/SkillsCardV1/content.hbs | 67 +++++++++++++++++++++++++ templates/Apps/SkillsCardV1/style.css | 2 +- templates/Apps/StatsCardV1/content.hbs | 18 ++++++- templates/Apps/StatsCardV1/style.css | 4 ++ 5 files changed, 90 insertions(+), 2 deletions(-) diff --git a/langs/en-ca.json b/langs/en-ca.json index cad8c6a..24b1475 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -206,6 +206,7 @@ "shield-bonus": "Shield Bonus: {value}", "set-fate-to": "Set Fate to {ordinal}", "current-tour": "Current Delve Tour", + "create-new-item": "Create new item", "next-tour": "Next Delve Tour", "prev-tour": "Previous Delve Tour", "auras": { diff --git a/templates/Apps/SkillsCardV1/content.hbs b/templates/Apps/SkillsCardV1/content.hbs index 2f170d2..231e388 100644 --- a/templates/Apps/SkillsCardV1/content.hbs +++ b/templates/Apps/SkillsCardV1/content.hbs @@ -1,6 +1,19 @@
{{ rc-i18n "RipCrypt.Apps.grit-skills" }} +
    {{#each skills.grit as | skill |}} @@ -23,6 +36,19 @@
    {{ rc-i18n "RipCrypt.Apps.gait-skills" }} +
      {{#each skills.gait as | skill |}} @@ -45,6 +71,19 @@
      {{ rc-i18n "RipCrypt.Apps.grip-skills" }} +
        {{#each skills.grip as | skill |}} @@ -67,6 +106,19 @@
        {{ rc-i18n "RipCrypt.Apps.glim-skills" }} +
          {{#each skills.glim as | skill |}} @@ -89,6 +141,21 @@
          {{ rc-i18n "RipCrypt.common.gear" }} + +
          {{ rc-i18n "RipCrypt.common.slot" }}
            diff --git a/templates/Apps/SkillsCardV1/style.css b/templates/Apps/SkillsCardV1/style.css index a25718b..c1815ce 100644 --- a/templates/Apps/SkillsCardV1/style.css +++ b/templates/Apps/SkillsCardV1/style.css @@ -34,7 +34,7 @@ .list-header { display: flex; - justify-content: space-between; + gap: 4px; align-items: center; border-radius: 999px; } diff --git a/templates/Apps/StatsCardV1/content.hbs b/templates/Apps/StatsCardV1/content.hbs index 99e3c74..9c87e00 100644 --- a/templates/Apps/StatsCardV1/content.hbs +++ b/templates/Apps/StatsCardV1/content.hbs @@ -205,7 +205,23 @@ - + diff --git a/templates/Apps/StatsCardV1/style.css b/templates/Apps/StatsCardV1/style.css index e33246e..598d138 100644 --- a/templates/Apps/StatsCardV1/style.css +++ b/templates/Apps/StatsCardV1/style.css @@ -12,6 +12,10 @@ color: var(--base-text); .col-header { + display: flex; + flex-direction: row; + gap: 4px; + align-items: center; background: var(--section-header-background); color: var(--section-header-text); } From 797f473c59d1e5801b545b996b8f20848e5b33fe Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 5 Oct 2025 16:30:04 -0600 Subject: [PATCH 5/5] Remove extraneous SVG stuff --- assets/icons/plus.svg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/icons/plus.svg b/assets/icons/plus.svg index 0d975df..5e8c131 100644 --- a/assets/icons/plus.svg +++ b/assets/icons/plus.svg @@ -1,4 +1,3 @@ - - - + +
            {{ rc-i18n "RipCrypt.common.weapon.singular" }} + {{ rc-i18n "RipCrypt.common.weapon.singular" }} + + {{ rc-i18n "RipCrypt.Apps.traits-range" }} {{ rc-i18n "RipCrypt.common.wear" }} {{ rc-i18n "RipCrypt.common.damage" }}