Skip to content

Conversation

@X-C-0
Copy link
Contributor

@X-C-0 X-C-0 commented Jan 20, 2026

Type of change

  • Bug fix
  • New feature

Description

The reset button in HudTab does reset the settings, but did not update the container properly, so the settings stayed visually the same. This also fixes addons not being able to update the settings, for example:

public final Setting<Double> slider = ....

@Override
    public WWidget getWidget(GuiTheme theme) {
        WVerticalList list = theme.verticalList();

        WButton test = list.add(theme.button("Test button")).expandX().widget();
        test.action = () -> {
           slider.set(50.0);
           settings.invalidate(); // <- this is new, and will now actually update the settings visually
        };

        return list;
    }

Related issues

image

How Has This Been Tested?

Fixed video
TestModule before and after

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@Wide-Cat Wide-Cat merged commit 47a4ad5 into MeteorDevelopment:master Jan 21, 2026
1 check passed
@X-C-0 X-C-0 deleted the fix/hud-tab-settings branch January 21, 2026 13:25
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.

2 participants