Match widths to Main.dfm, mostly

This commit is contained in:
Eric Fredricksen
2010-07-06 21:50:00 -07:00
parent 9c33dc277a
commit 73743da6b7
4 changed files with 54 additions and 24 deletions
+30 -4
View File
@@ -11,7 +11,6 @@ thead.mid {
.listbox { .listbox {
border: solid 1px black; border: solid 1px black;
width: 250px;
background-color: white; background-color: white;
} }
@@ -25,7 +24,6 @@ thead.mid {
div.progress-container { div.progress-container {
border: 1px solid #ccc; border: 1px solid #ccc;
width: 250px;
margin: 2px 5px 2px 0; margin: 2px 5px 2px 0;
padding: 1px; padding: 1px;
background: white; background: white;
@@ -35,7 +33,6 @@ div.progress-container {
div.progress-container > div.bar { div.progress-container > div.bar {
background-color: #ACE97C; background-color: #ACE97C;
height: 12px; height: 12px;
width: 50%;
} }
div.hint { div.hint {
@@ -43,7 +40,6 @@ div.hint {
position: absolute; position: absolute;
margin-top: 1px; margin-top: 1px;
visibility: hidden; visibility: hidden;
width: 250px;
text-align: center; text-align: center;
color: #060; color: #060;
} }
@@ -56,6 +52,36 @@ div.progress-container:hover div.hint {
width: 820px; width: 820px;
} }
#Trats,
#Spells, #Spells table,
#Plots, #Plots table,
#Quests, #Quests table {
width: 200px;
}
#ExpBar, #ExpBar .hint,
#PlotBar, #PlotBar .hint,
#QuestBar, #QuestBar .hint {
width: 198px;
}
#Equips,
#Inventory, #Inventory table {
width: 272px;
}
#EncumBar, #EncumBar .hint {
width: 270px;
}
#Trats thead th:first-child {
width: 55px;
}
#Spells .value {
width: 15ex;
}
#TaskBar, #TaskBar .hint { #TaskBar, #TaskBar .hint {
width: 800px; width: 800px;
} }
+14 -14
View File
@@ -27,10 +27,10 @@
<span class="label head" >Character Sheet</span> <span class="label head" >Character Sheet</span>
<table class="listbox"> <table class="listbox" id="Trats">
<thead> <thead>
<tr> <tr>
<th style="width:25%">Trait</th> <th>Trait</th>
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
@@ -79,15 +79,15 @@
</div> </div>
<span class="label head" >Spell Book</span> <span class="label head" >Spell Book</span>
<div class="scroll listbox"> <div id="Spells" class="scroll listbox">
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Spell</th> <th class="key">Spell</th>
<th style="width:10ex">Level</th> <th class="value">Level</th>
</tr> </tr>
</thead> </thead>
<tbody id="Spells"> <tbody>
</tbody> </tbody>
</table> </table>
</div> </div>
@@ -96,8 +96,8 @@
<div class="vbox"> <div class="vbox">
<span class="label head">Equipment</span> <span class="label head">Equipment</span>
<table class="listbox"> <table id="Equips" class="listbox">
<tbody id="Equips"> <tbody>
<tr><td style="width:12ex">Weapon</td><td></td></tr> <tr><td style="width:12ex">Weapon</td><td></td></tr>
<tr><td>Shield</td><td></tr> <tr><td>Shield</td><td></tr>
<tr><td>Helm<td></tr> <tr><td>Helm<td></tr>
@@ -113,7 +113,7 @@
</table> </table>
<span class="label head" >Inventory</span> <span class="label head" >Inventory</span>
<div class="scroll listbox"> <div id="Inventory" class="scroll listbox">
<table > <table >
<thead> <thead>
<tr> <tr>
@@ -121,7 +121,7 @@
<th style="width:6ex">Qty</th> <th style="width:6ex">Qty</th>
</tr> </tr>
</thead> </thead>
<tbody id="Inventory"> <tbody>
<tr><td>Gold<td>0</tr> <tr><td>Gold<td>0</tr>
</tbody> </tbody>
</table> </table>
@@ -138,9 +138,9 @@
<div class="vbox"> <div class="vbox">
<span class="label head">Plot Development</span> <span class="label head">Plot Development</span>
<div class="scroll listbox"> <div id="Plots" class="scroll listbox">
<table> <table>
<tbody id="Plots"> <tbody>
</tbody> </tbody>
</table> </table>
</div> </div>
@@ -151,9 +151,9 @@
</div> </div>
<span class="label head">Quests</span> <span class="label head">Quests</span>
<div class="scroll listbox"> <div id="Quests" class="scroll listbox">
<table> <table>
<tbody id="Quests"> <tbody>
</tbody> </tbody>
</table> </table>
</div> </div>
+5 -1
View File
@@ -452,7 +452,8 @@ function ProgressBar(id) {
function ListBox(id, columns, fixedkeys) { function ListBox(id, columns, fixedkeys) {
this.id = id; this.id = id;
this.box = $("#"+ id); //this.box = $("#"+ id);
this.box = $("tbody#_, #_ tbody".replace(/_/g, id));
this.columns = columns; this.columns = columns;
this.fixedkeys = fixedkeys; this.fixedkeys = fixedkeys;
@@ -1080,6 +1081,9 @@ $(function() {
} }
}); });
cheat("Break", function () {
debugger;
});
cheat("Equip", function () { cheat("Equip", function () {
WinEquip(); WinEquip();
}); });
+1 -1
View File
@@ -46,7 +46,7 @@ table { border-collapse: collapse; border-spacing: 0; }
} }
td, th, .label, tr input, #titlebar, div { td, th, .label, tr input, #titlebar, div {
font-family: Helvetica; font-family: Helvetica, sans-serif;
font-size: 8pt; font-size: 8pt;
} }