Xp interface bug fix
5 posters
Page 1 of 1
Xp interface bug fix
This is mostly for Bink, but you can use this to fix your client too. I can upload client with this added if needed.
Download client.java: http://dl.dropbox.com/u/41816419/client.java
Download client.class: http://dl.dropbox.com/u/41816419/client.class (You don't need this if you know how to change your compile's java path. )
On client.java: (no need to add this if you downloaded my client.java or client.class :p
Find:
Replace with:
Compile after.
Download client.java: http://dl.dropbox.com/u/41816419/client.java
Download client.class: http://dl.dropbox.com/u/41816419/client.class (You don't need this if you know how to change your compile's java path. )
On client.java: (no need to add this if you downloaded my client.java or client.class :p
Find:
- Code:
else if (class9_1.interfaceType == 8 && (anInt1500 == class9_1.id || anInt1044 == class9_1.id || anInt1129 == class9_1.id) && anInt1501 == 100)
Replace with:
- Code:
else if (class9_1.interfaceType == 8 && (anInt1500 == class9_1.id || anInt1044 == class9_1.id || anInt1129 == class9_1.id) && anInt1501 == 100) {
int boxWidth = 0;
int boxHeight = 0;
RSFont textDrawingArea_2 = aTextDrawingArea_1271;
for (String s1 = class9_1.disabledMessage; s1.length() > 0;) {
int l7 = s1.indexOf("\\n");
String s4;
if (l7 != -1) {
s4 = s1.substring(0, l7);
s1 = s1.substring(l7 + 2);
} else {
s4 = s1;
s1 = "";
}
int j10 = textDrawingArea_2.getTextWidth(s4);
if (j10 > boxWidth) {
boxWidth = j10;
}
boxHeight += textDrawingArea_2.anInt1497 + 1;
}
boxWidth += 6;
boxHeight += 7;
int xPos = (k2 + class9_1.width) - 5 - boxWidth;
int yPos = l2 + class9_1.height + 5;
if (xPos < k2 + 5) {
xPos = k2 + 5;
}
if (xPos + boxWidth > k + class9.width) {
xPos = (k + class9.width) - boxWidth;
}
if (yPos + boxHeight > l + class9.height) {
yPos = (l + class9.height) - boxHeight;
}
if(class9_1.inventoryhover){
if(xPos + boxWidth+k > 249){
xPos = 251 - boxWidth-k;
}
if(yPos+boxHeight+l >261 ){
yPos = 245 - boxHeight - l;
}
}
switch (class9_1.id) {
case 9217:
case 9220:
case 9223:
case 9226:
case 9229:
case 9232:
case 9235:
case 9238:
xPos -= 80;
break;
case 9239:
yPos -= 100;
break;
}
DrawingArea.method336(boxHeight, yPos, xPos, 0xFFFFA0, boxWidth);
DrawingArea.fillPixels(xPos, boxWidth, boxHeight, 0, yPos);
String s2 = class9_1.disabledMessage;
for (int j11 = yPos + textDrawingArea_2.anInt1497 + 2; s2.length() > 0; j11 += textDrawingArea_2.anInt1497 + 1) {//anInt1497
int l11 = s2.indexOf("\\n");
String s5;
if (l11 != -1) {
s5 = s2.substring(0, l11);
s2 = s2.substring(l11 + 2);
} else {
s5 = s2;
s2 = "";
}
textDrawingArea_2.method389(false, xPos + 3, 0, s5, j11);
}
Compile after.
Last edited by Jagge on Sat Mar 24, 2012 1:51 pm; edited 4 times in total
Jagge- Mithril Member
- Posts : 31
Points : 4521
Join date : 2012-03-01
Re: Xp interface bug fix
Thank's we appriciate it, and also. bink said on skype "it was sweet of him" haha:-). Good job man
ciftci cent- Server Moderator
- Posts : 14
Points : 4439
Join date : 2012-03-17
Re: Xp interface bug fix
Ive set this Global Announcement...this is something that everyone needs to see
Maybe also uploading this version...just because for some people it doesnt like to work for them
Maybe also uploading this version...just because for some people it doesnt like to work for them
Last edited by D3GG3RZ on Fri Mar 23, 2012 10:46 am; edited 1 time in total
Re: Xp interface bug fix
D3GG3RZ wrote:Set as Global Announcement...this is something that everyone needs to see
Maybe also uploading this version...just because for some people it doesnt like to work for them
I can upload client with this added, but I want to see Bink's permission to do it first.
Jagge- Mithril Member
- Posts : 31
Points : 4521
Join date : 2012-03-01
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|