Universal warning message support in config

Add support for warning message for any config type to ConfigPanel.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-04-08 19:38:19 +02:00
parent f236812e80
commit 38f2a58ec7
3 changed files with 23 additions and 32 deletions

View File

@@ -58,9 +58,7 @@ public interface RuneLiteConfig extends Config
keyName = "uiEnableCustomChrome",
name = "Enable custom window chrome",
description = "Use Runelite's custom window title and borders.",
confirmationWarining = "Please restart your client after changing this setting",
warnOnEnable = true,
warnOnDisable = true
warning = "Please restart your client after changing this setting"
)
default boolean enableCustomChrome()
{