Closed boyestrous closed 1 year ago
Borrowing heavily from the tooltip classes, I was able to get button labels to display on top of the existing holographic buttons. I still need to figure out how to move the label to one side and maybe detect overlap/collision).
The method I used is as follows:
I debated using the CockpitStateController instead of CockpitSettingState, but I felt this setting fit better in SettingState because it doesn't change the functionality, it just changes a user preference. CockpitStateController seemed more focused on handling EditMode vs MenuMode, etc.
I figured out that I could move the button label to a child component, which made it able to be separately positioned, the labels now display nicely underneath each button.
I also renamed the TooltipTextCapture to RenderTextureTextCapture, since it's used for more than tooltips.
This is ready to go.
Add a way to put text labels on top of the holographic buttons