mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
TimelineSeconds now being re-drawn when scrolling through the frames
For some reason, scroll_ended() and scroll_started() signals of the ScrollContainer are not working.
This commit is contained in:
parent
61169f86ba
commit
e06586edce
|
@ -250,7 +250,6 @@ text = "[64×64]"
|
||||||
align = 2
|
align = 2
|
||||||
|
|
||||||
[node name="UI" type="HBoxContainer" parent="MenuAndUI"]
|
[node name="UI" type="HBoxContainer" parent="MenuAndUI"]
|
||||||
editor/display_folded = true
|
|
||||||
margin_top = 28.0
|
margin_top = 28.0
|
||||||
margin_right = 1152.0
|
margin_right = 1152.0
|
||||||
margin_bottom = 648.0
|
margin_bottom = 648.0
|
||||||
|
@ -900,7 +899,6 @@ mouse_default_cursor_shape = 2
|
||||||
text = "Vertical"
|
text = "Vertical"
|
||||||
|
|
||||||
[node name="CanvasAndTimeline" type="VBoxContainer" parent="MenuAndUI/UI"]
|
[node name="CanvasAndTimeline" type="VBoxContainer" parent="MenuAndUI/UI"]
|
||||||
editor/display_folded = true
|
|
||||||
margin_left = 224.0
|
margin_left = 224.0
|
||||||
margin_right = 928.0
|
margin_right = 928.0
|
||||||
margin_bottom = 620.0
|
margin_bottom = 620.0
|
||||||
|
@ -1994,6 +1992,7 @@ visible = false
|
||||||
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/AnimationButtons/LoopButtons/FPSValue" to="." method="_on_FPSValue_value_changed"]
|
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/AnimationButtons/LoopButtons/FPSValue" to="." method="_on_FPSValue_value_changed"]
|
||||||
[connection signal="pressed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/AnimationButtons/LoopButtons/LoopAnim" to="." method="_on_LoopAnim_pressed"]
|
[connection signal="pressed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/AnimationButtons/LoopButtons/LoopAnim" to="." method="_on_LoopAnim_pressed"]
|
||||||
[connection signal="pressed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/FrameAndButtonContainer/AddFrame" to="." method="add_frame"]
|
[connection signal="pressed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/FrameAndButtonContainer/AddFrame" to="." method="add_frame"]
|
||||||
|
[connection signal="gui_input" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/FrameAndButtonContainer/ScrollContainer" to="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/TimelineContainer/TimelineSeconds" method="_on_ScrollContainer_gui_input"]
|
||||||
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/PastOnionSkinning" to="." method="_on_PastOnionSkinning_value_changed"]
|
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/PastOnionSkinning" to="." method="_on_PastOnionSkinning_value_changed"]
|
||||||
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/FutureOnionSkinning" to="." method="_on_FutureOnionSkinning_value_changed"]
|
[connection signal="value_changed" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/FutureOnionSkinning" to="." method="_on_FutureOnionSkinning_value_changed"]
|
||||||
[connection signal="toggled" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/BlueRedMode" to="." method="_on_BlueRedMode_toggled"]
|
[connection signal="toggled" from="MenuAndUI/UI/CanvasAndTimeline/AnimationTimeline/AnimationContainer/OnionSkinningButtons/BlueRedMode" to="." method="_on_BlueRedMode_toggled"]
|
||||||
|
|
|
@ -9,8 +9,7 @@ var minor_subdivision := 3
|
||||||
var first : Vector2
|
var first : Vector2
|
||||||
var last : Vector2
|
var last : Vector2
|
||||||
|
|
||||||
|
# Code taken and modified from Godot's source code
|
||||||
#Code taken and modified from Godot's source code
|
|
||||||
func _draw() -> void:
|
func _draw() -> void:
|
||||||
var color := Color.white
|
var color := Color.white
|
||||||
if Global.theme_type == "Gold" || Global.theme_type == "Light":
|
if Global.theme_type == "Gold" || Global.theme_type == "Light":
|
||||||
|
@ -52,3 +51,7 @@ func _draw() -> void:
|
||||||
draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.33), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color)
|
draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.33), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color)
|
||||||
else:
|
else:
|
||||||
draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.66), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color)
|
draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.66), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color)
|
||||||
|
|
||||||
|
# warning-ignore:unused_argument
|
||||||
|
func _on_ScrollContainer_gui_input(event) -> void:
|
||||||
|
update()
|
||||||
|
|
Loading…
Reference in a new issue