From fae89ed2a105c8f383bc42bc7e4faebeec9708c9 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:53:37 +0300 Subject: [PATCH] Increase the slider bounds of the crop tool and the scale slider max value of the 3DShapeEdit tool --- src/Tools/3DTools/3DShapeEdit.tscn | 1 + src/Tools/UtilityTools/CropTool.gd | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Tools/3DTools/3DShapeEdit.tscn b/src/Tools/3DTools/3DShapeEdit.tscn index f78845945..01cc9c90f 100644 --- a/src/Tools/3DTools/3DShapeEdit.tscn +++ b/src/Tools/3DTools/3DShapeEdit.tscn @@ -266,6 +266,7 @@ unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 value = Vector3(100, 100, 100) +max_value = Vector3(500, 500, 500) step = 0.01 allow_greater = true allow_lesser = true diff --git a/src/Tools/UtilityTools/CropTool.gd b/src/Tools/UtilityTools/CropTool.gd index 3463d8a63..3f2e98906 100644 --- a/src/Tools/UtilityTools/CropTool.gd +++ b/src/Tools/UtilityTools/CropTool.gd @@ -71,17 +71,23 @@ func _sync_ui() -> void: $"%PosSizeContainer".show() $"%DimensionsLabel".hide() - $"%Top".max_value = Global.current_project.size.y - 1 - $"%Bottom".max_value = Global.current_project.size.y - $"%Left".max_value = Global.current_project.size.x - 1 - $"%Right".max_value = Global.current_project.size.x + $"%Top".max_value = (Global.current_project.size.y * 2) - 1 + $"%Bottom".max_value = Global.current_project.size.y * 2 + $"%Left".max_value = (Global.current_project.size.x * 2) - 1 + $"%Right".max_value = Global.current_project.size.x * 2 + $"%Top".min_value = -Global.current_project.size.y + 1 + $"%Bottom".min_value = -Global.current_project.size.y + $"%Left".min_value = -Global.current_project.size.x + 1 + $"%Right".min_value = -Global.current_project.size.x $"%Top".value = _crop.rect.position.y $"%Bottom".value = _crop.rect.end.y $"%Left".value = _crop.rect.position.x $"%Right".value = _crop.rect.end.x - $"%Position".max_value = Global.current_project.size - Vector2i.ONE - $"%Size".max_value = Global.current_project.size + $"%Position".max_value = (Global.current_project.size * 2) - Vector2i.ONE + $"%Size".max_value = Global.current_project.size * 2 + $"%Position".min_value = -Global.current_project.size + Vector2i.ONE + $"%Size".min_value = -Global.current_project.size $"%Position".value = _crop.rect.position $"%Size".value = _crop.rect.size