From 2a1631dadfc0f78eb3b7768f9bca3f9fa1ea619e Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 4 Jun 2025 01:06:51 +0200 Subject: feat: Add basic combo buttons (without editor for now) --- src/main/kotlin/features/macros/HotkeyAction.kt | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/main/kotlin/features/macros/HotkeyAction.kt (limited to 'src/main/kotlin/features/macros/HotkeyAction.kt') diff --git a/src/main/kotlin/features/macros/HotkeyAction.kt b/src/main/kotlin/features/macros/HotkeyAction.kt new file mode 100644 index 0000000..51c1baa --- /dev/null +++ b/src/main/kotlin/features/macros/HotkeyAction.kt @@ -0,0 +1,35 @@ +package moe.nea.firmament.features.macros + +import net.minecraft.text.Text +import moe.nea.firmament.util.MC + +interface HotkeyAction { + // TODO: execute + val label: Text + fun execute() +} + +data class CommandAction(val command: String) : HotkeyAction { + override val label: Text + get() = Text.literal("/$command") + + override fun execute() { + MC.sendCommand(command) + } +} + +// Mit onscreen anzeige: +// F -> 1 /equipment +// F -> 2 /wardrobe +// Bei Combos: Keys buffern! (für wardrobe hotkeys beispielsweiße) + +// Radial menu +// Hold F +// Weight (mach eins doppelt so groß) +// /equipment +// /wardrobe + +// Bei allen: Filter! +// - Nur in Dungeons / andere Insel +// - Nur wenn ich Item X im inventar habe (fishing rod) + -- cgit