mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
implemented Itemset detail page
- while the code and strings are there, no rules have been set concerning availability User: - HTTP_ACCEPT_LANGUAGE may not be set. Compare: - removed some relic code, that, once uppon a time, was used to link virtual item sets with real item sets or something.. Titles: - fixed a few forgotten changes Lang: - hide DND-entries for locks BaseType: - improved getField to automaticaly cast numerics to float - improved __construct to check for numeric instead of int
This commit is contained in:
@@ -1091,7 +1091,7 @@ Mapper.prototype = {
|
||||
var scroll = g_getScroll();
|
||||
|
||||
this.mouseX = Math.floor((e.clientX + scroll.x - c[0] - 3) / Mapper.sizes[this.zoom][0] * 1000) / 10;
|
||||
this.mouseY = Math.floor((e.clientY + scroll.y - c[1] - 3) / Mapper.sizes[this.zoom][1] * 1000) / 10;
|
||||
this.mouseY = Math.floor((e.clientY + scroll.y - c[1] - 3) / Mapper.sizes[this.zoom][1] * 1000) / 10;
|
||||
|
||||
if(this.mouseX < 0) this.mouseX = 0;
|
||||
else if(this.mouseX > 100) this.mouseX = 100;
|
||||
|
||||
@@ -1093,26 +1093,24 @@ Summary.prototype = {
|
||||
|
||||
if (col.id == 'name') {
|
||||
ae(th, this.selectLevel);
|
||||
if (this.editable) {
|
||||
|
||||
var s = ce('select');
|
||||
s.onchange = (function(s) {
|
||||
this.level = s.options[s.selectedIndex].value;
|
||||
this.refreshAll();
|
||||
}).bind(this, s);
|
||||
var s = ce('select');
|
||||
s.onchange = (function(s) {
|
||||
this.level = s.options[s.selectedIndex].value;
|
||||
this.refreshAll();
|
||||
}).bind(this, s);
|
||||
|
||||
for (var i = 80; i > 0; --i) {
|
||||
var o = ce('option');
|
||||
if (i == this.level) {
|
||||
o.selected = true;
|
||||
}
|
||||
st(o, i);
|
||||
ae(s, o);
|
||||
for (var i = 80; i > 0; --i) {
|
||||
var o = ce('option');
|
||||
if (i == this.level) {
|
||||
o.selected = true;
|
||||
}
|
||||
|
||||
ae(this.selectLevel, ct(LANG.su_level + ' '));
|
||||
ae(this.selectLevel, s);
|
||||
st(o, i);
|
||||
ae(s, o);
|
||||
}
|
||||
|
||||
ae(this.selectLevel, ct(LANG.su_level + ' '));
|
||||
ae(this.selectLevel, s);
|
||||
}
|
||||
|
||||
if (col.group) {
|
||||
|
||||
@@ -3267,7 +3267,7 @@ function su_addToSaved(c, d, a, e) {
|
||||
title: LANG.dialog_compare,
|
||||
width: 400,
|
||||
height: 138,
|
||||
buttons: ["okay", "cancel"],
|
||||
buttons: [['okay', LANG.ok], ['cancel', LANG.cancel]],
|
||||
fields: [{
|
||||
id: "selecteditems",
|
||||
type: "caption",
|
||||
@@ -14713,19 +14713,22 @@ var ModelViewer = new function() {
|
||||
|
||||
if (!optBak.noPound) {
|
||||
var url = '#modelviewer';
|
||||
switch (optBak.type) {
|
||||
case 1: // npc
|
||||
url += ':1:' + optBak.displayId + ':' + (optBak.humanoid | 0);
|
||||
break;
|
||||
case 2: // object
|
||||
url += ':2:' + optBak.displayId;
|
||||
break;
|
||||
case 3: // item
|
||||
url += ':3:' + optBak.displayId + ':' + (optBak.slot | 0);
|
||||
break;
|
||||
case 4: // item set
|
||||
url += ':4:' + equipList.join(';');
|
||||
break;
|
||||
var foo = ge('view3D-button');
|
||||
if (!foo) {
|
||||
switch (optBak.type) {
|
||||
case 1: // npc
|
||||
url += ':1:' + optBak.displayId + ':' + (optBak.humanoid | 0);
|
||||
break;
|
||||
case 2: // object
|
||||
url += ':2:' + optBak.displayId;
|
||||
break;
|
||||
case 3: // item
|
||||
url += ':3:' + optBak.displayId + ':' + (optBak.slot | 0);
|
||||
break;
|
||||
case 4: // item set
|
||||
url += ':4:' + equipList.join(';');
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (race && sex) {
|
||||
url += ':' + race + '+' + sex;
|
||||
@@ -15141,7 +15144,7 @@ var ModelViewer = new function() {
|
||||
readExtraPound(parts[1]);
|
||||
}
|
||||
else {
|
||||
var foo = ge('dsgndslgn464d');
|
||||
var foo = ge('view3D-button');
|
||||
if (foo) {
|
||||
foo.onclick();
|
||||
}
|
||||
@@ -16086,13 +16089,6 @@ var
|
||||
a.onclick = _processForm.bind(a, button[0]);
|
||||
a.className = 'dialog-' + button[0];
|
||||
ae(a, ct(button[1]));
|
||||
/* custom for lost buttons texture, no longer in use on 2.5.2012
|
||||
a.onclick = _processForm.bind(a, button);
|
||||
a.className = 'dialog-' + button;
|
||||
var sp = ce('span');
|
||||
sp.innerHTML = button;
|
||||
ae(a, sp);
|
||||
end custom */
|
||||
ae(dest, a);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user