diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2021-12-23 16:50:27 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2021-12-23 16:50:27 +0700 |
commit | 1cd878614130057e61e085e7ef791629b1ca9cbe (patch) | |
tree | 24bdb1065523c3feda507452a658569ad7c38b52 /src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt | |
parent | de0341400abcfca65afe5d65053ab520aa20844c (diff) | |
download | Chatting-1cd878614130057e61e085e7ef791629b1ca9cbe.tar.gz Chatting-1cd878614130057e61e085e7ef791629b1ca9cbe.tar.bz2 Chatting-1cd878614130057e61e085e7ef791629b1ca9cbe.zip |
chat shortcuts gui + tab autocomplete for shortcuts
Diffstat (limited to 'src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt')
-rw-r--r-- | src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt b/src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt index 905f847..8841700 100644 --- a/src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt +++ b/src/main/kotlin/com/raeids/stratus/config/StratusConfig.kt @@ -1,6 +1,7 @@ package com.raeids.stratus.config import com.raeids.stratus.Stratus +import com.raeids.stratus.gui.ChatShortcutViewGui import com.raeids.stratus.hook.ChatTab import com.raeids.stratus.hook.ChatTabs import com.raeids.stratus.updater.DownloadGui @@ -39,7 +40,7 @@ object StratusConfig : Vigilant(File(Stratus.modDir, "${Stratus.ID}.toml"), Stra @Property( type = PropertyType.SWITCH, - name = "Enable Only on Hypixel", + name = "Enable Tabs Only on Hypixel", description = "Enable chat tabs only in Hypixel.", category = "Tabs" ) @@ -47,6 +48,40 @@ object StratusConfig : Vigilant(File(Stratus.modDir, "${Stratus.ID}.toml"), Stra @Property( type = PropertyType.SWITCH, + name = "Chat Shortcuts", + description = "Add chat shortcuts.", + category = "Shortcuts" + ) + var chatShortcuts = false + get() { + if (!field) return false + return if (hypixelOnlyChatShortcuts) { + EssentialAPI.getMinecraftUtil().isHypixel() + } else { + true + } + } + + @Property( + type = PropertyType.SWITCH, + name = "Enable Shortcuts Only on Hypixel", + description = "Enable chat shortcuts only in Hypixel.", + category = "Shortcuts" + ) + var hypixelOnlyChatShortcuts = true + + @Property( + type = PropertyType.BUTTON, + name = "Edit Chat Shortcuts", + description = "Edit chat shortcuts.", + category = "Shortcuts" + ) + fun openChatShortcutsGUI() { + EssentialAPI.getGuiUtil().openScreen(ChatShortcutViewGui()) + } + + @Property( + type = PropertyType.SWITCH, name = "Show Update Notification", description = "Show a notification when you start Minecraft informing you of new updates.", category = "Updater" |