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 SlayerTrackerPlugin
import plugin.Plugin
import plugin.annotations.PluginMeta
import plugin.api.API
import plugin.api.FontColor
import plugin.api.FontType
@ -9,10 +10,11 @@ import rt4.Sprite
import java.awt.Color
import java.lang.Exception
/**
* Very simple slayer task tracker
* @author Ceikry
*/
@PluginMeta(
author = "Ceikry",
description = "Draws a simple slayer task tracker onto the screen if one is active.",
version = 1.0
)
class plugin : Plugin() {
val boxColor = 6116423
val posX = 5

View file

@ -1,3 +0,0 @@
AUTHOR='Ceikry'
DESCRIPTION='Helps to keep track of kills remaining on a slayer task.'
VERSION=1.1