Major client code cleanup

This commit is contained in:
Woah 2021-03-24 15:51:22 -04:00
parent 3d910c97a1
commit 499abd7009
235 changed files with 29482 additions and 29717 deletions

View file

@ -1,49 +1,48 @@
package org.runite.client;
import java.awt.Component;
import java.awt.*;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
final class MouseWheel extends Class146 implements MouseWheelListener {
private int anInt2941 = 0;
static int moveAmt = 0;
static int moveAmt = 0;
static boolean shiftDown = false;
static boolean ctrlDown = false;
private int anInt2941 = 0;
static boolean shiftDown = false;
static boolean ctrlDown = false;
final void method2082(Component var2) {
var2.removeMouseWheelListener(this);
}
final void method2082(Component var2) {
final synchronized int method2078() {
int var2 = this.anInt2941;
this.anInt2941 = 0;
var2.removeMouseWheelListener(this);
}
return var2;
}
final synchronized int method2078() {
int var2 = this.anInt2941;
this.anInt2941 = 0;
public final synchronized void mouseWheelMoved(MouseWheelEvent var1) {
this.anInt2941 += var1.getWheelRotation();
moveAmt = var1.getWheelRotation();
return var2;
}
// Client scroll
if (shiftDown || ctrlDown) {
if ((Client.ZOOM > 1200 && MouseWheel.moveAmt >= 0) || (Client.ZOOM < 100 && MouseWheel.moveAmt <= 0)) {
//Class3_Sub28_Sub12.sendMessage("<col=CC0000>You cannot zoom any further than this.");
return;
}
Client.ZOOM += MouseWheel.moveAmt >= 0 ? 50 : -50;
//Class3_Sub28_Sub12.sendMessage("Game client is back to default zoom.");
}
public final synchronized void mouseWheelMoved(MouseWheelEvent var1) {
this.anInt2941 += var1.getWheelRotation();
moveAmt = var1.getWheelRotation();
}
// Client scroll
if(shiftDown || ctrlDown){
if((Client.ZOOM > 1200 && MouseWheel.moveAmt >= 0) || (Client.ZOOM < 100 && MouseWheel.moveAmt <= 0)){
//Class3_Sub28_Sub12.sendMessage("<col=CC0000>You cannot zoom any further than this.");
return;
}
Client.ZOOM += MouseWheel.moveAmt >= 0 ? 50 : -50;
//Class3_Sub28_Sub12.sendMessage("Game client is back to default zoom.");
}
}
final void method2084(Component var1, int var2) {
if(var2 < -70) {
var1.addMouseWheelListener(this);
}
}
final void method2084(Component var1, int var2) {
if (var2 < -70) {
var1.addMouseWheelListener(this);
}
}
}