From 73743da6b7618796052363bf7743e0914c4065e0 Mon Sep 17 00:00:00 2001 From: Eric Fredricksen Date: Tue, 6 Jul 2010 21:50:00 -0700 Subject: [PATCH] Match widths to Main.dfm, mostly --- main.css | 36 +++++++++++++++++++++++++++++++----- main.html | 34 +++++++++++++++++----------------- main.js | 6 +++++- progros.css | 2 +- 4 files changed, 54 insertions(+), 24 deletions(-) diff --git a/main.css b/main.css index 29b3713..62d389e 100644 --- a/main.css +++ b/main.css @@ -11,7 +11,6 @@ thead.mid { .listbox { border: solid 1px black; - width: 250px; background-color: white; } @@ -25,7 +24,6 @@ thead.mid { div.progress-container { border: 1px solid #ccc; - width: 250px; margin: 2px 5px 2px 0; padding: 1px; background: white; @@ -35,7 +33,6 @@ div.progress-container { div.progress-container > div.bar { background-color: #ACE97C; height: 12px; - width: 50%; } div.hint { @@ -43,7 +40,6 @@ div.hint { position: absolute; margin-top: 1px; visibility: hidden; - width: 250px; text-align: center; color: #060; } @@ -56,7 +52,37 @@ div.progress-container:hover div.hint { 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 { width: 800px; - } +} diff --git a/main.html b/main.html index f159d8b..d150baa 100644 --- a/main.html +++ b/main.html @@ -27,11 +27,11 @@ Character Sheet - +
- - + + @@ -79,15 +79,15 @@ Spell Book -
+
TraitValueTraitValue
- - + + - +
SpellLevelSpellLevel
@@ -96,8 +96,8 @@
Equipment - - +
+ @@ -113,15 +113,15 @@
Weapon
Shield
Helm
Inventory -
+
- + - +
ItemItem Qty
Gold0
@@ -138,9 +138,9 @@
Plot Development -
+
- +
@@ -150,10 +150,10 @@
- Quests -
+ Quests +
- +
diff --git a/main.js b/main.js index 3a4af60..72d2183 100644 --- a/main.js +++ b/main.js @@ -452,7 +452,8 @@ function ProgressBar(id) { function ListBox(id, columns, fixedkeys) { this.id = id; - this.box = $("#"+ id); + //this.box = $("#"+ id); + this.box = $("tbody#_, #_ tbody".replace(/_/g, id)); this.columns = columns; this.fixedkeys = fixedkeys; @@ -1080,6 +1081,9 @@ $(function() { } }); + cheat("Break", function () { + debugger; + }); cheat("Equip", function () { WinEquip(); }); diff --git a/progros.css b/progros.css index 7778663..0b97fc8 100644 --- a/progros.css +++ b/progros.css @@ -46,7 +46,7 @@ table { border-collapse: collapse; border-spacing: 0; } } td, th, .label, tr input, #titlebar, div { - font-family: Helvetica; + font-family: Helvetica, sans-serif; font-size: 8pt; }