diff --git a/PokemonTabletopAdventures_v3/PTA3.css b/PokemonTabletopAdventures_v3/PTA3.css index 9ebb78fbe5..f1be0b5a8e 100644 --- a/PokemonTabletopAdventures_v3/PTA3.css +++ b/PokemonTabletopAdventures_v3/PTA3.css @@ -596,6 +596,10 @@ div.sheet-wrapper { position: relative; } +div.sheet-no-background { + background-color: #00000000; +} + div.sheet-pokemon-move, div.sheet-class-feature { background-image: var(--background-image); @@ -659,11 +663,10 @@ div.sheet-skill-selection .sheet-no-dropdown { } .sheet-logo { - width: 280px; - height: 150px; - margin-left: auto; - margin-right: auto; - margin-top: -15px; + min-height: 150px; + background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/PokemonTabletopAdventures_v3/images/PTA3SmallLogo.png"); + background-position: center top; + background-repeat: no-repeat; } .sheet-form-buttons { @@ -1926,6 +1929,11 @@ button[type="roll"].sheet-stat-roller:hover { visibility: visible; } +.sheet-extra-max-height .sheet-options-flag:not(:checked) ~ div.sheet-display, +.sheet-extra-max-height .sheet-options-flag:checked ~ div.sheet-options { + max-height: 1800px; +} + .sheet-options-flag:checked ~ div.sheet-display, .sheet-options-flag:not(:checked) ~ div.sheet-options { max-height: 0px; @@ -1998,6 +2006,13 @@ h3.sheet-section-header { padding-left: 40px; } +b.sheet-subsection-header { + display: block; + line-height: 24px; + margin-bottom: 8px; + padding-left: 32px; +} + .sheet-options-flag { height: 18px; opacity: 0; @@ -2216,6 +2231,15 @@ input.sheet-capitalize { grid-template-columns: 1fr 5fr 1fr 1fr; } + .sheet-feature-container > .sheet-options-flag, + .sheet-feature-container > .sheet-options-flag + span, + .sheet-feature-container > .sheet-options-flag:checked, + .sheet-feature-container > .sheet-options-flag:checked + span { + left: 8px; + top: 22px; + } + + .sheet-rolltemplate-move-roll .sheet-container table.sheet-move-template, .sheet-rolltemplate-dual-hit-move-roll .sheet-container table.sheet-move-template, .sheet-rolltemplate-ten-hit-move-roll .sheet-container table.sheet-move-template, diff --git a/PokemonTabletopAdventures_v3/PTA3.html b/PokemonTabletopAdventures_v3/PTA3.html index 607c76131b..5df962054d 100644 --- a/PokemonTabletopAdventures_v3/PTA3.html +++ b/PokemonTabletopAdventures_v3/PTA3.html @@ -2,6 +2,9 @@
+ + +
@@ -16,14 +19,14 @@ +
- + + + -
@@ -56,298 +59,333 @@
-
-
-
- Name - - - Honors - - Origin - - Honors - - Credits - - -


-
+ -
- Class - - Level - - Class - - Level - - Class - - Level - - Class - - Level - +
+
+ + - +
+

the (Level )

+
+
+

the (Level )

+
+
+ Name + + + Honors + + Origin + + Honors + + Credits + + +


+
+ +
+ Class + + Level + + Class + + Level + + Class + + Level + + Class + + Level + +
+
-
-
- Name - - Species - - -
- Type -
-
- Type Shift -
-
- - - - -
-
- - - - - - -
- Nature - - - Held Item - - -


+
+ + - +
+

the

+
+ +

the

+
+
+ Name + + Species + + +
+ Type +
+
+ Type Shift +
+
+ + + + +
+
+ + + + + + +
+ Nature + + + Held Item + + +


+
-
- - Size -
- +
+ + Size +
+ +
+
+ +
+ Weight +
+ +
+
+ +
+ Sex + + Diet + + + Held Item + + Egg Group + +
-
- -
- Weight -
- -
-
- -
- Sex - - Diet - - - Held Item - - Egg Group -
-
-
- Name - - Species - - Nature - - Origin - - Level / Honors - - - - - Advanced Class - - Credits - +
+ + - +
+

the (Level )

+
+ +

the (Level )

+
+
+ Name + + Species + + Nature + + Origin + + Level / Honors + + + + + Advanced Class + + Credits + +
-
- Type - - - - - Size / Weight - - - - - Sex - - Egg Group - - Diet - - Held Item - +
+ Type + + + + + Size / Weight + + + + + Sex + + Egg Group + + Diet + + Held Item + +
+
-
+ +
-
+
-
@@ -478,8 +516,10 @@
+ +
-
+
-
@@ -567,8 +607,10 @@
+ +
-
+
-
@@ -689,6 +731,8 @@
+ +

@@ -872,6 +916,8 @@
+ +

@@ -992,77 +1038,92 @@
-

Origin Feature

- -
- - - + + + +
+ + -
-
- - - - - - Feature Usage - - - - -
+

Origin Feature

-
- - - - - - - Feature Usage - - - - +

Origin Feature

+ +
+ + - +
+
+ + + + + + Feature Usage + + + + +
+
+
+
+ + + + + + + Feature Usage + + + + +
+
+ + Select a Feature Color: + + + +
+ +
-
- - Select a Feature Color: - - - -
-

+ + +
- @@ -1147,282 +1208,353 @@
+ +
- Skills - - - Stat Passives - - - Other Passives - -
- - Modifiers for All Moves -
- - - Accuracy Modifier - - - - - Critical Threshold - - - - - Attack Damage Bonus - - - - - Special Attack Damage Bonus - - - - -
- -

Moves

-
- - -
- - - +
+ + -
-
- - - - - - - - - +

Passives

+
+
+

Passives

+ Skills + + Stat Passives + + Other Passives + +
+
+
+
+ + +
+ + - +
+

Moves

+
+
+

Moves

+ Modifiers for All Moves +
+ - Move Usage - - - + Accuracy Modifier + + + + Critical Threshold + + + + + Attack Damage Bonus + + + + + Special Attack Damage Bonus + + + + +
+
+ + +
+ + - +
+
+ + + + + + + + + + + + Move Usage + + + + +
+
+ + Accuracy Roll: + + + + + + Damage Roll: + + + + +
+
+ +
+
+ + + + + + + + + Move Usage + + + + +
+ +
+ + + + + + + Damage + + + +
+ +
+ + Accuracy Modifier + + + + + Extra Damage + + + + + Scatter + + + + + + + + + + Effect Threshold + + + + + + + + + + + + Effect Threshold + + + + + + + +
+ +
+ + Accuracy Roll: + + + + + + Damage Roll: + + + + +
+ +
+ + +
+
-
- - Accuracy Roll: - - - +
+
+
+
- - Damage Roll: - - - + +
+ + - +
+

Notes

+
+
+ +

Notes

+
+
+ + . +
+ Inventory +
+
+ Inventory + +
+
+ +
+ + . +
+ Honors +
+
+ Honors + +
-
-
- - - - - - - - - Move Usage - - - - +
+
+ + . +
+ Owned Pokémon +
+
+ Owned Pokémon + +
+
-
- - - - - - - Damage - - - +
+ + . +
+ General Notes
- -
- - Accuracy Modifier - - - - - Extra Damage - - - - - Scatter - - - - - - - - - - Effect Threshold - - - - - - - - - - - - Effect Threshold - - - - - - - -
- -
- - Accuracy Roll: - - - - - - Damage Roll: - - - - -
- -
- - +
+ General Notes +
-
- -
- Inventory - - - Honors -
- -
- Owned Pokémon - -
- - Notes - +
@@ -4369,6 +4501,10 @@ setAttrs({ repeating_moves_flag: flag }); }); + on("change:info_header_options_flag", function(eventInfo) { + updateFlagAttr("info_header_flag", eventInfo.newValue); + }); + on("change:avatar_options_flag", function(eventInfo) { updateFlagAttr("avatar_flag", eventInfo.newValue); }); @@ -4377,10 +4513,42 @@ updateFlagAttr("origin_flag", eventInfo.newValue); }); + on("change:origin_feature_options_flag", function (eventInfo) { + updateFlagAttr("origin_feature_flag", eventInfo.newValue); + }); + on("change:class_features_options_flag", function (eventInfo) { updateFlagAttr("class_features_flag", eventInfo.newValue); }); + on("change:moves_options_flag", function (eventInfo) { + updateFlagAttr("moves_flag", eventInfo.newValue); + }); + + on("change:notes_options_flag", function (eventInfo) { + updateFlagAttr("notes_flag", eventInfo.newValue); + }); + + on("change:notes_inventory_options_flag", function (eventInfo) { + updateSubsectionFlagAttr("notes_inventory_flag", eventInfo.newValue); + }); + + on("change:notes_honors_options_flag", function (eventInfo) { + updateSubsectionFlagAttr("notes_honors_flag", eventInfo.newValue); + }); + + on("change:notes_owned_options_flag", function (eventInfo) { + updateSubsectionFlagAttr("notes_owned_flag", eventInfo.newValue); + }); + + on("change:notes_notes_options_flag", function (eventInfo) { + updateSubsectionFlagAttr("notes_notes_flag", eventInfo.newValue); + }); + + on("change:passives_options_flag", function (eventInfo) { + updateFlagAttr("passives_flag", eventInfo.newValue); + }); + on("change:options_stat_flag", function (eventInfo) { updateFlagAttr("stat_flag", eventInfo.newValue); }); @@ -4394,6 +4562,11 @@ setAttrs({ [targetAttr]: attrValue }); } + function updateSubsectionFlagAttr(targetAttr, flagValue) { + const attrValue = "."; + setAttrs({ [targetAttr]: attrValue }); + } + // Changing Skill Ability Modifiers let skills = ["acrobatics", "athletics", "bluff", "concentration", "constitution", "diplomacy", "engineering", "history", "insight"]; skills.push("investigate", "medicine", "nature", "perception", "perform", "handling", "programming", "sleight", "stealth"); @@ -4657,7 +4830,3 @@ } - - - -