changelog, class selector, labels

This commit is contained in:
Ryan Sturt
2023-09-06 10:52:24 -04:00
parent eb7d939e1e
commit cd5ff4b927
3 changed files with 89 additions and 223 deletions
+31 -177
View File
@@ -46,14 +46,14 @@
font-family: 'Corben';
font-style: normal;
font-weight: 700;
src: local('Corben'), url(http://themes.googleusercontent.com/static/fonts/corben/v6/ljkAb4w-83fUltRn9aENdbO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
src: local('Corben'), url(https://themes.googleusercontent.com/static/fonts/corben/v6/ljkAb4w-83fUltRn9aENdbO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
@font-face {
font-family: 'Corben Regular';
font-style: normal;
font-weight: 400;
src: local('Corben Regular'), local('Corben-Regular'), url(http://themes.googleusercontent.com/static/fonts/corben/v6/uWWoJk4JhWoRrYEm4mc4D-vvDin1pK8aKteLpeZ5c0A.woff) format('woff');
src: local('Corben Regular'), local('Corben-Regular'), url(https://themes.googleusercontent.com/static/fonts/corben/v6/uWWoJk4JhWoRrYEm4mc4D-vvDin1pK8aKteLpeZ5c0A.woff) format('woff');
}
.charsheet {
@@ -434,187 +434,41 @@ input.sheet-baseinfo,
height: 22px;
}
/* TABS */
.sheet-wrapper input.sheet-isWarrior,
.sheet-wrapper input.sheet-isWizard,
.sheet-wrapper input.sheet-isCleric,
.sheet-wrapper input.sheet-isThief,
.sheet-wrapper input.sheet-isHalfling,
.sheet-wrapper input.sheet-isDwarf,
.sheet-wrapper input.sheet-isElf,
.sheet-wrapper input.sheet-isNPC,
.charsheet .sheet-wrapper label.sheet-tab {
display: inline;
width:24px;
}
.charsheet .sheet-wrapper label.sheet-tab {
width:40px;
}
.sheet-wrapper .sheet-isWarrior:checked~.sheet-wizard,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-cleric,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-thief,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-halfling,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-elf,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-npc,
.sheet-wrapper .sheet-isWizard:checked~.sheet-warrior,
.sheet-wrapper .sheet-isWizard:checked~.sheet-cleric,
.sheet-wrapper .sheet-isWizard:checked~.sheet-thief,
.sheet-wrapper .sheet-isWizard:checked~.sheet-halfling,
.sheet-wrapper .sheet-isWizard:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isWizard:checked~.sheet-elf,
.sheet-wrapper .sheet-isWizard:checked~.sheet-npc,
.sheet-wrapper .sheet-isCleric:checked~.sheet-warrior,
.sheet-wrapper .sheet-isCleric:checked~.sheet-wizard,
.sheet-wrapper .sheet-isCleric:checked~.sheet-thief,
.sheet-wrapper .sheet-isCleric:checked~.sheet-halfling,
.sheet-wrapper .sheet-isCleric:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isCleric:checked~.sheet-elf,
.sheet-wrapper .sheet-isCleric:checked~.sheet-npc,
.sheet-wrapper .sheet-isThief:checked~.sheet-warrior,
.sheet-wrapper .sheet-isThief:checked~.sheet-wizard,
.sheet-wrapper .sheet-isThief:checked~.sheet-cleric,
.sheet-wrapper .sheet-isThief:checked~.sheet-halfling,
.sheet-wrapper .sheet-isThief:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isThief:checked~.sheet-elf,
.sheet-wrapper .sheet-isThief:checked~.sheet-npc,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-warrior,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-wizard,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-cleric,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-thief,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-elf,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-npc,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-warrior,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-wizard,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-cleric,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-thief,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-halfling,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-elf,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-npc,
.sheet-wrapper .sheet-isElf:checked~.sheet-warrior,
.sheet-wrapper .sheet-isElf:checked~.sheet-wizard,
.sheet-wrapper .sheet-isElf:checked~.sheet-cleric,
.sheet-wrapper .sheet-isElf:checked~.sheet-thief,
.sheet-wrapper .sheet-isElf:checked~.sheet-halfling,
.sheet-wrapper .sheet-isElf:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isElf:checked~.sheet-npc {
.charsheet .sheet-wrapper .sheet-warrior,
.charsheet .sheet-wrapper .sheet-wizard,
.charsheet .sheet-wrapper .sheet-cleric,
.charsheet .sheet-wrapper .sheet-thief,
.charsheet .sheet-wrapper .sheet-halfling,
.charsheet .sheet-wrapper .sheet-dwarf,
.charsheet .sheet-wrapper .sheet-elf,
.charsheet .sheet-wrapper .sheet-bard,
.charsheet .sheet-wrapper .sheet-gnome,
.charsheet .sheet-wrapper .sheet-paladin,
.charsheet .sheet-wrapper .sheet-ranger,
.charsheet .sheet-wrapper .sheet-kith {
display: none;
}
.sheet-wrapper .sheet-isNPC:checked~.sheet-pc,
.sheet-wrapper .sheet-isPC:checked~.sheet-npc {
display: none;
}
/* Extra Classes */
.sheet-wrapper input.sheet-isBard,
.sheet-wrapper input.sheet-isGnome,
.sheet-wrapper input.sheet-isPaladin,
.sheet-wrapper input.sheet-isRanger,
.sheet-wrapper input.sheet-isKith,
.sheet-wrapper input.sheet-isNPC,
.charsheet .sheet-wrapper label.sheet-tab {
display: inline;
width:24px;
}
.sheet-wrapper .sheet-isBard:checked~.sheet-warrior,
.sheet-wrapper .sheet-isBard:checked~.sheet-wizard,
.sheet-wrapper .sheet-isBard:checked~.sheet-cleric,
.sheet-wrapper .sheet-isBard:checked~.sheet-thief,
.sheet-wrapper .sheet-isBard:checked~.sheet-halfling,
.sheet-wrapper .sheet-isBard:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isBard:checked~.sheet-elf,
.sheet-wrapper .sheet-isBard:checked~.sheet-gnome,
.sheet-wrapper .sheet-isBard:checked~.sheet-paladin,
.sheet-wrapper .sheet-isBard:checked~.sheet-ranger,
.sheet-wrapper .sheet-isBard:checked~.sheet-kith,
.sheet-wrapper .sheet-isGnome:checked~.sheet-warrior,
.sheet-wrapper .sheet-isGnome:checked~.sheet-wizard,
.sheet-wrapper .sheet-isGnome:checked~.sheet-cleric,
.sheet-wrapper .sheet-isGnome:checked~.sheet-thief,
.sheet-wrapper .sheet-isGnome:checked~.sheet-halfling,
.sheet-wrapper .sheet-isGnome:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isGnome:checked~.sheet-elf,
.sheet-wrapper .sheet-isGnome:checked~.sheet-bard,
.sheet-wrapper .sheet-isGnome:checked~.sheet-paladin,
.sheet-wrapper .sheet-isGnome:checked~.sheet-ranger,
.sheet-wrapper .sheet-isGnome:checked~.sheet-kith,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-warrior,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-wizard,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-cleric,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-thief,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-halfling,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-elf,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-bard,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-gnome,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-ranger,
.sheet-wrapper .sheet-isPaladin:checked~.sheet-kith,
.sheet-wrapper .sheet-isRanger:checked~.sheet-warrior,
.sheet-wrapper .sheet-isRanger:checked~.sheet-wizard,
.sheet-wrapper .sheet-isRanger:checked~.sheet-cleric,
.sheet-wrapper .sheet-isRanger:checked~.sheet-thief,
.sheet-wrapper .sheet-isRanger:checked~.sheet-halfling,
.sheet-wrapper .sheet-isRanger:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isRanger:checked~.sheet-elf,
.sheet-wrapper .sheet-isRanger:checked~.sheet-bard,
.sheet-wrapper .sheet-isRanger:checked~.sheet-gnome,
.sheet-wrapper .sheet-isRanger:checked~.sheet-paladin,
.sheet-wrapper .sheet-isRanger:checked~.sheet-kith,
.sheet-wrapper .sheet-isKith:checked~.sheet-warrior,
.sheet-wrapper .sheet-isKith:checked~.sheet-wizard,
.sheet-wrapper .sheet-isKith:checked~.sheet-cleric,
.sheet-wrapper .sheet-isKith:checked~.sheet-thief,
.sheet-wrapper .sheet-isKith:checked~.sheet-halfling,
.sheet-wrapper .sheet-isKith:checked~.sheet-dwarf,
.sheet-wrapper .sheet-isKith:checked~.sheet-elf,
.sheet-wrapper .sheet-isKith:checked~.sheet-bard,
.sheet-wrapper .sheet-isKith:checked~.sheet-gnome,
.sheet-wrapper .sheet-isKith:checked~.sheet-paladin,
.sheet-wrapper .sheet-isKith:checked~.sheet-ranger,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-ranger,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-bard,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-gnome,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-paladin,
.sheet-wrapper .sheet-isWarrior:checked~.sheet-kith,
.sheet-wrapper .sheet-isWizard:checked~.sheet-ranger,
.sheet-wrapper .sheet-isWizard:checked~.sheet-bard,
.sheet-wrapper .sheet-isWizard:checked~.sheet-gnome,
.sheet-wrapper .sheet-isWizard:checked~.sheet-paladin,
.sheet-wrapper .sheet-isWizard:checked~.sheet-kith,
.sheet-wrapper .sheet-isCleric:checked~.sheet-ranger,
.sheet-wrapper .sheet-isCleric:checked~.sheet-bard,
.sheet-wrapper .sheet-isCleric:checked~.sheet-gnome,
.sheet-wrapper .sheet-isCleric:checked~.sheet-paladin,
.sheet-wrapper .sheet-isCleric:checked~.sheet-kith,
.sheet-wrapper .sheet-isThief:checked~.sheet-ranger,
.sheet-wrapper .sheet-isThief:checked~.sheet-bard,
.sheet-wrapper .sheet-isThief:checked~.sheet-gnome,
.sheet-wrapper .sheet-isThief:checked~.sheet-paladin,
.sheet-wrapper .sheet-isThief:checked~.sheet-kith,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-ranger,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-bard,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-gnome,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-paladin,
.sheet-wrapper .sheet-isHalfling:checked~.sheet-kith,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-ranger,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-bard,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-gnome,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-paladin,
.sheet-wrapper .sheet-isDwarf:checked~.sheet-kith,
.sheet-wrapper .sheet-isElf:checked~.sheet-ranger,
.sheet-wrapper .sheet-isElf:checked~.sheet-bard,
.sheet-wrapper .sheet-isElf:checked~.sheet-gnome,
.sheet-wrapper .sheet-isElf:checked~.sheet-kith,
.sheet-wrapper .sheet-isElf:checked~.sheet-paladin {
display: none;
}
/* show the selected archetype */
.charsheet .sheet-wrapper .sheet-classtoggle[value="warrior"] ~ div.sheet-warrior,
.charsheet .sheet-wrapper .sheet-classtoggle[value="wizard"] ~ div.sheet-wizard,
.charsheet .sheet-wrapper .sheet-classtoggle[value="cleric"] ~ div.sheet-cleric,
.charsheet .sheet-wrapper .sheet-classtoggle[value="thief"] ~ div.sheet-thief,
.charsheet .sheet-wrapper .sheet-classtoggle[value="halfling"] ~ div.sheet-halfling,
.charsheet .sheet-wrapper .sheet-classtoggle[value="dwarf"] ~ div.sheet-dwarf,
.charsheet .sheet-wrapper .sheet-classtoggle[value="elf"] ~ div.sheet-elf,
.charsheet .sheet-wrapper .sheet-classtoggle[value="bard"] ~ div.sheet-bard,
.charsheet .sheet-wrapper .sheet-classtoggle[value="gnome"] ~ div.sheet-gnome,
.charsheet .sheet-wrapper .sheet-classtoggle[value="paladin"] ~ div.sheet-paladin,
.charsheet .sheet-wrapper .sheet-classtoggle[value="ranger"] ~ div.sheet-ranger,
.charsheet .sheet-wrapper .sheet-classtoggle[value="kith"] ~ div.sheet-kith {
display: block;
}
+47 -42
View File
@@ -475,10 +475,10 @@
<label>Special</label>
</div>
<div class="sheet-item sheet-tiny">
<label>Melee</label>
<label>Melee Mod</label>
</div>
<div class="sheet-item sheet-tiny">
<label>Ranged</label>
<label>Ranged Mod</label>
</div>
</div>
<fieldset class="repeating_weapons">
@@ -518,10 +518,10 @@
<label>Armor</label>
</div>
<div class="sheet-item sheet-square">
<label>AC Bonus</label>
<label>Bonus</label>
</div>
<div class="sheet-item sheet-square">
<label>Check Penalty</label>
<label>Penalty</label>
</div>
<div class="sheet-item sheet-square">
<label>Speed</label>
@@ -530,7 +530,7 @@
<label>Fumble Die</label>
</div>
<div class="sheet-item sheet-tiny">
<label>Fumble</label>
<label>Fumble Mod</label>
</div>
<div class="sheet-item sheet-med">
<label>Special</label>
@@ -542,16 +542,21 @@
<input type="text" name="attr_ArmorName"/>
</div>
<div class="sheet-item sheet-square">
<input type="text" name="attr_ArmorBonus"/>
<input type="number" name="attr_ArmorBonus"/>
</div>
<div class="sheet-item sheet-square">
<input type="text" name="attr_ArmorCheck"/>
<input type="number" name="attr_ArmorCheck"/>
</div>
<div class="sheet-item sheet-square">
<input type="text" name="attr_ArmorSpeed"/>
<input type="number" name="attr_ArmorSpeed"/>
</div>
<div class="sheet-item sheet-tiny">
<input type="text" name="attr_ArmorFumbleDie"/>
<select name="attr_ArmorFumbleDie" class="sheet-square">
<option value="d4" selected="selected">d4</option>
<option value="d8">d8</option>
<option value="d12">d12</option>
<option value="d16">d16</option>
</select>
</div>
<div class="sheet-item sheet-tiny">
<input class="sheet-square" type="number" name="attr_FumbleCheck" value="@{Luck_mod}*-1" disabled />
@@ -626,18 +631,24 @@
</div><!-- classes -->
<hr/>
<!-- character details -->
<input type="radio" class="isWarrior" value="1" name="attr_Class" checked><label class="sheet-tab">Warrior</label>
<input type="radio" class="isWizard" value="2" name="attr_Class" checked><label class="sheet-tab">Wizard</label>
<input type="radio" class="isCleric" value="3" name="attr_Class" checked><label class="sheet-tab">Cleric</label>
<input type="radio" class="isThief" value="4" name="attr_Class" checked><label class="sheet-tab">Thief</label>
<input type="radio" class="isHalfling" value="5" name="attr_Class" checked><label class="sheet-tab">Halfling</label>
<input type="radio" class="isDwarf" value="6" name="attr_Class" checked><label class="sheet-tab">Dwarf</label>
<input type="radio" class="isElf" value="7" name="attr_Class" checked><label class="sheet-tab">Elf</label>
<input type="radio" class="isBard" value="8" name="attr_Class" checked><label class="sheet-tab">Bard</label>
<input type="radio" class="isGnome" value="9" name="attr_Class" checked><label class="sheet-tab">Gnome</label>
<input type="radio" class="isPaladin" value="10" name="attr_Class" checked><label class="sheet-tab">Paladin</label>
<input type="radio" class="isRanger" value="11" name="attr_Class" checked><label class="sheet-tab">Ranger</label>
<input type="radio" class="isKith" value="12" name="attr_Class" checked><label class="sheet-tab">Kith</label>
<div>
<h2>Class</h2>
<select name="attr_ClassSelector">
<option value="warrior" name="attr_Class" selected >Warrior</option>
<option value="wizard" name="attr_Class" >Wizard</option>
<option value="cleric" name="attr_Class" >Cleric</option>
<option value="thief" name="attr_Class" >Thief</option>
<option value="halfling" name="attr_Class" >Halfling</option>
<option value="dwarf" name="attr_Class" >Dwarf</option>
<option value="elf" name="attr_Class" >Elf</option>
<option value="bard" name="attr_Class" >Bard</option>
<option value="gnome" name="attr_Class" >Gnome</option>
<option value="paladin" name="attr_Class" >Paladin</option>
<option value="ranger" name="attr_Class" >Ranger</option>
<option value="kith" name="attr_Class" >Kith</option>
</select>
</div>
<input type="hidden" class="sheet-classtoggle" name="attr_ClassSelector" />
<!-- warrior -->
<div class="sheet-warrior">
<h2>Warrior Abilities</h2>
@@ -690,7 +701,7 @@
<label>Add class level to initiative</label>
</div>
</div>
<!-- wizard -->
<!-- wizard -->
<div class="sheet-wizard">
<h2>Wizard Spells &amp; Abilities</h2>
<div>
@@ -797,8 +808,9 @@
</fieldset>
</div>
</div>
<!-- cleric -->
<div class="sheet-cleric">
<!-- cleric -->
<h2>Cleric Spells &amp; Abilities</h2>
<div>
<div class="sheet-item sheet-med">
@@ -996,8 +1008,9 @@
</fieldset>
</div>
</div>
<!-- thief -->
<div class="sheet-thief">
<!-- thief -->
<h2>Thief Abilities</h2>
<div class="sheet-statblock">
<div class="sheet-header">
@@ -1188,8 +1201,9 @@
</div>
</div>
</div>
<!-- halfling -->
<div class="sheet-halfling">
<!-- halfling -->
<h2>Halfling Abilities</h2>
<div class="sheet-statblock">
<div class="sheet-item sheet-med">
@@ -1223,8 +1237,9 @@
</ul>
</div>
</div>
<!-- dwarf -->
<div class="sheet-dwarf">
<!-- dwarf -->
<h2>Dwarf Abilities</h2>
<div>
<div class="sheet-statblock">
@@ -1275,8 +1290,8 @@
</div>
</div>
</div>
<!-- elf -->
<div class="sheet-elf">
<!-- elf -->
<h2>Elf Spells &amp; Abilities</h2>
<div>
<div class="sheet-item sheet-med">
@@ -1422,9 +1437,7 @@
</fieldset>
</div>
</div>
<!-- bard -->
<!-- bard -->
<div class="sheet-bard">
<h2>Bard Spells &amp; Abilities</h2>
<div class="sheet-statblock">
@@ -1583,10 +1596,6 @@
The Bard class is from Crawl! No.6: Classic Class Collection
</div>
</div>
<!-- gnome -->
<div class="sheet-gnome">
<h2>Gnome Spells &amp; Abilities</h2>
@@ -1741,9 +1750,8 @@
The Gnome class is from Crawl! No.6: Classic Class Collection
</div>
</div>
<!-- paladin -->
<div class="sheet-paladin">
<!-- paladin -->
<h2>Paladin Spells &amp; Abilities</h2>
<div class="sheet-statblock">
<div class="sheet-item sheet-med">
@@ -2017,10 +2025,9 @@
<div class="sheet-med">
The Paladin class is from Crawl! No.6: Classic Class Collection
</div>
</div>
</div>
<!-- ranger -->
<div class="sheet-ranger">
<!-- ranger -->
<h2>Ranger Abilities</h2>
<div>
<div class="sheet-statblock">
@@ -2146,9 +2153,8 @@
The Ranger class is from Crawl! No.6: Classic Class Collection
</div>
</div>
<div class="sheet-kith">
<!-- kith -->
<div class="sheet-kith">
<h2>Kith Abilities</h2>
<div>
<div class="sheet-statblock">
@@ -2208,5 +2214,4 @@
</div>
</div>
</div>
</div>
+11 -4
View File
@@ -3,14 +3,21 @@ Character Sheet for Dungeon Crawl Classics
by bripod and sturtus
===============================================
Roadmap/Unfinished
- Armor Check Penalty resolution
- mighty deed resolution
- optional API checkbox in case of DCC HELPER usage, change buttons to API compatible buttons
9/6/23
- opts for using roll buttons without nested inputs to satisfy HTML standards and to fix buttons not - working
- formatting fixes to introduce new roll buttons
- adds sources for gnome, ranger, paladin, and bard classes
- adds agility to initiative roll
- adds field to set initiative die to d16 for two handed weapons
- updates class radio input tabs to a dropdown menu
8/31/23
- switched out disabled attribute for readonly
SOMEWHERE IN BETWEEN
- somebody added sheet worker and Kith class (whatever that is)
7/17/14
- Added ranger, paladin, gnome, bard
- fixed typos