mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-11 13:51:11 +01:00
Fix RectViewNode's _draw().
This commit is contained in:
parent
a4367ee257
commit
d07f9c4949
@ -17,7 +17,7 @@ var drag_offset : Vector2
|
|||||||
var drag_offset_far : Vector2
|
var drag_offset_far : Vector2
|
||||||
|
|
||||||
func _draw():
|
func _draw():
|
||||||
draw_rect(Rect2(get_position(), get_size()), Color(1, 1, 1, 1))
|
draw_rect(Rect2(Vector2(), get_size()), Color(1, 1, 1, 1))
|
||||||
|
|
||||||
func refresh() -> void:
|
func refresh() -> void:
|
||||||
if !edited_resource:
|
if !edited_resource:
|
||||||
@ -99,7 +99,6 @@ func _gui_input(p_event : InputEvent) -> void:
|
|||||||
else:
|
else:
|
||||||
# Update while in a dragging operation.
|
# Update while in a dragging operation.
|
||||||
var global_pos : Vector2 = get_global_mouse_position()
|
var global_pos : Vector2 = get_global_mouse_position()
|
||||||
global_pos.y = max(global_pos.y, 0) # Ensure title bar stays visible.
|
|
||||||
|
|
||||||
var rect : Rect2 = get_rect()
|
var rect : Rect2 = get_rect()
|
||||||
var min_size : Vector2 = get_combined_minimum_size()
|
var min_size : Vector2 = get_combined_minimum_size()
|
||||||
|
Loading…
Reference in New Issue
Block a user