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

Dynamic NT metadata / plugin can alter tiles and new nt metadata fields #769

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

oh-yes-0-fps
Copy link

Overview

Adds more allowed metadata fields to NT for Opacity and ContentVisibility and allows widgets to dynamically update to any new metadata. this is achieved by having an object in API that tiles subscribe/listen to that can change content visibility, opacity, size, position, and widget type. This will allow not just NT but any plugin to have this ability. Tiles now have a lock|unlock option in their context menu that makes them immune to any plugins dynamic changes and in preferences/settings for the NT plugin u can disable the dynamic metadata feature in case it hinders you.

I was having build errors directly pulled off main with examples folder and a file check in build.gradle so if you merge I would recommend throwing out those changes (I'm sorry for the inconvenience) and I will write unit tests soon.

Screenshots

image
image
image

added it as a readable field in NT metadata
implemented a listener singleton for tiles to
subscribe to allow plugins to format the gui
added dynamic tile content, size, pose and opacity
through network tables
Widget display type still only works once per widget
added api listeners to tiles so plugins can alter gui
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

1 participant