Commit c6c4841c authored by Marwolf's avatar Marwolf 💬

Prevents zoom while onlinelist interface is open

parent 33dec838
......@@ -80,7 +80,7 @@ public class InputImpl implements OnGestureListener, OnKeyListener, OnTouchListe
lastScrollOrRotate = System.currentTimeMillis();
if (mudclient.auctionHouse.isVisible() || mudclient.messageTabSelected != MessageTab.ALL)
if (mudclient.auctionHouse.isVisible() || mudclient.onlineList.isVisible() || mudclient.messageTabSelected != MessageTab.ALL)
return false;
if (mudclient.showUiTab == 0) {
......
......@@ -648,7 +648,7 @@ public final class mudclient implements Runnable {
private int flag = 0;
private Timer tiktok = new Timer();
private NComponent mainComponent;
private OnlineListInterface onlineList;
public OnlineListInterface onlineList;
private NCustomComponent experienceOverlay;
private ProgressBarInterface batchProgressBar;
private BankPinInterface bankPinInterface;
......
......@@ -375,7 +375,7 @@ public class ORSCApplet extends Applet implements MouseListener, MouseMotionList
public final synchronized void mouseWheelMoved(MouseWheelEvent e) {
updateControlShiftState(e);
mudclient.runScroll(e.getWheelRotation());
if (mudclient.auctionHouse.isVisible() || mudclient.messageTabSelected != MessageTab.ALL)
if (mudclient.auctionHouse.isVisible() || mudclient.onlineList.isVisible() || mudclient.messageTabSelected != MessageTab.ALL) // disables zoom while visible
return;
if (mudclient.showUiTab == 0 && (S_ZOOM_VIEW_TOGGLE || mudclient.getLocalPlayer().isStaff())) {
e.consume();
......
......@@ -648,7 +648,7 @@ public final class mudclient implements Runnable {
private int flag = 0;
private Timer tiktok = new Timer();
private NComponent mainComponent;
private OnlineListInterface onlineList;
public OnlineListInterface onlineList;
private NCustomComponent experienceOverlay;
private ProgressBarInterface batchProgressBar;
private BankPinInterface bankPinInterface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment