Is there any api like app.currentTileIndex?

I’m trying to make a little tilemap manager and have done the dialog part. But it seens that tile drawing mode has nothing like app.fgcolor and app.bgcolor.

Is it still on planning or I’m just too silly to found it ;0

1 Like

Welcome @NolifeM! You are right, there is no app.fgTile/bgTile, anyway there is a workaround with:

print(app.preferences.color_bar.fg_tile)
print(app.preferences.color_bar.bg_tile)

The only problem I’m seeing is that there is no API to access the active tileset/tilemap mode (as these modes are not even in the preferences), so it might be an issue in these cases.

I’ll take note about some of these extensions for the scripting API.

Thanks for the help! I’ll take a look at these. :laughing: