Fix runetime errors in dev tools wq
This commit is contained in:
@@ -171,14 +171,6 @@ class VarInspector extends JFrame
|
|||||||
|
|
||||||
pack();
|
pack();
|
||||||
|
|
||||||
addSubscriptions();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addSubscriptions()
|
|
||||||
{
|
|
||||||
eventBus.subscribe(VarbitChanged.class, this, this::onVarbitChanged);
|
|
||||||
eventBus.subscribe(VarClientIntChanged.class, this, this::onVarClientIntChanged);
|
|
||||||
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addVarLog(VarType type, String name, int old, int neew)
|
private void addVarLog(VarType type, String name, int old, int neew)
|
||||||
@@ -355,6 +347,10 @@ class VarInspector extends JFrame
|
|||||||
varcs = new HashMap<>(client.getVarcMap());
|
varcs = new HashMap<>(client.getVarcMap());
|
||||||
|
|
||||||
// eventBus.register(this);
|
// eventBus.register(this);
|
||||||
|
eventBus.subscribe(VarbitChanged.class, this, this::onVarbitChanged);
|
||||||
|
eventBus.subscribe(VarClientIntChanged.class, this, this::onVarClientIntChanged);
|
||||||
|
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
||||||
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
toFront();
|
toFront();
|
||||||
repaint();
|
repaint();
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ class WidgetInspector extends JFrame
|
|||||||
this.config = config;
|
this.config = config;
|
||||||
this.overlay = overlay;
|
this.overlay = overlay;
|
||||||
|
|
||||||
|
eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged);
|
||||||
|
|
||||||
setTitle("RuneLite Widget Inspector");
|
setTitle("RuneLite Widget Inspector");
|
||||||
setIconImage(ClientUI.ICON);
|
setIconImage(ClientUI.ICON);
|
||||||
|
|
||||||
@@ -164,7 +166,6 @@ class WidgetInspector extends JFrame
|
|||||||
|
|
||||||
pack();
|
pack();
|
||||||
|
|
||||||
eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onConfigChanged(ConfigChanged ev)
|
private void onConfigChanged(ConfigChanged ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user