
09-08-2007, 07:11 AM
|
|
That one guy...
|
 |
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
|
|
Quote:
Originally Posted by coreys
Okay, I did change them to that, but I also figured out why that's happening. It has to do with the chat system on Maloria, so there's nothing wrong with the for loops. However, the icons are showing in...odd places.
Here's what I have now:
PHP Code:
function loadPage() {
for (a=1; a<25; a++) {
makevar("ItemIcon_" @ a).destroy();
}
this.itemssize = clientr.items.size()-((this.page-1)*24);
temp.base = {218, 53};
temp.i = 1;
temp.height = temp.width = 0;
for (temp.height=0; temp.height<6; temp.height++) {
for (temp.width=0; temp.width<4; temp.width++) {
with (new GuiShowImgCtrl("ItemIcon_" @ temp.i)) {
resize(temp.base[0]+(32*temp.width),temp.base[1]+(32*temp.height),32,32);
image = "block.png";
Inv.addControl(this);
}
if (temp.i < this.itemssize)
temp.i++;
else
break;
}
}
}
There's an icon in the top left corner and the the bottom left corner. o.0
|
Huh? How would the chat system be doing it? |
__________________
Do it with a DON!
|
|
|
|