-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Scripting API - Add a signal for when a object was selected #3240
Comments
Hmm, some signals are currently not documented. Among these is tiled.activeAsset.selectedObjectsChanged.connect(() => tiled.log(tiled.activeAsset.selectedObjects)) I'll have to go through the currently available "Changed" signals and add them to the documentation. |
Thats awesome! Thanks for sharing. Would be nice if the documentation could
be updated :)
…On Tue, Jan 18, 2022 at 11:05 AM Thorbjørn Lindeijer < ***@***.***> wrote:
Hmm, some signals are currently not documented. Among these is
TileMap.selectedObjectsChanged, which is called when the
TileMap.selectedObjects
<https://www.mapeditor.org/docs/scripting/classes/tilemap.html#selectedobjects>
property changes:
tiled.activeAsset.selectedObjectsChanged.connect(() => tiled.log(tiled.activeAsset.selectedObjects))
I'll have to go through the currently available "Changed" signals and add
them to the documentation.
—
Reply to this email directly, view it on GitHub
<#3240 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNHC43QMFJWPIG6PFHEAS3UWU3ONANCNFSM5MGV432A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It would be nice to get a list of signals somewhere too. Currently they're just listed as variables in |
I agree. Let's keep this in mind when we try to improve the format in general, based on generating Markdown instead (#3174). |
For my tiled extension I added a tool that should only be available if the currently selected object is of a specific type. Unfortunately I can not enable/disable the tool because I don't have a signal / event that informs me that a object was selected/ deselected. I think it would be a good idea to throw such an event / signal that we extension-users could subscribe to.
The text was updated successfully, but these errors were encountered: