aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/config
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
commiteb5a87defb71ef174501d4092d7885f39a48bc77 (patch)
tree197a6894fcfee9146c0b913f97f924638421d0aa /src/main/kotlin/com/dulkirfabric/config
parent41832da25f9aa5cb37fee870752e64e5a9057c17 (diff)
downloadDulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.gz
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.bz2
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.zip
config screen stuff
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/config')
-rw-r--r--src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
index 14c8c29..8e0be9e 100644
--- a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
+++ b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
@@ -13,6 +13,7 @@
package com.dulkirfabric.config
+import com.dulkirfabric.DulkirModFabric.mc
import me.shedaniel.clothconfig2.api.ConfigBuilder
import me.shedaniel.clothconfig2.api.Modifier
import me.shedaniel.clothconfig2.api.ModifierKeyCode
@@ -25,24 +26,18 @@ import net.minecraft.text.Text
import net.minecraft.util.Formatting
import net.minecraft.util.Identifier
-object DulkirConfig {
+class DulkirConfig {
private val buttonText: Text =
MutableText.of(LiteralTextContent("Dulkir")).formatted(Formatting.BOLD, Formatting.YELLOW)
var screen: Screen
init {
- /*val builder = ConfigBuilder.create()
- .setParentScreen(mc.currentScreen)
- .setTitle(buttonText)
- val entryBuilder = builder.entryBuilder()
-
- val general = builder.getOrCreateCategory(Text.of("General"))
- val someSetting = general.addEntry(entryBuilder.)*/
val builder = ConfigBuilder.create().setTitle(buttonText)
builder.setDefaultBackgroundTexture(Identifier("minecraft:textures/block/oak_planks.png"))
builder.setGlobalized(true)
builder.setGlobalizedExpanded(true)
+ builder.setParentScreen(mc.currentScreen)
val entryBuilder = builder.entryBuilder()
val testing = builder.getOrCreateCategory(Text.translatable("category.cloth-config.testing"))
testing.addEntry(