mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
Switch back over to using flat-file plugin info, auto-copy properties files in gradle
This commit is contained in:
parent
dd52e7e9fb
commit
029c13233f
33 changed files with 70 additions and 85 deletions
|
|
@ -103,11 +103,16 @@ public class PluginRepository {
|
|||
|
||||
Class<?> clazz = loader.loadClass(file.getName() + ".plugin");
|
||||
|
||||
PluginInfo info;
|
||||
PluginInfo info = null;
|
||||
try {
|
||||
if (infoFile.exists())
|
||||
info = PluginInfo.loadFromFile(infoFile);
|
||||
else
|
||||
info = PluginInfo.loadFromClass(clazz);
|
||||
} catch (Exception e) {
|
||||
System.err.println("Unable to load plugin " + file.getName() + " because there were issues parsing its info: ");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (info == null) {
|
||||
System.err.println("Unable to load plugin " + file.getName() + " because it contains no information about author, version, etc!");
|
||||
|
|
|
|||
|
|
@ -98,8 +98,16 @@ class plugin : Plugin() {
|
|||
|
||||
task buildPlugins(type: Copy, dependsOn: classes) {
|
||||
def pluginsPath = rootProject.project("client").projectDir.absolutePath + File.separator + "plugins"
|
||||
from "build/classes/java/main"
|
||||
copy {
|
||||
from(layout.projectDirectory.dir("src/main/java"))
|
||||
from (layout.projectDirectory.dir("src/main/kotlin"))
|
||||
include("**/*.properties")
|
||||
into pluginsPath
|
||||
}
|
||||
|
||||
copy {
|
||||
from "build/classes/java/main"
|
||||
from "build/classes/kotlin/main"
|
||||
into pluginsPath
|
||||
}
|
||||
}
|
||||
|
|
@ -9,11 +9,6 @@ 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;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Aids in identifying interface components/varps/model IDs.'
|
||||
VERSION=1.2
|
||||
|
|
@ -5,11 +5,6 @@ import plugin.annotations.PluginMeta;
|
|||
import plugin.api.*;
|
||||
import rt4.*;
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Draws helpful overhead debug information.",
|
||||
version = 1.3
|
||||
)
|
||||
public class plugin extends Plugin {
|
||||
private boolean isEnabled = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Draws helpful overhead debug information.'
|
||||
VERSION=1.3
|
||||
|
|
@ -8,11 +8,6 @@ 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;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Adds a simple log of varp changes drawn directly to the screen.'
|
||||
VERSION=1.0
|
||||
|
|
@ -10,11 +10,6 @@ import rt4.Keyboard
|
|||
import java.awt.event.KeyAdapter
|
||||
import java.awt.event.KeyEvent
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Provides some QOL for audio, including better settings persistence",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
var isMute = false
|
||||
var lastVolumes: Triple<Int,Int,Int>? = null
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Provides some QOL for audio, including better settings persistence'
|
||||
VERSION=1.0
|
||||
|
|
@ -7,11 +7,6 @@ import rt4.Keyboard
|
|||
import java.awt.event.*
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Provides some basic input QOL like scroll zoom, middle click panning, etc.",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
private var cameraDebugEnabled = false
|
||||
private var mouseDebugEnabled = false
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Provides some basic input QOL like scroll zoom, middle click panning, etc.'
|
||||
VERSION=1.0
|
||||
|
|
@ -7,11 +7,6 @@ import plugin.api.MiniMenuEntry
|
|||
import rt4.Cheat
|
||||
import rt4.Keyboard
|
||||
|
||||
@PluginMeta(
|
||||
author = "bushtail",
|
||||
description = "Better dropping and destroying while holding shift. Use ::bsd command to toggle. If for some reason after installing the plugin, Better Shift Drop does not activate, run the command to activate it.",
|
||||
version = 2.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
override fun Init() {
|
||||
if(API.GetData("bsd-toggle") == null) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='bushtail'
|
||||
DESCRIPTION='Better dropping and destroying while holding shift. Use ::bsd command to toggle. If for some reason after installing the plugin, Better Shift Drop does not activate, run the command to activate it.'
|
||||
VERSION=2.0
|
||||
|
|
@ -10,11 +10,6 @@ import rt4.Fonts
|
|||
import rt4.Player
|
||||
import java.awt.Color
|
||||
|
||||
@PluginMeta(
|
||||
author = "bushtail",
|
||||
description = "Add nameplates above players heads.",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
override fun PlayerOverheadDraw(player: Player?, screenX: Int, screenY: Int) {
|
||||
if (player == null) return
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='bushtail'
|
||||
DESCRIPTION='Add nameplates above players heads.'
|
||||
VERSION=1.0
|
||||
|
|
@ -6,11 +6,6 @@ import plugin.api.API
|
|||
import java.awt.event.KeyAdapter
|
||||
import java.awt.event.KeyEvent
|
||||
|
||||
@PluginMeta (
|
||||
author = "Chisato",
|
||||
description = "Allows you to use ESC in order to (safety) close the open interface/dialogue.",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
override fun Init() {
|
||||
API.AddKeyboardListener(object : KeyAdapter() {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Chisato'
|
||||
DESCRIPTION='Allows you to use ESC in order to (safety) close the open interface/dialogue.'
|
||||
VERSION=1.0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='downthecrop'
|
||||
DESCRIPTION='Ground Items Overlay. Just like Runelite!\ncmds ::set(low,med,high,insane,hide), ::(tag,ignore)item ID, ::(reset)groundconfig\nSpecial thanks to Chisato for the original skeleton.'
|
||||
VERSION=1.0
|
||||
|
|
@ -6,12 +6,6 @@ import plugin.api.MiniMenuEntry
|
|||
import plugin.api.MiniMenuType
|
||||
import rt4.ObjTypeList
|
||||
|
||||
@PluginMeta(
|
||||
author = "bushtail",
|
||||
description = "Identify clue scrolls easily",
|
||||
version = 1.0
|
||||
)
|
||||
|
||||
class plugin : Plugin() {
|
||||
override fun DrawMiniMenu(entry: MiniMenuEntry?) {
|
||||
when(entry?.type) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='bushtail'
|
||||
DESCRIPTION='Identify clue scrolls easily'
|
||||
VERSION=1.0
|
||||
|
|
@ -14,11 +14,6 @@ import java.util.concurrent.TimeUnit
|
|||
* Timer/SysTime that goes over the report abuse button
|
||||
* @author Woah
|
||||
*/
|
||||
@PluginMeta(
|
||||
author = "Woahscam, Ceikry",
|
||||
description = "Displays the session time played, system time, or no time over the \"Report Abuse\" button.",
|
||||
version = 1.2
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
|
||||
private val COMPONENT_REPORT_ABUSE = 49217565
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Woahscam, Ceikry'
|
||||
DESCRIPTION='Displays the session time played, system time, or no time over the \"Report Abuse\" button.'
|
||||
VERSION=1.2
|
||||
|
|
@ -8,11 +8,6 @@ import rt4.NpcType
|
|||
import rt4.ObjType
|
||||
import rt4.ObjTypeList
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Provides debug and some basic QOL for the MiniMenu",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
private var debugEnabled = false
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Provides debug and some basic QOL for the MiniMenu'
|
||||
VERSION=1.0
|
||||
|
|
@ -8,11 +8,6 @@ import rt4.JagString
|
|||
import rt4.Player
|
||||
import rt4.client
|
||||
|
||||
@PluginMeta (
|
||||
author = "Ceikry",
|
||||
description = "Stores your last used login for automatic reuse, per server",
|
||||
version = 1.1
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
var hasRan = false
|
||||
var credentials = HashMap<String, HashMap<String, String>>()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Stores your last used login for automatic reuse, per server'
|
||||
VERSION=1.1
|
||||
|
|
@ -10,11 +10,6 @@ import rt4.Sprite
|
|||
import java.awt.Color
|
||||
import java.lang.Exception
|
||||
|
||||
@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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Draws a simple slayer task tracker onto the screen if one is active.'
|
||||
VERSION=1.0
|
||||
|
|
@ -6,11 +6,6 @@ import plugin.api.API
|
|||
import java.awt.event.KeyAdapter
|
||||
import java.awt.event.KeyEvent
|
||||
|
||||
@PluginMeta (
|
||||
author = "Ceikry",
|
||||
description = "Allows you to press tab to reply to DMs.",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
override fun Init() {
|
||||
API.AddKeyboardListener(object : KeyAdapter() {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Allows you to press tab to reply to DMs.'
|
||||
VERSION=1.0
|
||||
|
|
@ -6,11 +6,6 @@ import plugin.api.*
|
|||
import java.awt.Color
|
||||
import kotlin.math.ceil
|
||||
|
||||
@PluginMeta(
|
||||
author = "Ceikry",
|
||||
description = "Draws nice and clean experience drops onto the screen.",
|
||||
version = 1.2
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
private val displayTimeout = 10000L // 10 seconds
|
||||
private val drawStart = 175
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
AUTHOR='Ceikry'
|
||||
DESCRIPTION='Draws nice and clean experience drops onto the screen.'
|
||||
VERSION=1.2
|
||||
Loading…
Add table
Add a link
Reference in a new issue