Originally Posted by
darkaizen
Hey, I tried ripping the RSApplet.java from brutality, because it uses the same base as mine(Perception), and they have a zoom function. But it doesn't zoom. I have added to much to my client to just use the OSBrutality client. I also have an issue with the ores that are manually spawned via the object spawn config, they all are the same color. like rune addy mith are all the copper color. I have the Brutality cache which has that issue fixed, what should i rip from the cache to fix that? thanks
Here is my RSApplet:
https://pastebin.com/S9bBLKSx
Code:
public void mouseWheelMoved(MouseWheelEvent event) {
int rotation = event.getWheelRotation();
handleInterfaceScrolling(event);
if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
int scrollPos = Client.anInt1089;
scrollPos -= rotation * 30;
if(scrollPos < 0) {
scrollPos = 0;
}
if(scrollPos > Client.anInt1211 - 110) {
scrollPos = Client.anInt1211 - 110;
}
if(Client.anInt1089 != scrollPos) {
Client.anInt1089 = scrollPos;
Client.inputTaken = true;
}
}
if (Client.openInterfaceID == -1) {
if (canZoom) {
if (rotation == -1) {
if(mouseX > 0 && mouseX < 512 && mouseY > Configuration.clientHeight - 165 && mouseY < Configuration.clientHeight - 25) {
return;
}
if (Client.cameraZoom > 200) {
Client.cameraZoom -= 50;
}
} else {
if (Client.cameraZoom < 1200) {
Client.cameraZoom += 50;
}
}
}
}
}