diff --git a/PokemonTabletopAdventures_v3/PTA3.css b/PokemonTabletopAdventures_v3/PTA3.css index d3f1a9e519..ba829777a1 100644 --- a/PokemonTabletopAdventures_v3/PTA3.css +++ b/PokemonTabletopAdventures_v3/PTA3.css @@ -4,7 +4,8 @@ .sheet-rolltemplate-ten-hit-move-roll, .sheet-rolltemplate-multi-hit-move-roll, .sheet-rolltemplate-triple-hit-move-roll, -.sheet-rolltemplate-feature-output { +.sheet-rolltemplate-feature-output, +.sheet-rolltemplate-inline-skill-roll { --poke-bug: #c6d16e; --poke-bug-background: #ffffb280; --poke-bug-shaded: #828d2a; @@ -98,6 +99,7 @@ --stat-ro-spd: #ff99ff80; } +.sheet-rolltemplate-inline-skill-roll, .sheet-rolltemplate-skill-roll { --atk-gradient: #bb5555; --atk-header: #ff9999; @@ -1222,27 +1224,151 @@ button[type="roll"].sheet-stat-roller:hover { /* Roll Templates */ +/* Inline Skill Roll */ + +.sheet-rolltemplate-inline-skill-roll { + --header-text: #000000; + --main-text: #000000; + --odd-row-bg: #d9d9d6; + --row-bg: #e9e9e9; +} + +.sheet-rolltemplate-darkmode.sheet-rolltemplate-inline-skill-roll { + --header-text: #dddddd; + --main-text: #dddddd; + --odd-row-bg: #303030; + --row-bg: #404040; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-labelled-table-wrapper { + display: grid; + grid-column-gap: 0px; + grid-template-columns: 5% 95%; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-labelled-table-wrapper span.sheet-border-label { + background: var(--header-bg); + border: 1px solid var(--border-color); + border-left: none; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; + border-collapse: separate; + color: var(--main-text); + font-size: 12px; + height: auto; + padding-right: 2px; + text-align: center; + text-transform: uppercase; + font-weight: bold; + transform: scale(-1, -1); + width: 100%; + writing-mode: vertical-lr; + -webkit-text-stroke: 0.5px var(--poke-all-dark-background); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-container table.sheet-inline-skill-template { + background: var(--row-bg); + border: 1px solid var(--border-color); + border-left: none; + border-bottom-right-radius: 4px; + border-top-right-radius: 4px; + border-collapse: separate; + box-sizing: border-box; + color: var(--main-text); + font-size: 12px; + height: 100%; + line-height: 2em; + overflow: clip; + padding-left: 2px; + width: 100%; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-container table.sheet-inline-skill-template td.sheet-label { + font-weight: bold; + padding-left: 4px; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-container table.sheet-inline-skill-template td.sheet-subhead { + border-bottom: 1px solid var(--odd-row-bg); + font-size: 12px; + font-style: italic; + padding-left: 4px; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-container table.sheet-inline-skill-template a { + color: var(--header-text); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-container table.sheet-inline-skill-template .sheet-skill-roll .inlinerollresult { + background: inherit; + border: none; + font-size: inherit; + padding: 0px; +} + +.sheet-rolltemplate-inline-skill-roll .sheet-rolltemplate-color-setting-atk-skill { + --border-color: var(--poke-all-dark-background); + --header-bg: var(--atk-gradient); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-rolltemplate-color-setting-def-skill { + --border-color: var(--poke-all-dark-background); + --header-bg: var(--def-gradient); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-rolltemplate-color-setting-spatk-skill { + --border-color: var(--poke-all-dark-background); + --header-bg: var(--spatk-gradient); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-rolltemplate-color-setting-spdef-skill { + --border-color: var(--poke-all-dark-background); + --header-bg: var(--spdef-gradient); +} + +.sheet-rolltemplate-inline-skill-roll .sheet-rolltemplate-color-setting-spd-skill { + --border-color: var(--poke-all-dark-background); + --header-bg: var(--spd-gradient); +} + + +.sheet-rolltemplate-inline-skill-roll.sheet-rolltemplate-darkmode .sheet-rolltemplate-color-setting-atk-skill { + --border-color: var(--atk-gradient); + --header-bg: var(--atk-header-dark); +} + +.sheet-rolltemplate-inline-skill-roll.sheet-rolltemplate-darkmode .sheet-rolltemplate-color-setting-def-skill { + --border-color: var(--def-gradient); + --header-bg: var(--def-header-dark); +} + +.sheet-rolltemplate-inline-skill-roll.sheet-rolltemplate-darkmode .sheet-rolltemplate-color-setting-spatk-skill { + --border-color: var(--spatk-gradient); + --header-bg: var(--spatk-header-dark); +} + +.sheet-rolltemplate-inline-skill-roll.sheet-rolltemplate-darkmode .sheet-rolltemplate-color-setting-spdef-skill { + --border-color: var(--spdef-gradient); + --header-bg: var(--spdef-header-dark); +} + +.sheet-rolltemplate-inline-skill-roll.sheet-rolltemplate-darkmode .sheet-rolltemplate-color-setting-spd-skill { + --border-color: var(--spd-gradient); + --header-bg: var(--spd-header-dark); +} + + +/* Other Templates */ + .sheet-rolltemplate-move-roll, .sheet-rolltemplate-dual-hit-move-roll, .sheet-rolltemplate-ten-hit-move-roll, .sheet-rolltemplate-multi-hit-move-roll, .sheet-rolltemplate-triple-hit-move-roll, -.sheet-rolltemplate-feature-output { - --header-text: black; -} - +.sheet-rolltemplate-feature-output, .sheet-rolltemplate-skill-roll { - --header-text: black; -} - -.sheet-rolltemplate-move-roll, -.sheet-rolltemplate-dual-hit-move-roll, -.sheet-rolltemplate-ten-hit-move-roll, -.sheet-rolltemplate-multi-hit-move-roll, -.sheet-rolltemplate-triple-hit-move-roll, -.sheet-rolltemplate-skill-roll, -.sheet-rolltemplate-feature-output { - --main-text: black; + --header-text: #000000; + --main-text: #000000; --odd-row-bg: #d9d9d6; --row-bg: #e9e9e9; text-transform: capitalize; @@ -1259,6 +1385,7 @@ button[type="roll"].sheet-stat-roller:hover { --main-text: #dddddd; --odd-row-bg: #303030; --row-bg: #404040; + text-transform: capitalize; } .sheet-rolltemplate-color-setting-bug-move { @@ -1521,8 +1648,12 @@ button[type="roll"].sheet-stat-roller:hover { .sheet-rolltemplate-triple-hit-move-roll .sheet-container table.sheet-move-template, .sheet-rolltemplate-skill-roll .sheet-container table.sheet-skill-template, .sheet-rolltemplate-feature-output .sheet-container table.sheet-feature-template { - border: 1px solid; - border-color: var(--border-color); + border: 1px solid var(--border-color); + border-radius: 4px; + border-collapse: separate; + border-spacing: 0px; + box-sizing: border-box; + overflow: clip; color: var(--main-text); font-size: 12px; line-height: 1em; @@ -1738,8 +1869,8 @@ button[type="roll"].sheet-stat-roller:hover { .sheet-rolltemplate-ten-hit-move-roll .sheet-container table.sheet-move-template td.sheet-subhead, .sheet-rolltemplate-multi-hit-move-roll .sheet-container table.sheet-move-template td.sheet-subhead, .sheet-rolltemplate-triple-hit-move-roll .sheet-container table.sheet-move-template td.sheet-subhead, -.sheet-rolltemplate-skill-roll .sheet-container table.sheet-skill-template td.sheet-subhead, -.sheet-rolltemplate-feature-output .sheet-container table.sheet-feature-template td.sheet-subhead { +.sheet-rolltemplate-feature-output .sheet-container table.sheet-feature-template td.sheet-subhead, +.sheet-rolltemplate-skill-roll .sheet-container table.sheet-skill-template td.sheet-subhead { padding: 4px; background: var(--box-bg); font-size: 12px; diff --git a/PokemonTabletopAdventures_v3/PTA3.html b/PokemonTabletopAdventures_v3/PTA3.html index 8cc504f7d9..4089faf75a 100644 --- a/PokemonTabletopAdventures_v3/PTA3.html +++ b/PokemonTabletopAdventures_v3/PTA3.html @@ -8,6 +8,9 @@ + + + @@ -359,7 +362,7 @@ Attack + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=atk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Attack Check}} {{skill-roll=[[ 1d20 + [[ @{ATKMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -369,7 +372,7 @@ Defense + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=def}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Defense Check}} {{skill-roll=[[ 1d20 + [[ @{DEFMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -379,7 +382,7 @@ Special Attack + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Special Attack Check}} {{skill-roll=[[ 1d20 + [[ @{SPATKMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -389,7 +392,7 @@ Special Defense + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Special Defense Check}} {{skill-roll=[[ 1d20 + [[ @{SPDEFMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -399,7 +402,7 @@ Speed + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Speed Check}} {{skill-roll=[[ 1d20 + [[ @{SPDMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -423,7 +426,7 @@ Attack + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=atk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Attack Check}} {{skill-roll=[[ 1d20 + [[ @{ATKMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -433,7 +436,7 @@ Defense + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=def}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Defense Check}} {{skill-roll=[[ 1d20 + [[ @{DEFMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -443,7 +446,7 @@ Special Attack + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Special Attack Check}} {{skill-roll=[[ 1d20 + [[ @{SPATKMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -453,7 +456,7 @@ Special Defense + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Special Defense Check}} {{skill-roll=[[ 1d20 + [[ @{SPDEFMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -463,7 +466,7 @@ Speed + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Generic Speed Check}} {{skill-roll=[[ 1d20 + [[ @{SPDMOD} + ?{Temp Modifier|0} ]] ]]}}"> @@ -705,7 +708,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Acrobatics}} {{skill-roll=[[ 1d20!kh2 + [[ @{acrobatics_total} + ?{Temporary Bonus|0} ]] ]]}}"> Acrobatics () @@ -714,7 +717,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=atk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Athletics}} {{skill-roll=[[ 1d20!kh2 + [[ @{athletics_total} + ?{Temporary Bonus|0} ]] ]]}}"> Athletics () @@ -723,7 +726,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Bluff/Deception}} {{skill-roll=[[ 1d20!kh2 + [[ @{bluff_total} + ?{Temporary Bonus|0} ]] ]]}}"> Bluff/Deception () @@ -732,7 +735,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=def}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Concentration}} {{skill-roll=[[ 1d20!kh2 + [[ @{concentration_total} + ?{Temporary Bonus|0} ]] ]]}}"> Concentration () @@ -741,7 +744,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=def}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Constitution}} {{skill-roll=[[ 1d20!kh2 + [[ @{constitution_total} + ?{Temporary Bonus|0} ]] ]]}}"> Constitution () @@ -750,7 +753,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Diplomacy/Persuasion}} {{skill-roll=[[ 1d20!kh2 + [[ @{diplomacy_total} + ?{Temporary Bonus|0} ]] ]]}}"> Diplomacy/Persuasion () @@ -759,7 +762,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Engineering/Operation}} {{skill-roll=[[ 1d20!kh2 + [[ @{engineering_total} + ?{Temporary Bonus|0} ]] ]]}}"> Engineering/Operation () @@ -768,7 +771,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=History}} {{skill-roll=[[ 1d20!kh2 + [[ @{history_total} + ?{Temporary Bonus|0} ]] ]]}}"> History () @@ -777,7 +780,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Insight}} {{skill-roll=[[ 1d20!kh2 + [[ @{insight_total} + ?{Temporary Bonus|0} ]] ]]}}"> Insight () @@ -788,7 +791,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Investigate}} {{skill-roll=[[ 1d20!kh2 + [[ @{investigate_total} + ?{Temporary Bonus|0} ]] ]]}}"> Investigate () @@ -797,7 +800,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Medicine}} {{skill-roll=[[ 1d20!kh2 + [[ @{medicine_total} + ?{Temporary Bonus|0} ]] ]]}}"> Medicine () @@ -806,7 +809,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spatk}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Nature}} {{skill-roll=[[ 1d20!kh2 + [[ @{nature_total} + ?{Temporary Bonus|0} ]] ]]}}"> Nature () @@ -815,7 +818,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Perception}} {{skill-roll=[[ 1d20!kh2 + [[ @{perception_total} + ?{Temporary Bonus|0} ]] ]]}}"> Perception () @@ -824,7 +827,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Perform}} {{skill-roll=[[ 1d20!kh2 + [[ @{perform_total} + ?{Temporary Bonus|0} ]] ]]}}"> Perform () @@ -833,7 +836,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spdef}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Pokemon Handling}} {{skill-roll=[[ 1d20!kh2 + [[ @{handling_total} + ?{Temporary Bonus|0} ]] ]]}}"> Pokémon Handling () @@ -841,7 +844,7 @@ - + Programming () @@ -850,7 +853,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Sleight of Hand}} {{skill-roll=[[ 1d20!kh2 + [[ @{sleightofhand_total} + ?{Temporary Bonus|0} ]] ]]}}"> Sleight of Hand () @@ -859,7 +862,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Stealth}} {{skill-roll=[[ 1d20!kh2 + [[ @{stealth_total} + ?{Temporary Bonus|0} ]] ]]}}"> Stealth () @@ -878,7 +881,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Capture Pokémon}} {{skill-roll=[[ 1d20 + @{capture_total} ]] Capture Roll: [[ d100 @{ball_capture_modifier} + @{capture_roll_bonus} ]] }}"> Capture Pokémon () @@ -933,7 +936,7 @@ + value="@{publicity_roll} &{template:@{skill_template}} {{base-attribute=spd}} {{character-id=@{character_id}}} {{character-name=@{character_name}}} {{skill-name=Capture Pokémon}} {{skill-roll=[[ 1d20 + @{capture_total} ]] Capture Roll: [[ d100 @{ball_capture_modifier} + @{capture_roll_bonus} ]] }}"> Capture Pokémon () + + + skill + + + + [performed by {{character-name}}](https://journal.roll20.net/character/{{character-id}}" name="name-link") + + + + {{skill-name}}: {{skill-roll}} + + + + + + + + @@ -3379,6 +3402,24 @@ }); }); + on(`clicked:toggle-skill-template`, function () { + getAttrs(["skill_template_label"], function (values) { + const template = values["skill_template_label"]; + var templateLabel = "Original Style"; + var skillTemplate = "skill-roll"; + + if (template == templateLabel) { + templateLabel = "Redesigned Style"; + skillTemplate = "inline-skill-roll"; + } + + setAttrs({ + skill_template_label: templateLabel, + skill_template: skillTemplate, + }); + }); + }); + on(`clicked:activate-tera`, function () { performFormChange("tera", "Terastallize", "End Terastallization", true); });