Skip to content
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

Improve scene tiles workflow #80754

Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Aug 18, 2023

Misc improvements to scene collection tiles editing, similar to my previous improvements.

  • Added hint and a different name when scene source has no tiles in TileMap
    Empty
  • Added hint in TileSet editor how to add scenes
    image
  • Pressing Add button opens a file dialog to directly select the scene, instead of adding empty tile
godot.windows.editor.dev.x86_64_XeZI6hTFdY.mp4
  • If you assign invalid scene, you are informed via editor toaster instead of a hidden error inside the console
XwxlPvzhxM.mp4

@KoBeWi KoBeWi force-pushed the TileSetImprovementsCollectionSource branch from c8376a8 to a88e3b8 Compare August 18, 2023 11:55
@@ -398,6 +402,10 @@ void TileMapEditorTilesPlugin::_update_scenes_collection_view() {
scene_tiles_list->select(item_index, false);
}
}
if (scene_tiles_list->get_item_count() == 0) {
scene_tiles_list->add_item(TTR("The selected scene collection source has no scenes. Add scenes in the TileSet bottom tab."));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit hacky TBH, message should likely be displayed with a Label. It's looks a bit weird you can hover/select such a message.

Copy link
Member Author

@KoBeWi KoBeWi Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can't be selected. It's disabled.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but the hover effect is still a bit confusing about it IMO. It's not a big issue though, if you don't want to fix that right now I think the PR can be merged anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can be merged then please approve 🙃

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.

@akien-mga akien-mga merged commit bcbe1fd into godotengine:master Aug 28, 2023
15 checks passed
@KoBeWi KoBeWi deleted the TileSetImprovementsCollectionSource branch August 28, 2023 13:08
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants