mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Move char sheet to roster screen
This commit is contained in:
@@ -179,31 +179,4 @@ Cheat
|
|||||||
</body>
|
</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>
|
</html>
|
||||||
|
|||||||
@@ -837,12 +837,6 @@ function Log(line) {
|
|||||||
// TODO: and now what?
|
// TODO: and now what?
|
||||||
}
|
}
|
||||||
|
|
||||||
function CharSheet() {
|
|
||||||
return template($("#sheet").html(), game);
|
|
||||||
// TODO: make this a separate page
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function Task(caption, msec) {
|
function Task(caption, msec) {
|
||||||
Kill.text(caption + '...');
|
Kill.text(caption + '...');
|
||||||
Log(Kill.text());
|
Log(Kill.text());
|
||||||
@@ -1177,11 +1171,6 @@ function InputBox(message, def) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function FormKeyDown(e) {
|
function FormKeyDown(e) {
|
||||||
if (e.which == 1) { // ^A
|
|
||||||
SaveGame();
|
|
||||||
alert(CharSheet());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e.which == 13) { // ^M
|
if (e.which == 13) { // ^M
|
||||||
game.motto = InputBox('Declare your motto!', game.motto);
|
game.motto = InputBox('Declare your motto!', game.motto);
|
||||||
// Brag('m');
|
// Brag('m');
|
||||||
@@ -1218,8 +1207,6 @@ function LFSR(pt, salt) {
|
|||||||
function Brag(trigger) {
|
function Brag(trigger) {
|
||||||
/* TODO
|
/* TODO
|
||||||
var flat = 1;
|
var flat = 1;
|
||||||
if (FExportSheets)
|
|
||||||
ExportCharSheet;
|
|
||||||
if (GetPasskey() == 0) return; // not a online game!
|
if (GetPasskey() == 0) return; // not a online game!
|
||||||
var url = 'cmd=b&t=' + trigger;
|
var url = 'cmd=b&t=' + trigger;
|
||||||
with (Traits) for (i = 0; i <= Items.length()-1; ++i)
|
with (Traits) for (i = 0; i <= Items.length()-1; ++i)
|
||||||
|
|||||||
+33
-2
@@ -44,7 +44,7 @@ body {
|
|||||||
a.icon {
|
a.icon {
|
||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
}
|
}
|
||||||
a.x {
|
a.x, a.sheet {
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -83,10 +83,41 @@ a.x {
|
|||||||
<div class="rc">Level $Traits.Level $Traits.Class</div>
|
<div class="rc">Level $Traits.Level $Traits.Class</div>
|
||||||
<div class="bs">$Equips.best / $Spells.best / $Stats.best</div>
|
<div class="bs">$Equips.best / $Spells.best / $Stats.best</div>
|
||||||
</td>
|
</td>
|
||||||
<td><a class="x" href="#">☠</a></td>
|
<td>
|
||||||
|
<a class="x" href="#">☠</a><br>
|
||||||
|
<a class="sheet" href="#">✏</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</script>
|
</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>
|
</html>
|
||||||
|
|||||||
@@ -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'/>");
|
var p = $("<p style='font:6pt verdana'/>");
|
||||||
p.appendTo(roster);
|
p.appendTo(roster);
|
||||||
|
|||||||
Reference in New Issue
Block a user