mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Add allow greater and lesser to the image effect animatable property sliders
This commit is contained in:
parent
6dc07d0ca2
commit
eac7def5b4
|
@ -107,19 +107,23 @@ func _refresh_properties(idx: int):
|
||||||
if final_value.is_connected("value_changed", self, "_on_Final_value_changed"):
|
if final_value.is_connected("value_changed", self, "_on_Final_value_changed"):
|
||||||
final_value.disconnect("value_changed", self, "_on_Final_value_changed")
|
final_value.disconnect("value_changed", self, "_on_Final_value_changed")
|
||||||
|
|
||||||
# nodes setup
|
# Nodes setup
|
||||||
var property_node = properties[idx]["range_node"]
|
var property_node: Range = properties[idx]["range_node"]
|
||||||
if property_node is ValueSlider:
|
if property_node is ValueSlider:
|
||||||
final_value.snap_step = property_node.snap_step
|
final_value.snap_step = property_node.snap_step
|
||||||
initial_value.snap_step = property_node.snap_step
|
initial_value.snap_step = property_node.snap_step
|
||||||
|
final_value.allow_greater = property_node.allow_greater
|
||||||
|
final_value.allow_lesser = property_node.allow_lesser
|
||||||
final_value.max_value = property_node.max_value
|
final_value.max_value = property_node.max_value
|
||||||
final_value.min_value = property_node.min_value
|
final_value.min_value = property_node.min_value
|
||||||
final_value.step = property_node.step
|
final_value.step = property_node.step
|
||||||
|
initial_value.allow_greater = property_node.allow_greater
|
||||||
|
initial_value.allow_lesser = property_node.allow_lesser
|
||||||
initial_value.max_value = property_node.max_value
|
initial_value.max_value = property_node.max_value
|
||||||
initial_value.min_value = property_node.min_value
|
initial_value.min_value = property_node.min_value
|
||||||
initial_value.step = property_node.step
|
initial_value.step = property_node.step
|
||||||
|
|
||||||
# now update values
|
# Update values
|
||||||
can_animate_button.pressed = properties[idx]["can_animate"]
|
can_animate_button.pressed = properties[idx]["can_animate"]
|
||||||
initial_value.value = properties[idx]["initial_value"]
|
initial_value.value = properties[idx]["initial_value"]
|
||||||
if properties[idx]["range_node"].value != final_value.value:
|
if properties[idx]["range_node"].value != final_value.value:
|
||||||
|
|
Loading…
Reference in a new issue