Clean up code a bit more
This commit is contained in:
@@ -41,7 +41,7 @@ class Menu : Screen(Text.literal("SciFy Menu")) {
|
|||||||
.tooltip(Tooltip.of(Text.literal("Health bar similar to XP")))
|
.tooltip(Tooltip.of(Text.literal("Health bar similar to XP")))
|
||||||
.build()
|
.build()
|
||||||
fishingNotif = ButtonWidget.builder(Text.literal("Fishing Notifications")) {
|
fishingNotif = ButtonWidget.builder(Text.literal("Fishing Notifications")) {
|
||||||
FishingNotif().toggleFishingNotif() // If toggleFishingNotif() is true, run the fishing notification script.
|
FishingNotif().toggleFishingNotif() // Call the function toggleFishingNotif() from the FishingNotif.kt module
|
||||||
}
|
}
|
||||||
.dimensions(width / 2 + 5, 84, 200, 20)
|
.dimensions(width / 2 + 5, 84, 200, 20)
|
||||||
.tooltip(Tooltip.of(Text.literal("Fishing Notifications")))
|
.tooltip(Tooltip.of(Text.literal("Fishing Notifications")))
|
||||||
@@ -53,13 +53,13 @@ class Menu : Screen(Text.literal("SciFy Menu")) {
|
|||||||
.tooltip(Tooltip.of(Text.literal("Enable/Disable hotkeys.")))
|
.tooltip(Tooltip.of(Text.literal("Enable/Disable hotkeys.")))
|
||||||
.build()
|
.build()
|
||||||
autoWelcome = ButtonWidget.builder(Text.literal("Auto-Welcome")) {
|
autoWelcome = ButtonWidget.builder(Text.literal("Auto-Welcome")) {
|
||||||
AutoWelcome().toggleAutoWelcome() // Call the function toggleAutoWelcome() from the fishingnotif.kt module
|
AutoWelcome().toggleAutoWelcome() // Call the function toggleAutoWelcome() from the AutoWelcome.kt module
|
||||||
}
|
}
|
||||||
.dimensions(width / 2 - 205, 124, 200, 20)
|
.dimensions(width / 2 - 205, 124, 200, 20)
|
||||||
.tooltip(Tooltip.of(Text.literal("Automatically welcomes new players.")))
|
.tooltip(Tooltip.of(Text.literal("Automatically welcomes new players.")))
|
||||||
.build()
|
.build()
|
||||||
livelyMode = ButtonWidget.builder(Text.literal("City NPCs (Lively Mode)")) {
|
livelyMode = ButtonWidget.builder(Text.literal("City NPCs (Lively Mode)")) {
|
||||||
FishingNotif().toggleFishingNotif() // Call the function toggleFishingNotif() from the fishingnotif.kt module
|
LivelyMode().toggleLivelyMode() // Call the function toggleLivelyMode() from the LivelyMode.kt module
|
||||||
}
|
}
|
||||||
.dimensions(width / 2 - 205, 164, 200, 20)
|
.dimensions(width / 2 - 205, 164, 200, 20)
|
||||||
.tooltip(Tooltip.of(Text.literal("Replaces Villagers with player NPCs")))
|
.tooltip(Tooltip.of(Text.literal("Replaces Villagers with player NPCs")))
|
||||||
|
|||||||
Reference in New Issue
Block a user