-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdemo.tscn
80 lines (71 loc) · 2.06 KB
/
demo.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gd_scene load_steps=4 format=2]
[ext_resource path="res://addons/godot-camera-plugin.funabab/camera_view.gd" type="Script" id=1]
[ext_resource path="res://demo.gd" type="Script" id=2]
[ext_resource path="res://icon.png" type="Texture" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BtnHeader" type="Button" parent="VBoxContainer"]
margin_right = 600.0
margin_bottom = 70.0
rect_min_size = Vector2( 0, 60 )
rect_pivot_offset = Vector2( -520, -444 )
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Camera Preview"
icon = ExtResource( 3 )
[node name="TextureRect" type="TextureRect" parent="VBoxContainer"]
margin_top = 70.0
margin_right = 600.0
margin_bottom = 904.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 20.0
expand = true
stretch_mode = 5
script = ExtResource( 2 )
[node name="CameraView" type="Control" parent="VBoxContainer/TextureRect"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BtnTakePicture" type="Button" parent="VBoxContainer"]
margin_top = 904.0
margin_right = 600.0
margin_bottom = 964.0
rect_min_size = Vector2( 0, 60 )
rect_pivot_offset = Vector2( -520, -444 )
size_flags_horizontal = 3
size_flags_vertical = 3
custom_colors/font_color = Color( 0.266667, 1, 0, 1 )
text = "Take a picture"
[node name="BtnSwitchCamera" type="Button" parent="VBoxContainer"]
margin_top = 964.0
margin_right = 600.0
margin_bottom = 1024.0
rect_min_size = Vector2( 0, 60 )
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Switch Camera"
[node name="BtnTakeAnother" type="Button" parent="VBoxContainer"]
visible = false
margin_top = 964.0
margin_right = 600.0
margin_bottom = 1024.0
rect_min_size = Vector2( 0, 60 )
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Take Another Picture"