Skip to content

Gui - #1

Merged
Flapjacck merged 4 commits into
mainfrom
gui
Oct 15, 2026
Merged

Gui#1
Flapjacck merged 4 commits into
mainfrom
gui

Conversation

@Flapjacck

Copy link
Copy Markdown
Owner

This pull request adds a new in-game settings GUI for the Swing mod, allowing users to configure swing speed and held item scale live without editing code. It introduces a /swing client command to open the panel, persists settings to a config file, and updates documentation to reflect these changes. The most important changes are:

User-facing features:

  • Added a new in-game settings screen (SwingSettingsScreen) with sliders and number boxes for adjusting swing speed and held item scale, accessible via the /swing command. Changes apply live and can be saved or reset to vanilla defaults. [1] [2]
  • Updated the README.md to describe the new in-game settings panel and usage, replacing the previous manual code-editing approach.

Configuration and persistence:

  • Refactored ItemTweaksConfig to support live updating of tweak values, added clamping and reset-to-default logic, and implemented loading/saving of settings to config/swing.json using Gson.
  • Modified client initialization (ItemTweaksClient) to load settings at startup and register the new /swing command.

@Flapjacck
Flapjacck merged commit f0e8b0d into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant