Skip to content

Creating plugin config panels

Jack edited this page Apr 7, 2018 · 1 revision

Config options are expressed by using @ConfigItem annotations within a subclass of Config.

In this example, a method with boolean return type will create a checkbox in its associated config panel, which will be checked by default:

@ConfigItem(keyName = "uniqueKey", name = "Display text", description = "Hover text")
default boolean myCheckbox()
    return true;

Now you can @Inject YourConfigClass config elsewhere and call config.myCheckbox() to obtain its current value. RuneLite stores the config settings automatically. Several input widgets are supported for specific types:


Somebody write this page properly!

Table of Contents

Clone this wiki locally
You can’t perform that action at this time.