Update to allow plugin metadata definition from annotations and load other classes in same folder as plugin.class.

This commit is contained in:
ceikry 2022-07-16 10:12:27 -05:00 committed by Ceikry
parent 9750195081
commit 3e12a9115d
15 changed files with 122 additions and 68 deletions

View file

@ -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;

View file

@ -1,3 +0,0 @@
AUTHOR='Ceikry'
DESCRIPTION='Enables visual display of component children and a log of interface-related varps.'
VERSION=1.1

View file

@ -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;

View file

@ -1,3 +0,0 @@
AUTHOR="Ceikry"
DESCRIPTION="Renders helpful debug text over the heads of players and NPCs."
VERSION=1.0

View file

@ -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;

View file

@ -1,3 +0,0 @@
AUTHOR='Ceikry'
DESCRIPTION='Draws some info about varp changes on the screen.'
VERSION=1.0