From 44f62fdc65a7a73cd9ff68bd61a72eeb9e18f6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=87ince?= Date: Wed, 15 Jan 2025 23:26:47 -0800 Subject: [PATCH 1/2] Pathfinder Community - Fixed the red border on the Conditions panel showing even when there were no active conditions. Also made the border thinner. - Further refined the view mode, recalc and sheet settings buttons at the top of the sheet. - copying the source files to the main repo --- Pathfinder Community/pathfinder_community.css | 106 +- .../pathfinder_community.html | 31 +- Pathfinder Community/source/.babelrc | 10 + Pathfinder Community/source/.gitattributes | 9 + Pathfinder Community/source/.gitignore | 6 + .../source/HtmlWorkerScriptPlugin.js | 37 + Pathfinder Community/source/README.md | 97 + Pathfinder Community/source/jsconfig.json | 8 + Pathfinder Community/source/src/ExExp.js | 996 + Pathfinder Community/source/src/HLImport.js | 2071 ++ Pathfinder Community/source/src/PFAbility.js | 1279 ++ .../source/src/PFAbilityScores.js | 402 + .../source/src/PFAttackGrid.js | 484 + .../source/src/PFAttackOptions.js | 202 + Pathfinder Community/source/src/PFAttacks.js | 1873 ++ Pathfinder Community/source/src/PFBuffs.js | 2282 ++ Pathfinder Community/source/src/PFBuffsOld.js | 630 + Pathfinder Community/source/src/PFChecks.js | 89 + .../source/src/PFClassRaceGrid.js | 346 + .../source/src/PFConditions.js | 209 + Pathfinder Community/source/src/PFConst.js | 175 + Pathfinder Community/source/src/PFCustom.js | 502 + Pathfinder Community/source/src/PFDB.js | 97 + Pathfinder Community/source/src/PFDefense.js | 723 + .../source/src/PFEncumbrance.js | 740 + Pathfinder Community/source/src/PFFeatures.js | 561 + Pathfinder Community/source/src/PFHealth.js | 424 + Pathfinder Community/source/src/PFHorror.js | 119 + .../source/src/PFInitiative.js | 62 + .../source/src/PFInventory.js | 1854 ++ Pathfinder Community/source/src/PFLog.js | 14 + Pathfinder Community/source/src/PFMacros.js | 372 + Pathfinder Community/source/src/PFMenus.js | 421 + Pathfinder Community/source/src/PFMigrate.js | 864 + Pathfinder Community/source/src/PFMythic.js | 129 + Pathfinder Community/source/src/PFNPC.js | 53 + .../source/src/PFNPCParser.js | 3709 ++++ Pathfinder Community/source/src/PFOccult.js | 211 + Pathfinder Community/source/src/PFPsionic.js | 89 + Pathfinder Community/source/src/PFSaves.js | 114 + Pathfinder Community/source/src/PFSheet.js | 853 + Pathfinder Community/source/src/PFSize.js | 407 + Pathfinder Community/source/src/PFSkills.js | 1130 + .../source/src/PFSpellCasterClasses.js | 728 + .../source/src/PFSpellOptions.js | 445 + Pathfinder Community/source/src/PFSpells.js | 2251 ++ Pathfinder Community/source/src/PFTemplate.js | 280 + Pathfinder Community/source/src/PFUtils.js | 801 + .../source/src/PFUtilsAsync.js | 103 + Pathfinder Community/source/src/README.md | 21 + .../src/Roll20PathfinderExporter_v1_1.hl | Bin 0 -> 1675 bytes Pathfinder Community/source/src/SWUtils.js | 902 + .../source/src/TheAaronSheet.cjs | 663 + .../source/src/TheAaronSheet.js | 673 + Pathfinder Community/source/src/index.html | 18245 ++++++++++++++++ Pathfinder Community/source/src/index.js | 29 + .../source/src/pathfinder.css | 7213 ++++++ Pathfinder Community/source/src/sheet.json | 223 + .../source/src/translation.json | 2189 ++ Pathfinder Community/source/stubs/on/index.js | 1 + Pathfinder Community/source/webpack.config.js | 66 + Pathfinder Community/translation.json | 1 + 62 files changed, 59552 insertions(+), 72 deletions(-) create mode 100644 Pathfinder Community/source/.babelrc create mode 100644 Pathfinder Community/source/.gitattributes create mode 100644 Pathfinder Community/source/.gitignore create mode 100644 Pathfinder Community/source/HtmlWorkerScriptPlugin.js create mode 100644 Pathfinder Community/source/README.md create mode 100644 Pathfinder Community/source/jsconfig.json create mode 100644 Pathfinder Community/source/src/ExExp.js create mode 100644 Pathfinder Community/source/src/HLImport.js create mode 100644 Pathfinder Community/source/src/PFAbility.js create mode 100644 Pathfinder Community/source/src/PFAbilityScores.js create mode 100644 Pathfinder Community/source/src/PFAttackGrid.js create mode 100644 Pathfinder Community/source/src/PFAttackOptions.js create mode 100644 Pathfinder Community/source/src/PFAttacks.js create mode 100644 Pathfinder Community/source/src/PFBuffs.js create mode 100644 Pathfinder Community/source/src/PFBuffsOld.js create mode 100644 Pathfinder Community/source/src/PFChecks.js create mode 100644 Pathfinder Community/source/src/PFClassRaceGrid.js create mode 100644 Pathfinder Community/source/src/PFConditions.js create mode 100644 Pathfinder Community/source/src/PFConst.js create mode 100644 Pathfinder Community/source/src/PFCustom.js create mode 100644 Pathfinder Community/source/src/PFDB.js create mode 100644 Pathfinder Community/source/src/PFDefense.js create mode 100644 Pathfinder Community/source/src/PFEncumbrance.js create mode 100644 Pathfinder Community/source/src/PFFeatures.js create mode 100644 Pathfinder Community/source/src/PFHealth.js create mode 100644 Pathfinder Community/source/src/PFHorror.js create mode 100644 Pathfinder Community/source/src/PFInitiative.js create mode 100644 Pathfinder Community/source/src/PFInventory.js create mode 100644 Pathfinder Community/source/src/PFLog.js create mode 100644 Pathfinder Community/source/src/PFMacros.js create mode 100644 Pathfinder Community/source/src/PFMenus.js create mode 100644 Pathfinder Community/source/src/PFMigrate.js create mode 100644 Pathfinder Community/source/src/PFMythic.js create mode 100644 Pathfinder Community/source/src/PFNPC.js create mode 100644 Pathfinder Community/source/src/PFNPCParser.js create mode 100644 Pathfinder Community/source/src/PFOccult.js create mode 100644 Pathfinder Community/source/src/PFPsionic.js create mode 100644 Pathfinder Community/source/src/PFSaves.js create mode 100644 Pathfinder Community/source/src/PFSheet.js create mode 100644 Pathfinder Community/source/src/PFSize.js create mode 100644 Pathfinder Community/source/src/PFSkills.js create mode 100644 Pathfinder Community/source/src/PFSpellCasterClasses.js create mode 100644 Pathfinder Community/source/src/PFSpellOptions.js create mode 100644 Pathfinder Community/source/src/PFSpells.js create mode 100644 Pathfinder Community/source/src/PFTemplate.js create mode 100644 Pathfinder Community/source/src/PFUtils.js create mode 100644 Pathfinder Community/source/src/PFUtilsAsync.js create mode 100644 Pathfinder Community/source/src/README.md create mode 100644 Pathfinder Community/source/src/Roll20PathfinderExporter_v1_1.hl create mode 100644 Pathfinder Community/source/src/SWUtils.js create mode 100644 Pathfinder Community/source/src/TheAaronSheet.cjs create mode 100644 Pathfinder Community/source/src/TheAaronSheet.js create mode 100644 Pathfinder Community/source/src/index.html create mode 100644 Pathfinder Community/source/src/index.js create mode 100644 Pathfinder Community/source/src/pathfinder.css create mode 100644 Pathfinder Community/source/src/sheet.json create mode 100644 Pathfinder Community/source/src/translation.json create mode 100644 Pathfinder Community/source/stubs/on/index.js create mode 100644 Pathfinder Community/source/webpack.config.js diff --git a/Pathfinder Community/pathfinder_community.css b/Pathfinder Community/pathfinder_community.css index 2a70cd1637f5..aac76b8939d0 100644 --- a/Pathfinder Community/pathfinder_community.css +++ b/Pathfinder Community/pathfinder_community.css @@ -1083,7 +1083,8 @@ pf-wrapper, .charsheet .monster-indicator label:has(.condition-exists.npc-show:checked):hover, .charsheet .monster-indicator label:has(.condition-exists.pc-only:not(:checked)):hover { - background-color: #4a648670; + /* background-color: #4a648670; */ + background-color: #fff; outline: 1px solid #4a6486; } @@ -1410,11 +1411,11 @@ also need 1 more level in selector or base css will override border */ background-color: #737373; margin-bottom: -11rem; margin-inline: auto; - outline: 4px solid #e20c0c; + outline: 3px solid #e20c0c; outline-offset: -1px; position: relative; - top: -2.65em; - width: 93%; + top: -3.5em; + width: 95%; z-index: 3; } @@ -1708,6 +1709,10 @@ also need 1 more level in selector or base css will override border */ border-radius: 0.4rem; } +.charsheet button[type="roll"].text-button.sect { + min-width: -webkit-fill-available; +} + .charsheet .skills .table-row .table-cell:first-child { font-size: 1.6rem; padding-left: 0; @@ -2674,8 +2679,7 @@ also need 1 more level in selector or base css will override border */ .charsheet .showarrow:hover + .showsect::before, .charsheet .counted:hover + span, .charsheet .counted:hover + span::before, -.charsheet .mode:hover, -.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"], +.charsheet input.readonly-show:hover + span::before, span[data-i18n-title="recalculate-cmd"]:has(.cssbutton:hover) ~ span[data-i18n-title="recalculate-cmd"], span[data-i18n-title="display-settings-config"]:has(.cssbutton:checked) ~ span[data-i18n-title="display-settings-config"], span[data-i18n-title="display-settings-config"]:has(.cssbutton:hover) ~ span[data-i18n-title="display-settings-config"] { @@ -2697,7 +2701,6 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked .charsheet .csstextbutton:hover, .charsheet .csstextbutton:hover + span, -.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"] .cssbutton + span::before, .charsheet .cssbutton:hover, .charsheet .cssbutton:hover + span::before, .charsheet .merge-buffs label:has(.cssbutton + .newbuff):hover { @@ -2844,54 +2847,36 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked } .charsheet .configbutton + span::before { - content: '⛭'; + content: 'y'; + font-family: 'Pictos'; } +.charsheet .cssbutton.readonly-show:checked:hover + span::before, +.charsheet input.readonly-show:hover + span::before, +.charsheet span:has(input.readonly-show:hover) ~ .mode span, .charsheet .configbutton:checked:hover + span::before { - background-color: white !important; color: #e20c0c; } -.charsheet .readonly-show + span::before { - background-color: white !important; - background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/edit_mode.png"); - content: ' '; - background-repeat: no-repeat !important; - vertical-align: top; - margin: auto; - background-position: center; - background-size: contain; - color: transparent; -} - -.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"] .readonly-show + span::before, -.charsheet .readonly-show:hover + span::before { - background-color: white !important; - background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/edit_mode_red.png"); - background-position: center; - background-size: contain; - color: transparent; +.charsheet .cssbutton.readonly-show + span::before { + background-color: white; + content: 'W'; + font-family: 'Pictos'; + color: initial; } -.charsheet .readonly-show:checked + span::before { - background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/compact_mode.png"); - background-color: #4a6486 !important; - background-position: center; - background-size: contain; - color: transparent; - display: grid; - margin: auto; - place-items: center; - position: relative; - border-color: transparent; +.charsheet .cssbutton.readonly-show:checked:hover + span::before, +.charsheet .cssbutton.readonly-show:hover + span::before { + background-color: white; + border: 1px solid #808080; } -.charsheet .readonly-show:checked:hover + span::before { - background-color: white !important; - background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/compact_mode_red.png"); - background-position: center; - background-size: contain; - color: transparent; +.charsheet .cssbutton.readonly-show:checked + span::before { + content: 'p'; + font-family: 'Pictos'; + background-color: #4a6486; + color: #fff; + border: transparent; } .charsheet .merge-buffs { @@ -3456,8 +3441,8 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked } /* outline when a condition is in effect */ -.charsheet .status-panel:first-child .options:has(input:checked) { - outline: 2px solid #e20c0c; +.charsheet .status-panel:first-child .options:has(.condition-exists:checked) { + outline: 1px solid #e20c0c; } .charsheet .status-panel .options div { @@ -4402,6 +4387,7 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked font-size: 1.6rem; margin: auto; margin-right: 1rem; + margin-top: 0; max-width: fit-content; } @@ -7178,13 +7164,25 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar font-size: .95em; } +.charsheet .pf-logo { + bottom: -2px; + float: right; + position: relative; +} + +.charsheet .pf-logo img { + margin-top: -7px; + max-height: 70px; + width: 175px; +} + .charsheet .mode-and-settings { display: grid; - grid-template-columns: 1fr 1fr 1fr; - position: relative; - width: 8.5em; + grid-template-columns: 1fr minmax(3.5em, 1fr) 1fr; margin: auto; margin-right: 0; + position: relative; + width: 7.75em; } .charsheet .mode-and-settings span { @@ -7195,10 +7193,6 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar } /*styles sheet mode note*/ -.charsheet .mode { - grid-column: 1/-1; - padding-bottom: 1px; -} .charsheet .mode input.readonly-show { height: 4em; @@ -7210,11 +7204,11 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar } /*hides edit-mode note*/ -.charsheet .readonly-show:not(:checked) + span.mode { +.charsheet span:has(.readonly-show:not(:checked)) ~ .mode .edit-mode { display: none; } /*hides compact-mode note*/ -.charsheet .readonly-show:checked + span.mode + span.mode { +.charsheet span:has(.readonly-show:checked) ~ .mode .compact-mode { display: none; } \ No newline at end of file diff --git a/Pathfinder Community/pathfinder_community.html b/Pathfinder Community/pathfinder_community.html index 4c8a10a4a486..cc2dd50b98a5 100644 --- a/Pathfinder Community/pathfinder_community.html +++ b/Pathfinder Community/pathfinder_community.html @@ -26,6 +26,8 @@

New Features and Updates

    +
  1. Further refined the view mode, recalc and sheet settings buttons at the top of the sheet.
  2. +
  3. Fixed the red border on the Conditions panel showing even when there were no active conditions. Also made the border thinner.
  4. Fixed Monster Statblock parser button. The hot spot(hidden input) was no longer located under the button.
  5. Fixed a bug where adding a new spell would not show the spells #prep field. Found a typo in the PFSpells.js module that caused the caster type toggle from triggering the css to hide/show the #prep field for preppared casters. (thank you Polloneitor)
  6. Moved the PF logo, sheet type label(ie PC || NPC/Monster), recalc, mode, and settings buttons to the upper right of the sheet.
  7. @@ -82,11 +84,6 @@

    - - - Edit - Compact - @@ -100,9 +97,10 @@

    Recalc - Mode - Settings - Sheet + + Edit + Compact + Screenreader users should check expand all to ensure all content is visible to the reader. It is the second checkbox on this page. @@ -120,8 +118,8 @@

    -
    - Pathfinder RPG Logo © Paizo +
    @@ -320,7 +318,10 @@