aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/config')
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt13
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/LedgerConfig.kt35
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/MainOptions.kt27
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/SynchronizationOptions.kt11
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/UpdateUi.kt17
-rw-r--r--src/main/kotlin/moe/nea/ledger/config/UpdateUiMarker.kt6
6 files changed, 0 insertions, 109 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt b/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt
deleted file mode 100644
index fd5ed3d..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/DebugOptions.kt
+++ /dev/null
@@ -1,13 +0,0 @@
-package moe.nea.ledger.config
-
-import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean
-import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
-
-class DebugOptions {
- @ConfigOption(name = "Log entries to chat",
- desc = "Appends all logged entries into the chat as they are logged. This option does not persist on restarts.")
- @Transient
- @ConfigEditorBoolean
- @JvmField
- var logEntries = false
-}
diff --git a/src/main/kotlin/moe/nea/ledger/config/LedgerConfig.kt b/src/main/kotlin/moe/nea/ledger/config/LedgerConfig.kt
deleted file mode 100644
index 91ee5c1..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/LedgerConfig.kt
+++ /dev/null
@@ -1,35 +0,0 @@
-package moe.nea.ledger.config
-
-import io.github.notenoughupdates.moulconfig.Config
-import io.github.notenoughupdates.moulconfig.DescriptionRendereringBehaviour
-import io.github.notenoughupdates.moulconfig.annotations.Category
-import io.github.notenoughupdates.moulconfig.processor.ProcessedOption
-import moe.nea.ledger.Ledger
-
-class LedgerConfig : Config() {
- override fun getTitle(): String {
- return "§6Ledger §7- §6Hypixel SkyBlock data logger §7by §anea89o"
- }
-
- override fun saveNow() {
- super.saveNow()
- Ledger.managedConfig.saveToFile()
- }
-
- override fun getDescriptionBehaviour(option: ProcessedOption?): DescriptionRendereringBehaviour {
- return DescriptionRendereringBehaviour.EXPAND_PANEL
- }
-
- @Category(name = "Ledger", desc = "")
- @JvmField
- val main = MainOptions()
-
- @Category(name = "Synchronization", desc = "")
- @JvmField
- val synchronization = SynchronizationOptions()
-
- @Category(name = "Debug", desc = "")
- @JvmField
- val debug = DebugOptions()
-
-} \ No newline at end of file
diff --git a/src/main/kotlin/moe/nea/ledger/config/MainOptions.kt b/src/main/kotlin/moe/nea/ledger/config/MainOptions.kt
deleted file mode 100644
index 1efa970..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/MainOptions.kt
+++ /dev/null
@@ -1,27 +0,0 @@
-package moe.nea.ledger.config
-
-import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown
-import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
-
-class MainOptions {
- @ConfigOption(name = "Marker for Update UI", desc = "_")
- @JvmField
- @UpdateUiMarker
- @Transient
- var testOption = Unit
-
- @ConfigOption(name = "Check for Updates", desc = "Automatically check for updates on startup")
- @ConfigEditorDropdown
- @JvmField
- var updateCheck = UpdateCheckBehaviour.SEMI
-
- enum class UpdateCheckBehaviour(val label: String) {
- SEMI("Semi-Automatic"),
- FULL("Full-Automatic"),
- NONE("Don't check");
-
- override fun toString(): String {
- return label
- }
- }
-}
diff --git a/src/main/kotlin/moe/nea/ledger/config/SynchronizationOptions.kt b/src/main/kotlin/moe/nea/ledger/config/SynchronizationOptions.kt
deleted file mode 100644
index b8c740b..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/SynchronizationOptions.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package moe.nea.ledger.config
-
-import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean
-import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
-
-class SynchronizationOptions {
- @ConfigOption(name = "Test Option", desc = "Test Description")
- @ConfigEditorBoolean
- @JvmField
- var testOption = false
-} \ No newline at end of file
diff --git a/src/main/kotlin/moe/nea/ledger/config/UpdateUi.kt b/src/main/kotlin/moe/nea/ledger/config/UpdateUi.kt
deleted file mode 100644
index 86ccbf7..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/UpdateUi.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package moe.nea.ledger.config
-
-import io.github.notenoughupdates.moulconfig.gui.GuiComponent
-import io.github.notenoughupdates.moulconfig.gui.component.TextComponent
-import io.github.notenoughupdates.moulconfig.gui.editors.ComponentEditor
-import io.github.notenoughupdates.moulconfig.processor.ProcessedOption
-import moe.nea.ledger.Ledger
-
-class UpdateUi(option: ProcessedOption) : ComponentEditor(option) {
- val delegate by lazy {// TODO
- TextComponent("Hier könnte ihre werbung stehen")
- }
-
- override fun getDelegate(): GuiComponent {
- return delegate
- }
-} \ No newline at end of file
diff --git a/src/main/kotlin/moe/nea/ledger/config/UpdateUiMarker.kt b/src/main/kotlin/moe/nea/ledger/config/UpdateUiMarker.kt
deleted file mode 100644
index 7a0466a..0000000
--- a/src/main/kotlin/moe/nea/ledger/config/UpdateUiMarker.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package moe.nea.ledger.config
-
-@Retention(AnnotationRetention.RUNTIME)
-@Target(AnnotationTarget.FIELD)
-annotation class UpdateUiMarker {
-} \ No newline at end of file