Scripting: Added MapEditor.selectedTool and MapEditor.tool by bjorn · Pull Request #4330 · mapeditor/tiled (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

bjorn

merged 2 commits into

Mar 2, 2026

Conversation

@bjorn

Enables scripts to know which tool is selected, to select a different tool and potentially to modify or interact with the available tools.

@eishiya

It would be nice if there was consistency regarding "id" vs "shortName" for the tool identifier string xP

@bjorn

Enables scripts to know which tool is selected, to select a different tool and potentially to modify or interact with the available tools.

@bjorn

@bjorn bjorn deleted the scripting-selected-tool branch

March 2, 2026 18:08

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

[ Show hidden characters]({{ revealButtonHref }})

2 participants

@bjorn @eishiya