mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 11:30:19 -07:00
Update to allow plugin metadata definition from annotations and load other classes in same folder as plugin.class.
This commit is contained in:
parent
9750195081
commit
3e12a9115d
15 changed files with 122 additions and 68 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package InterfaceDebugPlugin;
|
||||
|
||||
import plugin.Plugin;
|
||||
import plugin.annotations.PluginMeta;
|
||||
import plugin.api.*;
|
||||
import rt4.Component;
|
||||
import rt4.GameShell;
|
||||
|
|
@ -8,6 +9,11 @@ import rt4.GameShell;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Aids in identifying interface components/varps/model IDs.",
|
||||
version = 1.2
|
||||
)
|
||||
public class plugin extends Plugin {
|
||||
private boolean isEnabled;
|
||||
private boolean isVerbose;
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Enables visual display of component children and a log of interface-related varps.'
|
||||
VERSION=1.1
|
||||
|
|
@ -1,12 +1,15 @@
|
|||
package OverheadDebugPlugin;
|
||||
|
||||
import plugin.Plugin;
|
||||
import plugin.annotations.PluginMeta;
|
||||
import plugin.api.*;
|
||||
import rt4.*;
|
||||
|
||||
/**
|
||||
* @author ceikry
|
||||
*/
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Draws helpful overhead debug information.",
|
||||
version = 1.3
|
||||
)
|
||||
public class plugin extends Plugin {
|
||||
private boolean isEnabled = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
AUTHOR="Ceikry"
|
||||
DESCRIPTION="Renders helpful debug text over the heads of players and NPCs."
|
||||
VERSION=1.0
|
||||
|
|
@ -1,12 +1,18 @@
|
|||
package VarpLogPlugin;
|
||||
|
||||
import plugin.Plugin;
|
||||
import plugin.annotations.PluginMeta;
|
||||
import plugin.api.*;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Adds a simple log of varp changes drawn directly to the screen.",
|
||||
version = 1.0
|
||||
)
|
||||
public class plugin extends Plugin {
|
||||
boolean isEnabled = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Draws some info about varp changes on the screen.'
|
||||
VERSION=1.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue