Show the cursor of the followed player in surveillance - #467
Merged
Cooldude2606 merged 3 commits intoSep 6, 2026
Conversation
A label under the camera shows what the player being followed holds in their cursor, item and count or the ghost item, so that using a deconstruction planner or similar can be seen. It is hidden while the camera shows a fixed location. Closes explosivegaming#427
The cursor was a line of text under the camera, which read as an afterthought next to the framed header. It is now a slot button in the header after the zoom buttons: the item sprite with its count, greyed out for a ghost, an empty slot for an empty cursor, and the item name in the tooltip. The window keeps its shape whatever the item is called.
Cooldude2606
approved these changes
Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #427.
A label under the surveillance camera shows what the followed player holds in their cursor: the item with quality and count (
Cursor: [item=deconstruction-planner,quality=normal] x1) or the ghost item, andCursor: emptyotherwise. It is refreshed every 10 ticks through acursor_labeldefine which holds its camera in element data and reads the camera's target, and is hidden while the camera shows a fixed location. Locale added in en, zh-CN and zh-TW.Lua lint is clean and the scenario loads on my dev instance; the label needs a player to view.