1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Allow Sprite2D being dragged to change their region_rect

This commit is contained in:
Lazy-Rabbit-2001
2025-04-28 22:43:41 +08:00
parent 1b4ed4c038
commit 1410bca5ce
4 changed files with 92 additions and 10 deletions

View File

@@ -119,6 +119,11 @@ class Sprite2DEditorPlugin : public EditorPlugin {
Sprite2DEditor *sprite_editor = nullptr;
Label *dragging_mode_hint = nullptr;
void _editor_theme_changed();
void _update_dragging_mode_hint(bool p_region_enabled);
public:
virtual String get_plugin_name() const override { return "Sprite2D"; }
bool has_main_screen() const override { return false; }