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

feat: Add custom names for info boxes and custom bars [skip ci] #2480

Merged
merged 1 commit into from
May 11, 2024

Conversation

ShadowCat117
Copy link
Contributor

This is another feature that is in #2335 but does not rely on textures at all so may as well release it separately.
Settings
OverlaySelection
OverlayManagement

public abstract class CustomBarOverlayBase extends BarOverlay {
public abstract class CustomBarOverlayBase extends BarOverlay implements CustomNameProperty {
@Persisted(i18nKey = "feature.wynntils.customBarsOverlay.overlay.customBarBase.customName")
public final Config<String> customName = new Config<>("");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe custom overlay name / overlay name fits better? I assume there would be an UI element for changing this, and the config would be hidden then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a need for it to be a hiddenconfig with a seperate ui element? Having it as a regular string config seems fine to me as it's with all of the other configs for overlays

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. I guess we can discuss that when we get to that. But we are going to have separate UI to change this, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not following, why does this need a seperate ui?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine the reworked setting screen would allow the custom name to be changed, in some way. Like double clicking to edit the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I suppose it could be done that way instead. If you think that's the best way to do it then I'll close this pr and take the overlay selection/management redesigns and make a new pr with those and include it in there as those textures are mostly fine

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge this as is now, and you can do the change when you do that PR. How does that sound?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works

@kristofbolyai kristofbolyai merged commit d6836c6 into Wynntils:main May 11, 2024
1 check passed
@ShadowCat117 ShadowCat117 deleted the custom-names branch May 12, 2024 17:16
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.

None yet

2 participants