Move char sheet to roster screen

This commit is contained in:
Eric Fredricksen
2010-07-06 14:39:43 -07:00
parent 5ab6b8169d
commit 009264cc9a
4 changed files with 38 additions and 42 deletions
-27
View File
@@ -179,31 +179,4 @@ Cheat
</body>
<script type="text/charsheet" id="sheet">
$Traits.Name the $Traits.Race [$hostname]
"$motto"
Level $Traits.Level $Traits.Class (exp. $ExpBar.position/$ExpBar.max)
Plot stage: $Plots.last ($PlotBar.hint)
Quest: $Quests.last ($QuestBar.hint)
Stats:
STR $Stats.STR
CON $Stats.CON
DEX $Stats.DEX
INT $Stats.INT
WIS $Stats.WIS HP Max $Stats.HP_Max
CHA $Stats.CHA MP Max $Stats.MP_Max
Equipment:
$Equips.___
Spell Book:
$Spells.___
Inventory ($EncumBar.hint):
$Inventory.___
-- $date
-- Progress Quest 6.3.web - http://progressquest.com/
</script>
</html>
-13
View File
@@ -837,12 +837,6 @@ function Log(line) {
// TODO: and now what?
}
function CharSheet() {
return template($("#sheet").html(), game);
// TODO: make this a separate page
}
function Task(caption, msec) {
Kill.text(caption + '...');
Log(Kill.text());
@@ -1177,11 +1171,6 @@ function InputBox(message, def) {
}
function FormKeyDown(e) {
if (e.which == 1) { // ^A
SaveGame();
alert(CharSheet());
}
if (e.which == 13) { // ^M
game.motto = InputBox('Declare your motto!', game.motto);
// Brag('m');
@@ -1218,8 +1207,6 @@ function LFSR(pt, salt) {
function Brag(trigger) {
/* TODO
var flat = 1;
if (FExportSheets)
ExportCharSheet;
if (GetPasskey() == 0) return; // not a online game!
var url = 'cmd=b&t=' + trigger;
with (Traits) for (i = 0; i <= Items.length()-1; ++i)
+33 -2
View File
@@ -44,7 +44,7 @@ body {
a.icon {
font-size: 3em;
}
a.x {
a.x, a.sheet {
font-size: 12pt;
}
</style>
@@ -83,10 +83,41 @@ a.x {
<div class="rc">Level $Traits.Level $Traits.Class</div>
<div class="bs">$Equips.best / $Spells.best / $Stats.best</div>
</td>
<td><a class="x" href="#">&#x2620</a></td>
<td>
<a class="x" href="#">&#x2620</a><br>
<a class="sheet" href="#">&#x270F</a>
</td>
</tr>
</table>
</script>
<script type="text/charsheet" id="sheet">
$Traits.Name the $Traits.Race [$hostname]
"$motto"
Level $Traits.Level $Traits.Class (exp. $ExpBar.position/$ExpBar.max)
Plot stage: $Plots.last ($PlotBar.hint)
Quest: $Quests.last ($QuestBar.hint)
Stats:
STR $Stats.STR
CON $Stats.CON
DEX $Stats.DEX
INT $Stats.INT
WIS $Stats.WIS HP Max $Stats.HP_Max
CHA $Stats.CHA MP Max $Stats.MP_Max
Equipment:
$Equips.___
Spell Book:
$Spells.___
Inventory ($EncumBar.hint):
$Inventory.___
-- $date
-- Progress Quest 6.3.web - http://progressquest.com/
</script>
</html>
+5
View File
@@ -27,6 +27,11 @@ $(document).ready(function () {
}
});
br.find("a.sheet").click(function () {
alert(template($("#sheet").html(), games[name]));
// TODO: put in a window or whatev
});
/*
var p = $("<p style='font:6pt verdana'/>");
p.appendTo(roster);