Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Label element #5075

Closed
2 tasks done
Kyuunex opened this issue Dec 31, 2024 · 2 comments
Closed
2 tasks done

[Feature Request] Label element #5075

Kyuunex opened this issue Dec 31, 2024 · 2 comments
Labels
enhancement New feature or request.

Comments

@Kyuunex
Copy link

Kyuunex commented Dec 31, 2024

Describe the feature

I want a Label element that I can use in my custom addons. Something like the following example

private Label<String> processID = sgInfo.add(new StringLabel.Builder()
    .name("process-id")
    .description("PID for the worker")
    .Value(something.something.get())
    .build()
);

It should also update on the fly when this happens somewhere else

processID.set(something.something.get())

I currently use Setting<String> for this and it does not update on the fly, need to reopen the module menu.

Before submitting a suggestion

  • This feature doesn't already exist in the client. (I have checked every module and their settings on the latest dev build)

  • This wasn't already suggested. (I have searched suggestions on GitHub and read the FAQ)

@Kyuunex Kyuunex added the enhancement New feature or request. label Dec 31, 2024
@Kyuunex
Copy link
Author

Kyuunex commented Jan 1, 2025

One thing to add, a hud element or chat feedback won't suffice for displaying what i intend, as they only work while in-game, and in my particular scenario, the module runs while in main menu.

@MineGame159
Copy link
Member

You can override the Module.getWidget() method to add any custom UI you want. Look at some places where it is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants