Added toggle resizeable SD plugin

This also fixes two CMEs, very cool.
This commit is contained in:
ipkpjersi 2024-06-17 20:46:48 -04:00
parent 1a62b1775a
commit 47df7bd3d3
3 changed files with 59 additions and 17 deletions

View file

@ -99,7 +99,6 @@ public class Cheat {
@OriginalMember(owner = "client!jg", name = "e", descriptor = "Z")
public static boolean qaOpTest = false;
public static final JagString RELOADPLUGINS = JagString.parse("::reloadplugins");
public static final JagString USERESIZABLESD = JagString.parse("::resizablesd");
@OriginalMember(owner = "client!en", name = "a", descriptor = "(IIIB)V")
public static void teleport(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2) {
@ -232,16 +231,6 @@ public class Cheat {
shiftClick = true;
}
}
if(arg0.equalsIgnoreCase(USERESIZABLESD)){
DisplayMode.resizableSD = !DisplayMode.resizableSD;
if(!DisplayMode.resizableSD){
// Revert to fixed
DisplayMode.setWindowMode(true, 0, -1, -1);
} else {
// use resizable
DisplayMode.setWindowMode(true, 0, GameShell.frameWidth, GameShell.frameHeight);
}
}
if (arg0.equalsIgnoreCase(RELOADPLUGINS)) {
PluginRepository.reloadPlugins();