mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 02:26:02 +10:00
fixed the UI shaking at higher framerates
This commit is contained in:
@@ -332,3 +332,21 @@ func setup_ndi_settings():
|
||||
if Global.main.ndi_output:
|
||||
$NDIOutput/ndiSourceName.text = Global.main.ndi_output.name
|
||||
update_ndi_status()
|
||||
|
||||
# Initialize avatar-only checkbox state
|
||||
$NDIOutput/avatarOnlyCheck.button_pressed = false
|
||||
if Global.main.ndi_avatar_viewport:
|
||||
$NDIOutput/avatarOnlyCheck.button_pressed = Global.main.ndi_avatar_viewport.visible
|
||||
|
||||
func _on_avatar_only_check_toggled(toggled_on: bool):
|
||||
# Enable/disable avatar-only NDI streaming
|
||||
if Global.main.ndi_avatar_viewport:
|
||||
Global.main.ndi_avatar_viewport.visible = toggled_on
|
||||
if toggled_on:
|
||||
# Sync avatar when enabling
|
||||
Global.main.ndi_avatar_viewport.sync_avatar()
|
||||
print("Avatar-only NDI stream enabled")
|
||||
Global.pushUpdate("Avatar-only NDI stream enabled")
|
||||
else:
|
||||
print("Avatar-only NDI stream disabled")
|
||||
Global.pushUpdate("Avatar-only NDI stream disabled")
|
||||
|
||||
@@ -14368,6 +14368,14 @@ offset_bottom = 123.0
|
||||
text = "Status: Not streaming"
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="avatarOnlyCheck" type="CheckBox" parent="NDIOutput"]
|
||||
offset_left = 4.0
|
||||
offset_top = 125.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 149.0
|
||||
text = "Avatar-only stream"
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="bounceOnCostume" type="Node2D" parent="."]
|
||||
position = Vector2(-172, 122)
|
||||
|
||||
@@ -14938,6 +14946,7 @@ metadata/_edit_use_anchors_ = true
|
||||
[connection signal="toggled" from="AntiAliasing/CheckBox" to="." method="_on_check_box_toggled"]
|
||||
[connection signal="toggled" from="NDIOutput/ndiEnabledCheck" to="." method="_on_ndi_enabled_check_toggled"]
|
||||
[connection signal="text_changed" from="NDIOutput/ndiSourceName" to="." method="_on_ndi_source_name_text_changed"]
|
||||
[connection signal="toggled" from="NDIOutput/avatarOnlyCheck" to="." method="_on_avatar_only_check_toggled"]
|
||||
[connection signal="toggled" from="bounceOnCostume/costumeCheck" to="." method="_on_costume_check_toggled"]
|
||||
[connection signal="value_changed" from="BounceForce/bounceForce" to="." method="_on_bounce_force_value_changed"]
|
||||
[connection signal="value_changed" from="BounceGravity/bounceGravity" to="." method="_on_bounce_gravity_value_changed"]
|
||||
|
||||
Reference in New Issue
Block a user