From 97848930e1b5802c946a6ed71258e9f76508b209 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 19 Mar 2026 23:06:55 +0100 Subject: [PATCH] Fix: Drag-Icon auf 48x48 begrenzt statt volle Texturgroesse Co-Authored-By: Claude Sonnet 4.6 --- skill_panel.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skill_panel.gd b/skill_panel.gd index 6112763..9015faa 100644 --- a/skill_panel.gd +++ b/skill_panel.gd @@ -78,9 +78,9 @@ func _start_drag(skill_id: String, icon_path: String): var tex = load(icon_path) drag_icon = TextureRect.new() drag_icon.texture = tex - drag_icon.custom_minimum_size = Vector2(40, 40) - drag_icon.size = Vector2(40, 40) - drag_icon.expand_mode = TextureRect.EXPAND_FIT_WIDTH_PROPORTIONAL + drag_icon.custom_minimum_size = Vector2(48, 48) + drag_icon.size = Vector2(48, 48) + drag_icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE drag_icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED drag_icon.mouse_filter = Control.MOUSE_FILTER_IGNORE var drag_layer = CanvasLayer.new()