diff --git a/Ryuutama/Ryuutama.css b/Ryuutama/Ryuutama.css index 22297ae81d..3da3e903fa 100644 --- a/Ryuutama/Ryuutama.css +++ b/Ryuutama/Ryuutama.css @@ -81,6 +81,10 @@ hr { font-family: "pictos"; } +.sheet-font-12 { + font-size: 12px; +} + /* Default Repeating section buttons (Add, Modify, Done) ============================= */ .repcontainer .itemcontrol { @@ -203,6 +207,8 @@ button.btn.repcontrol_edit:hover::after { color: var(--header-text-color); background-color: var(--header-bg-color); font-size: 1.05em; + border-radius: 4px; + padding: 1px 5px; } .sheet-partyOptions { @@ -256,6 +262,11 @@ button.btn.repcontrol_edit:hover::after { margin: 3px; } +.sheet-icon-small{ + width: 30px; + padding: 3px; +} + .sheet-condionBar { align-items: center; padding: 6px 0 0 0; @@ -496,7 +507,7 @@ input.sheet-overburdenPenalty { .sheet-notesToggle { position: relative; - right: 15px; + right: 21px; top: 10px; opacity: 0; z-index: 999; @@ -505,7 +516,8 @@ input.sheet-overburdenPenalty { .sheet-notesIcon { position: relative; color: var(--header-bg-color); - top: 10px; + top: 12px; + font-size: 1.5em; } .sheet-notesArea { @@ -559,8 +571,6 @@ input.sheet-overburdenPenalty { } .sheet-headerLabel { - border-radius: 4px; - padding: 1px 5px; width: 240px; height: 20px; } diff --git a/Ryuutama/Ryuutama.html b/Ryuutama/Ryuutama.html index ffac340179..486f5fcebd 100644 --- a/Ryuutama/Ryuutama.html +++ b/Ryuutama/Ryuutama.html @@ -14,6 +14,14 @@ } } + function htmlEncodeString(string){ + var codedLetters = []; + for (var i=string.length-1;i>=0;i--) { + codedLetters.unshift(['&#', string[i].charCodeAt(), ';'].join('')); + } + return codedLetters.join(''); + } + on("change:injury change:condition", function() { getAttrs(["condition", "injury"], function(values) { setAttrs({ @@ -466,6 +474,17 @@ }; }); }); + + on("sheet:opened", () => { + getAttrs(["character_name", "safeCharacterName"], v => { + encodedName = htmlEncodeString(v.character_name) + if (encodedName != v.safeCharacterName){ + setAttrs({ + safeCharacterName: encodedName + }); + }; + }); + });
@@ -500,6 +519,7 @@ +
@@ -779,7 +799,7 @@
- @@ -982,46 +1002,68 @@

-
-
- - - lowers DEX die size +
+
+ +
+ bandaids + + +
+ lowers DEX die size
-
- - - lowers STR die size +
+ +
+ skullcrossbones + + +
+ lowers STR die size
-
- - - lowers all dice sizes +
+ +
+ bed + + +
+ lowers all dice sizes
-
-
-
- - - lowers SPI die size +
+ +
+ exhaustion + + +
+ lowers SPI die size
-
- - - lowers INT die size +
+ +
+ questionmarks + + +
+ lowers INT die size
-
- - - lowers all dice sizes +
+ +
+ brokenheart + + +
+ lowers all dice sizes

- i + W
@@ -1062,7 +1104,7 @@
- i + W
diff --git a/Ryuutama/images/bandaids.png b/Ryuutama/images/bandaids.png new file mode 100644 index 0000000000..3fcdfc1f04 Binary files /dev/null and b/Ryuutama/images/bandaids.png differ diff --git a/Ryuutama/images/bedmeds.png b/Ryuutama/images/bedmeds.png new file mode 100644 index 0000000000..0320ec6847 Binary files /dev/null and b/Ryuutama/images/bedmeds.png differ diff --git a/Ryuutama/images/brokenheart.png b/Ryuutama/images/brokenheart.png new file mode 100644 index 0000000000..73f5ef2399 Binary files /dev/null and b/Ryuutama/images/brokenheart.png differ diff --git a/Ryuutama/images/moonstars.png b/Ryuutama/images/moonstars.png new file mode 100644 index 0000000000..2338173ce7 Binary files /dev/null and b/Ryuutama/images/moonstars.png differ diff --git a/Ryuutama/images/questionmarks.png b/Ryuutama/images/questionmarks.png new file mode 100644 index 0000000000..13631790d0 Binary files /dev/null and b/Ryuutama/images/questionmarks.png differ diff --git a/Ryuutama/images/skullcrossbones.png b/Ryuutama/images/skullcrossbones.png new file mode 100644 index 0000000000..13caa6dd54 Binary files /dev/null and b/Ryuutama/images/skullcrossbones.png differ