Torg Eternity Sheet Update Announcement (#5949)

In preparation for a major sheet update, this commit adds an announcement at the top of character sheets letting players know about it, and how to preview the changes.

No functional changes to the sheet are made in this commit.
This commit is contained in:
G-G-G
2020-03-16 10:06:03 -05:00
committed by GitHub
parent c7345a5761
commit 30c80bb210
2 changed files with 59 additions and 1 deletions
+32 -1
View File
@@ -736,4 +736,35 @@ div.sheet-tab-content
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
border-left: 180px solid rgb(126, 45, 64);
}
}
div.sheet-announcements {
display: none;
color: white;
background-color: grey;
border: 1pt solid black;
text-align: center;
}
input.sheet-announcements[value="1"] ~ div.sheet-announcements {
display: block;
/* margin-left: 10px; */
}
div.sheet-announcements h3.sheet-title {
border-bottom: 1pt solid black;
color: white;
}
input[type="text"].sheet-linkclass {
text-align:center;
border: 1pt solid black;
width: 500px;
}
button[type=action].sheet-announcements {
width: 95%;
margin-left: 5px;
}
div.sheet-announcements .sheet-important {
color: red;
font-size: 1.2em;
}
+27
View File
@@ -2,6 +2,22 @@
<span>Eternity</span>
<!-- Character Record Sheet -->
</div>
<input class="announcements" type="hidden" name="attr_announcement" value="1" />
<div class="announcements">
<h3 class="title">Coming Soon: Version 4 Upgrade</h3>
<p>The sheet will soon (likely before the end of March) be upgraded to version 4. You can learn more about the new sheet at the sheet's wiki here:</p>
<input type"text" class="linkclass" value="https://wiki.roll20.net/Torg_Eternity_Community_Sheet" readonly />
<p>
Your characters should be updated smoothly and accurately, but the sheet is a big change and some things may glitch. You can test your characters by exporting them to the roll20 Character Vault, then import them to a public test campaign here:
</p>
<input type"text" class="linkclass" value="https://app.roll20.net/join/5981834/-xhKMQ" readonly />
<p>This will show you how well they convert. You can post feedback at the sheet's thread here:</p>
<input type"text" class="linkclass" value="https://app.roll20.net/forum/post/8130061/torg-eternity-sheet-redesign-thread/" readonly />
<button class="ability-roll announcements" type="action" name="act_announcements_close">
<h3>Close This Frame</h3>
</button>
<p>You can show this frame again by clicking the Announcements options in the setting sidebar.</p>
</div>
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab1" value="1" title="Home" checked="checked" /><span title="Character"></span>
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab2" value="2" title="Notes" /><span title="Equipment"></span>
<input type="radio" name="attr_tab" class="sheet-tab sheet-tab3" value="3" title="Perks" /><span title="Perks"></span>
@@ -22,6 +38,11 @@
<button type="roll" class="hidden" name="result-up" value="&{template:possibility} {{previousroll=@{previous-result}}} {{newroll=[[@{previous-result}+(1d20!10!!20cs10cs) @{rolltracker}]]}} @{rollspecial}"></button>
<button type="roll" class="hidden" name="result-bonusdie" value="&{template:coupdegrace} {{neweffect=[[@{previous-result} + 1d6!p @{rolltracker}]]}} @{rollspecialdamage}"></button>
</label>
<br />
<label>
<input type="checkbox" name="attr_announcement" value="1" />
<span>Toggle Announcement</span>
</label>
</div>
<div class="sheet-tab-content sheet-tab1">
@@ -1953,4 +1974,10 @@
}
});
});
on(`clicked:announcements_close`, function () {
setAttrs({
announcements: 0
});
});
</script>