godot-camera-preview/preview_button.tscn

46 lines
1.7 KiB
Plaintext

[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/camera_preview/toggle_button.gd" type="Script" id=1]
[node name="ToolButton" type="MenuButton"]
margin_right = 114.0
margin_bottom = 22.0
toggle_mode = false
shortcut_in_tooltip = false
text = "Camera preview"
items = [ "Visible", null, 1, false, false, 0, 0, null, "", false, "Search node", null, 0, false, false, -1, 0, null, "", true, "Disabled", null, 2, true, false, 2, 0, null, "", false, "By name", null, 2, false, false, 3, 0, null, "", false, "By class", null, 2, false, false, 4, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Change search pattern", null, 0, false, false, 6, 0, null, "", false, "Clear preview", null, 0, false, false, 7, 0, null, "", false ]
switch_on_hover = true
script = ExtResource( 1 )
[node name="WindowDialog" type="WindowDialog" parent="."]
margin_right = 255.0
margin_bottom = 151.0
rect_min_size = Vector2( 255, 150 )
window_title = "Change search pattern"
[node name="VBoxContainer" type="VBoxContainer" parent="WindowDialog"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -80.0
margin_top = -24.0
margin_right = 80.0
margin_bottom = 37.0
[node name="TextEdit" type="LineEdit" parent="WindowDialog/VBoxContainer"]
margin_right = 160.0
margin_bottom = 30.0
rect_min_size = Vector2( 0, 30 )
text = "asdasd"
align = 1
[node name="Button" type="Button" parent="WindowDialog/VBoxContainer"]
margin_top = 34.0
margin_right = 160.0
margin_bottom = 54.0
text = "Ok"
[connection signal="text_entered" from="WindowDialog/VBoxContainer/TextEdit" to="." method="_on_TextEdit_text_entered"]
[connection signal="pressed" from="WindowDialog/VBoxContainer/Button" to="." method="_on_change_search_pressed"]