|
4 | 4 |
|
5 | 5 | [sub_resource type="SystemFont" id="SystemFont_r6ct2"] |
6 | 6 | font_names = PackedStringArray("DejaVu Sans Mono") |
| 7 | +subpixel_positioning = 0 |
7 | 8 |
|
8 | 9 | [sub_resource type="CodeHighlighter" id="CodeHighlighter_yvmnf"] |
9 | 10 | number_color = Color(0.498039, 0.760784, 0.686275, 1) |
@@ -35,50 +36,40 @@ size = Vector2i(750, 750) |
35 | 36 | transient = true |
36 | 37 | script = ExtResource("1_jja22") |
37 | 38 |
|
38 | | -[node name="Margin" type="MarginContainer" parent="."] |
| 39 | +[node name="PanelContainer" type="PanelContainer" parent="."] |
39 | 40 | anchors_preset = 15 |
40 | 41 | anchor_right = 1.0 |
41 | 42 | anchor_bottom = 1.0 |
42 | 43 | grow_horizontal = 2 |
43 | 44 | grow_vertical = 2 |
44 | | -theme_override_constants/margin_left = 25 |
45 | | -theme_override_constants/margin_top = 25 |
46 | | -theme_override_constants/margin_right = 25 |
47 | | -theme_override_constants/margin_bottom = 25 |
48 | 45 |
|
49 | | -[node name="VBox" type="VBoxContainer" parent="Margin"] |
| 46 | +[node name="Panel" type="Panel" parent="PanelContainer"] |
50 | 47 | layout_mode = 2 |
51 | 48 |
|
52 | | -[node name="CopyCode" type="Button" parent="Margin/VBox"] |
| 49 | +[node name="VBox" type="VBoxContainer" parent="PanelContainer"] |
53 | 50 | layout_mode = 2 |
54 | | -text = "Copy" |
55 | 51 |
|
56 | | -[node name="ColorRect" type="ColorRect" parent="Margin/VBox"] |
| 52 | +[node name="Code" type="CodeEdit" parent="PanelContainer/VBox"] |
| 53 | +unique_name_in_owner = true |
57 | 54 | layout_mode = 2 |
58 | | -size_flags_horizontal = 3 |
59 | 55 | size_flags_vertical = 3 |
60 | | -color = Color(0.172833, 0.172833, 0.172833, 1) |
| 56 | +theme_override_fonts/font = SubResource("SystemFont_r6ct2") |
| 57 | +editable = false |
| 58 | +syntax_highlighter = SubResource("CodeHighlighter_yvmnf") |
61 | 59 |
|
62 | | -[node name="Scroll" type="ScrollContainer" parent="Margin/VBox/ColorRect"] |
| 60 | +[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBox"] |
63 | 61 | layout_mode = 2 |
64 | | -offset_top = -27.0 |
65 | | -offset_right = 700.0 |
66 | | -offset_bottom = 673.0 |
67 | 62 |
|
68 | | -[node name="Margin" type="MarginContainer" parent="Margin/VBox/ColorRect/Scroll"] |
| 63 | +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/VBox/HBoxContainer"] |
69 | 64 | layout_mode = 2 |
70 | 65 | size_flags_horizontal = 3 |
71 | | -size_flags_vertical = 3 |
72 | | -theme_override_constants/margin_left = 35 |
73 | | -theme_override_constants/margin_top = 55 |
74 | | -theme_override_constants/margin_right = 35 |
75 | | -theme_override_constants/margin_bottom = 35 |
| 66 | +theme_override_constants/margin_left = 3 |
| 67 | +theme_override_constants/margin_right = 3 |
| 68 | +theme_override_constants/margin_bottom = 3 |
76 | 69 |
|
77 | | -[node name="Code" type="TextEdit" parent="Margin/VBox/ColorRect/Scroll/Margin"] |
| 70 | +[node name="CopyCode" type="Button" parent="PanelContainer/VBox/HBoxContainer/MarginContainer"] |
78 | 71 | layout_mode = 2 |
79 | | -theme_override_colors/background_color = Color(0.144063, 0.144063, 0.144062, 1) |
80 | | -theme_override_fonts/font = SubResource("SystemFont_r6ct2") |
81 | | -editable = false |
82 | | -syntax_highlighter = SubResource("CodeHighlighter_yvmnf") |
| 72 | +size_flags_horizontal = 4 |
| 73 | +text = "Copy" |
83 | 74 |
|
84 | | -[connection signal="pressed" from="Margin/VBox/CopyCode" to="." method="_on_copy_code_pressed"] |
| 75 | +[connection signal="pressed" from="PanelContainer/VBox/HBoxContainer/MarginContainer/CopyCode" to="." method="_on_copy_code_pressed"] |
0 commit comments