Fix: Drag-Icon auf 48x48 begrenzt statt volle Texturgroesse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4b1d1eeba6
commit
97848930e1
1 changed files with 3 additions and 3 deletions
|
|
@ -78,9 +78,9 @@ func _start_drag(skill_id: String, icon_path: String):
|
||||||
var tex = load(icon_path)
|
var tex = load(icon_path)
|
||||||
drag_icon = TextureRect.new()
|
drag_icon = TextureRect.new()
|
||||||
drag_icon.texture = tex
|
drag_icon.texture = tex
|
||||||
drag_icon.custom_minimum_size = Vector2(40, 40)
|
drag_icon.custom_minimum_size = Vector2(48, 48)
|
||||||
drag_icon.size = Vector2(40, 40)
|
drag_icon.size = Vector2(48, 48)
|
||||||
drag_icon.expand_mode = TextureRect.EXPAND_FIT_WIDTH_PROPORTIONAL
|
drag_icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
|
||||||
drag_icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
drag_icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||||
drag_icon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
drag_icon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||||
var drag_layer = CanvasLayer.new()
|
var drag_layer = CanvasLayer.new()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue