1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Increase the slider bounds of the crop tool and the scale slider max value of the 3DShapeEdit tool

This commit is contained in:
Emmanouil Papadeas 2024-07-12 12:53:37 +03:00
parent 547f307b53
commit fae89ed2a1
2 changed files with 13 additions and 6 deletions

View file

@ -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

View file

@ -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