A Song of Ice and Fire: Bug fixes

Fixes and changes were made to the A Song of Ice and Fire sheet in response to a forum post,  https://app.roll20.net/forum/post/12223469/asoiaf-character-sheet-minor-fixes 2Feb2025. Changes were made to 1) increase description field sizes, 2) sap two variables to match description and 3) fix army buttons and expand to ‘Add’ armies. This last change blew up the code as it’s legacy and the 50 some odd autocalc fields stopped working. So, more extensive changes were made to convert autocalc to sheet workers.
	An attempt was made to reach out to Alex-O (3241579), in both English and French, to confirm the validity and integrity of the changes,  25Feb2025. No response has been received.
This commit is contained in:
William Barker
2025-04-06 14:46:15 -04:00
parent bd07973a01
commit bee1d640b1
3 changed files with 1028 additions and 119 deletions
+47 -1
View File
@@ -468,6 +468,9 @@ width: calc(20% - 0.5%);
.charsheet .sheet-wrapper textarea.sheet-small {
height: 32px;
}
.charsheet .sheet-wrapper textarea.sheet-tiny {
height: 16px;
}
.charsheet .sheet-wrapper .sheet-item.sheet-med {
width: calc(30% - 0.5%);
}
@@ -591,6 +594,7 @@ float:right;
text-align: center;
}
input.sheet-arrow2,
input.sheet-arrow
{
float: left;
@@ -605,6 +609,7 @@ input.sheet-arrow
z-index: 999;
}
input.sheet-arrow2 + span::before,
input.sheet-arrow + span::before {
margin-right: 0px;
line-height: 14px;
@@ -618,11 +623,13 @@ input.sheet-arrow + span::before {
font-weight: bold;
}
input.sheet-arrow2:checked ~ div.sheet-hbody2,
input.sheet-arrow:checked ~ div.sheet-hbody
{
display: none;
}
input.sheet-arrow2:checked + span::before,
input.sheet-arrow:checked + span::before {
content: "▸";
}
@@ -660,6 +667,7 @@ input:focus, textarea:focus
margin-bottom:0px;
padding-bottom:0px;
}
.charsheet .sheet-wrapper .sheet-unnatural[type="text"],
.charsheet .sheet-wrapper .sheet-unnatural[type="number"] {
font-size: 1em;
height:1.8em;
@@ -813,4 +821,42 @@ input.sheet-Custom[type="checkbox"] + span::before
color:654018;
font-size:16px;
font-family: Berylium-Regular;
}
}
/* Foreign Code */
.charsheet input.sheet-toggle-hide:checked ~ div.sheet-army-body {
display: none;
}
/* Web code */
input[type="radio"]:checked+label{ background-color: khaki; }
/* From https://stackoverflow.com/questions/75992689/change-the-label-background-color-when-a-checkbox-is-checked */
input[type="checkbox"].sheet-emphasis {
display: none;
height: 20px;
text-align: left;
font-size: 1.0em !important;
margin: 0px 0px -4px 0px;
opacity: 0;
}
input[type="checkbox"].sheet-emphasis:checked + label {
color: DarkRed;
height: 20px;
text-align: left;
font-size: 1.1em !important;
margin: 0px 0px -4px 0px;
}
label.sheet-emphasis {
display: inline-block;
vertical-align: top;
border: 0px solid pink;
text-align: left;
height: 20px;
font-size: 1.0em !important;
margin: 0px 0px -4px 0px;
}
/* End Web code */
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -4,6 +4,6 @@
"authors": "Alex Ott",
"roll20userid": "3241579",
"preview": "SIFRPNew.png",
"instructions": "#A Song of Ice and Fire Roleplaying: Game of Thrones Edition\rAuto-calculated stats, fancy hideable sections, and more",
"instructions": "#A Song of Ice and Fire Roleplaying: Game of Thrones Edition\rAuto-calculated stats, fancy hideable sections, and more.\rTweaks by Vialmada 6055058 regarding armies and autocalc",
"legacy": true
}