-
Notifications
You must be signed in to change notification settings - Fork 0
/
LabeledCopyableDisplay.tscn
159 lines (136 loc) · 5.03 KB
/
LabeledCopyableDisplay.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[gd_scene load_steps=15 format=3 uid="uid://cy5i7w3smd0rh"]
[ext_resource type="Script" path="res://LabeledCopyableDisplay.gd" id="1_s24os"]
[ext_resource type="Texture2D" uid="uid://c2j0wda35t2mx" path="res://nineslice.png" id="2_ohrsc"]
[ext_resource type="SystemFont" uid="uid://duoi8yke4myd5" path="res://UsedFont.tres" id="3_nyxqe"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_wxrxw"]
blend_mode = 3
light_mode = 1
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_voft3"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_vr0sc"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pw1ob"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_n8mu3"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_weyr4"]
[sub_resource type="Theme" id="Theme_hca64"]
VScrollBar/styles/grabber = SubResource("StyleBoxEmpty_voft3")
VScrollBar/styles/grabber_highlight = SubResource("StyleBoxEmpty_vr0sc")
VScrollBar/styles/grabber_pressed = SubResource("StyleBoxEmpty_pw1ob")
VScrollBar/styles/scroll = SubResource("StyleBoxEmpty_n8mu3")
VScrollBar/styles/scroll_focus = SubResource("StyleBoxEmpty_weyr4")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xoqyf"]
content_margin_left = 5.0
content_margin_right = 5.0
bg_color = Color(0.180392, 0.203922, 0.25098, 1)
[sub_resource type="LabelSettings" id="LabelSettings_ftaq6"]
font_color = Color(1, 1, 1, 0.372549)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nhoix"]
content_margin_left = 8.0
bg_color = Color(0.368627, 0.505882, 0.67451, 0.501961)
[sub_resource type="LabelSettings" id="LabelSettings_6p40s"]
line_spacing = 0.0
font = ExtResource("3_nyxqe")
font_color = Color(0.847059, 0.870588, 0.913725, 1)
outline_color = Color(0, 0, 0, 0.690196)
[node name="Control" type="MarginContainer"]
custom_minimum_size = Vector2(0, 52)
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 52.0
grow_horizontal = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 4
script = ExtResource("1_s24os")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="Display" type="Control" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Vignette" type="NinePatchRect" parent="HBoxContainer/Display"]
material = SubResource("CanvasItemMaterial_wxrxw")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
mouse_filter = 1
texture = ExtResource("2_ohrsc")
patch_margin_left = 3
patch_margin_top = 5
patch_margin_right = 3
patch_margin_bottom = 5
[node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Display/Vignette"]
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
theme = SubResource("Theme_hca64")
theme_override_styles/panel = SubResource("StyleBoxFlat_xoqyf")
[node name="CopyLabel" type="Label" parent="HBoxContainer/Display/Vignette/ScrollContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(8.92, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
text = "test text for thtelkjd lsest sdfkjsdf sdlfkjsdf"
label_settings = SubResource("LabelSettings_ftaq6")
autowrap_mode = 3
[node name="CopyButton" type="Button" parent="HBoxContainer/Display/Vignette/ScrollContainer/CopyLabel"]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -4.0
offset_right = 4.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.25
tooltip_text = "Click here to copy this copyable's content to your clipboard."
mouse_filter = 1
theme_override_styles/focus = SubResource("StyleBoxFlat_nhoix")
flat = true
[node name="TitleLabel" type="Label" parent="HBoxContainer/Display"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "copy."
label_settings = SubResource("LabelSettings_6p40s")
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
clip_text = true
[node name="Control" type="Control" parent="HBoxContainer"]
custom_minimum_size = Vector2(29.315, 0)
layout_mode = 2
size_flags_horizontal = 10
size_flags_stretch_ratio = 0.0
[node name="Closebutton" type="Button" parent="HBoxContainer/Control"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 31)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 8
size_flags_vertical = 0
tooltip_text = "Remove this copyable.
Will NOT remove the matching text from the setup tab!"
text = "X"
alignment = 0
[connection signal="pressed" from="HBoxContainer/Display/Vignette/ScrollContainer/CopyLabel/CopyButton" to="." method="_on_copybutton_pressed"]
[connection signal="pressed" from="HBoxContainer/Control/Closebutton" to="." method="_on_closebutton_pressed"]