upstream keyboard bankpin, enforce dev mode
This commit is contained in:
@@ -1023,6 +1023,7 @@ public interface Widget
|
||||
|
||||
static boolean getDragParent(Widget widget)
|
||||
{
|
||||
throw new UnsupportedOperationException("Implement");
|
||||
System.out.println("ERROR: IMPLEMENT"); //Would throw but that breaks widget inspector
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -260,7 +260,7 @@ public class RuneLite
|
||||
ClassPreloader.preload();
|
||||
}, "Preloader").start();
|
||||
|
||||
final boolean developerMode = options.has("developer-mode") && RuneLiteProperties.getLauncherVersion() == null;
|
||||
final boolean developerMode = true;
|
||||
|
||||
if (developerMode)
|
||||
{
|
||||
|
||||
@@ -590,6 +590,19 @@ public abstract class RSClientMixin implements RSClient
|
||||
return getWidget(groupId, childId);
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public Widget getWidget(int id)
|
||||
{
|
||||
for (WidgetInfo widgetInfo : WidgetInfo.values())
|
||||
{
|
||||
if (widgetInfo.getId() == id)
|
||||
return getWidget(widgetInfo);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public RSWidget[] getGroup(int groupId)
|
||||
@@ -1968,11 +1981,5 @@ public abstract class RSClientMixin implements RSClient
|
||||
{
|
||||
return this.outdatedScripts;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Widget getWidget(int i)
|
||||
{
|
||||
return getWidget(i, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user