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

Let configs define indicator elements that get shown but can't be edited and don't get saved #59

Open
Banane9 opened this issue Aug 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Banane9
Copy link
Member

Banane9 commented Aug 4, 2024

Basically a dedicated way to add a DataFeedIndicator<T> (where T is string exclusively, afaik) to the pages.

Of course, these should update automatically whenever their underlaying value changes if they are linked to a config key.
This part could be done with a component as well, perhaps, that passes through the update event and has a ToString func to generate the indicator text.

For indicators not tied to config keys, an interface could be defined that presents the indicators. The indicators would themselves have an interface shared with the indicator component, which defines the properties necessary for the indicator and the changed event to update the DataFeedItem visual.

Would make the most sense to build on top of #6 / #9

@Banane9 Banane9 added the enhancement New feature or request label Aug 4, 2024
@Banane9
Copy link
Member Author

Banane9 commented Nov 24, 2024

This is now implementable by mod authors through their own ConfigKeyCustomDataFeedItems<T> components for DefiningConfigKeys and by implementing the ICustomDataFeedItems interface for ConfigSections.

Implementing some helper for it could be a consideration.

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

1 participant