mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
fixed recorder label not updating when project is changed (#1139)
This commit is contained in:
parent
8b1367494d
commit
fe6efb0f1d
Binary file not shown.
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 374 B |
Binary file not shown.
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 136 B |
|
@ -55,6 +55,7 @@ class Recorder:
|
||||||
dir.make_dir_recursive(save_directory)
|
dir.make_dir_recursive(save_directory)
|
||||||
project.removed.connect(recorder_panel.finalize_recording.bind(project))
|
project.removed.connect(recorder_panel.finalize_recording.bind(project))
|
||||||
project.undo_redo.version_changed.connect(capture_frame)
|
project.undo_redo.version_changed.connect(capture_frame)
|
||||||
|
recorder_panel.captured_label.text = ""
|
||||||
|
|
||||||
func _notification(what: int) -> void:
|
func _notification(what: int) -> void:
|
||||||
if what == NOTIFICATION_PREDELETE:
|
if what == NOTIFICATION_PREDELETE:
|
||||||
|
@ -100,6 +101,9 @@ func _on_project_switched() -> void:
|
||||||
initialize_recording()
|
initialize_recording()
|
||||||
start_button.set_pressed_no_signal(true)
|
start_button.set_pressed_no_signal(true)
|
||||||
Global.change_button_texturerect(start_button.get_child(0), "stop.png")
|
Global.change_button_texturerect(start_button.get_child(0), "stop.png")
|
||||||
|
captured_label.text = str(
|
||||||
|
"Saved: ", recorded_projects[Global.current_project].frames_captured
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
finalize_recording()
|
finalize_recording()
|
||||||
start_button.set_pressed_no_signal(false)
|
start_button.set_pressed_no_signal(false)
|
||||||
|
|
|
@ -40,15 +40,18 @@ mouse_default_cursor_shape = 2
|
||||||
toggle_mode = true
|
toggle_mode = true
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Start"]
|
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Start"]
|
||||||
layout_mode = 0
|
layout_mode = 1
|
||||||
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -10.0
|
offset_left = -11.0
|
||||||
offset_top = -10.5
|
offset_top = -11.0
|
||||||
offset_right = 10.0
|
offset_right = 11.0
|
||||||
offset_bottom = 10.5
|
offset_bottom = 11.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
texture = ExtResource("1")
|
texture = ExtResource("1")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
@ -74,7 +77,7 @@ offset_bottom = 10.5
|
||||||
texture = ExtResource("3")
|
texture = ExtResource("3")
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
[node name="OpenFolder" type="Button" parent="ScrollContainer/CenterContainer/GridContainer"]
|
[node name="OpenFolder" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
|
||||||
custom_minimum_size = Vector2(32, 32)
|
custom_minimum_size = Vector2(32, 32)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
tooltip_text = "Open Folder"
|
tooltip_text = "Open Folder"
|
||||||
|
|
Loading…
Reference in a new issue