From 61b66b410946988d540cb5b407a3de282c2a76ad Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 25 Dec 2021 23:41:50 +0100 Subject: [PATCH] Reduce the scale border's size to 5. --- game/addons/world_generator/test/test_world.tres | 2 +- game/addons/world_generator/ui/RectViewNode.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game/addons/world_generator/test/test_world.tres b/game/addons/world_generator/test/test_world.tres index 70ee4ac3..ab70f0dd 100644 --- a/game/addons/world_generator/test/test_world.tres +++ b/game/addons/world_generator/test/test_world.tres @@ -104,7 +104,7 @@ subzones = [ ] [sub_resource type="Resource" id=7] resource_name = "343" script = ExtResource( 2 ) -rect = Rect2( 14, 134, 100, 100 ) +rect = Rect2( 14, 134, 157, 152 ) locked = false zones = [ SubResource( 12 ) ] diff --git a/game/addons/world_generator/ui/RectViewNode.gd b/game/addons/world_generator/ui/RectViewNode.gd index 5b01ed5a..41eab557 100644 --- a/game/addons/world_generator/ui/RectViewNode.gd +++ b/game/addons/world_generator/ui/RectViewNode.gd @@ -132,7 +132,7 @@ func _drag_hit_test(pos : Vector2) -> int: var drag_type : int = DragType.DRAG_NONE if (!edited_resource.locked): - var scaleborder_size : int = 10 #get_constant("scaleborder_size", "WindowDialog") + var scaleborder_size : int = 5 #get_constant("scaleborder_size", "WindowDialog") var rect : Rect2 = get_rect()