Add location billboards #372
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to add billboards to Locations to display the Location Tags present at that location.

When there are no Location Tags present, or the Location only contains Workcell tags, an empty icon will appear instead.

Functionality:
Changed implementation of the canvas tooltip:

The existing canvas tooltip implementation causes some of the text to be pushed into the next line.
Hence, part of the canvas tooltips implementation has been modified from this:
To this:
From what I have attempted, setting the max_width directly in the egui::containers::popup or egui::Area did not seem to be able to resolve this problem, hence I rewrote the implementation. However, if there is a better way to resolve this, please let me know! From what I can tell, there are no other usages of this Canvas Tooltips, hence as far as I can tell, this new implementation does not appear to affect anything else.
Known bug:
When the billboard is selected, the inspector temporarily shows
<Unknown Type> (unsaved)
.Steps to recreate the initial bug:
<Unknown Type> (unsaved)
as the selected billboard was despawned.Screen.recording.2025-08-20.4.33.40.PM.mp4
The above bug was temporarily resolved by changing the selected object to the corresponding Location under
update_location_for_changed_location_tags
.However, there is still a lag when the selected object is changed from the Billboard to the Location. For 1 frame, the
<Unknown Type> (unsaved)
appears again, before the Inspector displays the Location Inspector again. If there is a way to resolve this, please let me know!Screen.recording.2025-08-20.4.38.40.PM.mp4