mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-23 03:15:14 -06:00
Added toggle resizeable SD plugin
This also fixes two CMEs, very cool.
This commit is contained in:
parent
1a62b1775a
commit
47df7bd3d3
3 changed files with 59 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue