media_te6h

Make me a gui using this image do not add other stuff add only tab and test button, slider, section, toggle, dropdown, row

1 image attached
Kodari AI
KodariOct 13 at 8:42 am 3
TabbedGuiTestKit
A Minecraft Fabric mod for version 1.21.11 that creates a GUI testing interface with a tab system. The interface includes a test button, adjustable slider, collapsible section, toggle switch, dropdown selector, and row layout container. All elements are organized within a single tab view, providing developers a clean sandbox environment to preview and interact with various UI components during mod development.
  1. Build a Fabric 1.21.11 client mod entry point and a key to open the GUI.

  2. Create an owo-ui screen styled after the reference, containing only a tab, test button, slider, section, toggle, dropdown, and row.

  3. Add the required mod metadata and owo-lib bundle manifest.

Created the Fabric 1.21.11 project with a screenshot-inspired owo-ui panel: one tab, an AntiBot section, toggle, slider, mode dropdown, row, and Test button. Press Right Shift to open it; the dropdown offers Hypixel, Matrix, and Vanilla.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 265
src/client/java/dev/kodari/refpanel/ReferencePanelClient.java
package dev.kodari.refpanel;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.util.Identifier;

public class ReferencePanelClient implements ClientModInitializer {
    private static final String MOD_ID = "refpanel";
    private static final KeyBinding OPEN_PANEL = KeyBindingHelper.registerKeyBinding(
            new KeyBinding(
                    "key.refpanel.open",
                    InputUtil.Type.KEYSYM,
                    344,
                    KeyBinding.Category.create(Identifier.of(MOD_ID, "panel"))
            )
    );

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (OPEN_PANEL.wasPressed()) {
                client.setScreen(new ReferencePanelScreen());
            }
        });
    }
}