-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy patheditor.tscn
254 lines (221 loc) · 8.64 KB
/
editor.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
[gd_scene load_steps=15 format=3 uid="uid://bdgbhk76vmfr4"]
[ext_resource type="FontFile" uid="uid://drrhlpxmc4pq4" path="res://Fonts/FiraCode-VariableFont_wght.ttf" id="1_cd7xi"]
[ext_resource type="Script" path="res://Scripts/file_manager.gd" id="1_x00ag"]
[ext_resource type="Script" path="res://Scripts/settings.gd" id="2_7x3ll"]
[ext_resource type="PackedScene" uid="uid://dk43uvvc3j228" path="res://Scenes/settings_list.tscn" id="5_6usn0"]
[ext_resource type="Script" path="res://Scripts/file_dialog.gd" id="5_bhd70"]
[ext_resource type="PackedScene" uid="uid://c2gyvklbna1ss" path="res://Scenes/theme_chooser.tscn" id="6_10xx2"]
[ext_resource type="VideoStream" path="res://Videos/jumping_cat.ogv" id="7_aq7lb"]
[ext_resource type="Shader" path="res://Shaders/greenscreen.gdshader" id="7_gkiie"]
[ext_resource type="Script" path="res://Scripts/theme_chooser.gd" id="9_ba634"]
[ext_resource type="Script" path="res://Scripts/hyperlink.gd" id="11_m1mse"]
[sub_resource type="Theme" id="Theme_1rere"]
[sub_resource type="CodeHighlighter" id="CodeHighlighter_p2au2"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_elmks"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_h17vr"]
shader = ExtResource("7_gkiie")
shader_parameter/key_color = Color(0.00392157, 0.701961, 0.25098, 1)
shader_parameter/similarity = 0.18
shader_parameter/smoothness = 0.08
shader_parameter/spill = 0.04
[node name="Editor2" type="Node2D"]
script = ExtResource("1_x00ag")
[node name="Code" type="CodeEdit" parent="."]
unique_name_in_owner = true
offset_right = 1920.0
offset_bottom = 1080.0
theme = SubResource("Theme_1rere")
theme_override_colors/background_color = Color(0, 0, 0, 1)
theme_override_colors/current_line_color = Color(0.168627, 0.168627, 0.168627, 1)
theme_override_colors/caret_color = Color(0.321569, 0.545098, 1, 1)
text = "function getRandomColor() {
const letters = '0123456789ABCDEF';
let color = '#';
for (let i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
function generateHighlightedText() {
const paragraph = document.createElement('p');
const words = ['Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing', 'elit'];
words.forEach(word => {
const span = document.createElement('span');
span.textContent = word + ' ';
span.style.color = getRandomColor();
paragraph.appendChild(span);
});
document.body.appendChild(paragraph);
}
generateHighlightedText();
"
context_menu_enabled = false
scroll_smooth = true
scroll_v_scroll_speed = 150.0
minimap_draw = true
caret_blink = true
syntax_highlighter = SubResource("CodeHighlighter_p2au2")
highlight_all_occurrences = true
highlight_current_line = true
draw_tabs = true
gutters_draw_line_numbers = true
code_completion_enabled = true
indent_automatic = true
auto_brace_completion_enabled = true
auto_brace_completion_highlight_matching = true
script = ExtResource("2_7x3ll")
[node name="Background" type="ColorRect" parent="."]
unique_name_in_owner = true
visible = false
modulate = Color(1, 1, 1, 0)
offset_right = 1920.0
offset_bottom = 1080.0
[node name="FileDialog" type="RichTextLabel" parent="."]
unique_name_in_owner = true
material = SubResource("ShaderMaterial_elmks")
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -120.0
offset_top = 13.0
offset_right = 342.0
offset_bottom = 643.0
grow_horizontal = 2
grow_vertical = 0
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
text = "gpake
gka
ekga
eogka
ek g
paekga
epk
gake
g"
autowrap_mode = 0
script = ExtResource("5_bhd70")
[node name="AutoSaveTimer" type="Timer" parent="."]
wait_time = 5.0
autostart = true
[node name="Intro" type="Node2D" parent="."]
unique_name_in_owner = true
visible = false
[node name="RichTextLabel" type="RichTextLabel" parent="Intro"]
offset_left = 836.0
offset_top = 112.0
offset_right = 3336.0
offset_bottom = 2112.0
scale = Vector2(0.235, 0.235)
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
theme_override_font_sizes/normal_font_size = 376
bbcode_enabled = true
text = "Greetings!"
[node name="RichTextLabel2" type="RichTextLabel" parent="Intro"]
offset_left = 841.0
offset_top = 244.0
offset_right = 3341.0
offset_bottom = 2244.0
scale = Vector2(0.235, 0.235)
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
theme_override_font_sizes/normal_font_size = 146
bbcode_enabled = true
text = "You're currently using [color=#c9daf8]Bussin[/color] [color=#85c6ff]GriddyCode[/color]"
[node name="RichTextLabel3" type="RichTextLabel" parent="Intro"]
offset_left = 841.0
offset_top = 380.0
offset_right = 3341.0
offset_bottom = 2380.0
scale = Vector2(0.235, 0.235)
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
theme_override_font_sizes/normal_font_size = 106
bbcode_enabled = true
text = "To get started, please choose a file."
[node name="Settings" type="Node2D" parent="."]
unique_name_in_owner = true
[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="Settings"]
material = SubResource("ShaderMaterial_h17vr")
offset_left = 1194.0
offset_top = 248.0
offset_right = 1674.0
offset_bottom = 712.0
audio_track = 128
stream = ExtResource("7_aq7lb")
autoplay = true
loop = true
[node name="SettingsList" parent="Settings" instance=ExtResource("5_6usn0")]
unique_name_in_owner = true
offset_left = -121.31
offset_top = 13.0
offset_right = 41.37
offset_bottom = 55.665
metadata/_edit_use_anchors_ = true
[node name="ThemePicker" type="Node2D" parent="."]
unique_name_in_owner = true
[node name="ThemeChooser" parent="ThemePicker" instance=ExtResource("6_10xx2")]
unique_name_in_owner = true
offset_left = -478.49
offset_top = 13.0
offset_right = -478.49
offset_bottom = 13.0
script = ExtResource("9_ba634")
[node name="Info" type="Node2D" parent="."]
unique_name_in_owner = true
position = Vector2(-1289, 0)
[node name="RichTextLabel" type="RichTextLabel" parent="Info"]
offset_left = 285.0
offset_top = 28.0
offset_right = 4821.0
offset_bottom = 1219.0
scale = Vector2(0.235, 0.235)
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
theme_override_font_sizes/normal_font_size = 376
bbcode_enabled = true
text = "[color=#c9daf8]Bussin[/color] [color=#85c6ff]GriddyCode[/color]"
[node name="RichTextLabel2" type="RichTextLabel" parent="Info"]
offset_left = 293.0
offset_top = 165.0
offset_right = 6395.0
offset_bottom = 4616.0
scale = Vector2(0.235, 0.235)
theme_override_fonts/normal_font = ExtResource("1_cd7xi")
theme_override_font_sizes/normal_font_size = 121
bbcode_enabled = true
text = "Created by [url=https://youtube.com/facedevstuff][color=#b4a7d6]Face[/color][/url] & the contributors at [url=https://github.com/face-hh/griddycode][color=#b4a7d6]GitHub[/color][/url]
Shortcuts:
CTRL + O - open file picker. Navigate with ↑ ↓ ⏎
CTRL + , - open settings.
CTRL + T - open theme picker.
CTRL + I - open this panel.
[font_size=85]
[color=#b6b6b6] Copyright (c) 2024 Bussin Industries. All Rights Reserved.
* You are permitted to modify Bussin GriddyCode using the Lua modding feature.
* However, commercial redistribution of this software without explicit permission
* from Bussin Industries is strictly prohibited.
* Bussin GriddyCode is a product created by Bussin Industries, offered as-is.
* Bussin Industries is not a legal entity, and the use of the term \"Industries\"
* is for branding purposes only. Bussin GriddyCode is a community-driven project,
* and users are solely responsible for compliance with applicable laws and
* regulations.
*
* In no event shall Bussin Industries be liable for any claims, damages, or
* other liability, whether in an action of contract, tort, or otherwise,
* arising from, out of, or in connection with Bussin GriddyCode or the use or
* other dealings in Bussin GriddyCode.
*
* Use Bussin GriddyCode responsibly and adhere to the laws of your jurisdiction.
[/color]
[/font_size]"
script = ExtResource("11_m1mse")
[node name="Misc" type="Node2D" parent="."]
[node name="Camera2D" type="Camera2D" parent="Misc"]
position = Vector2(188, 121)
zoom = Vector2(3.4, 3.4)
[connection signal="caret_changed" from="Code" to="Code" method="_on_caret_changed"]
[connection signal="code_completion_requested" from="Code" to="Code" method="_on_code_completion_requested"]
[connection signal="text_changed" from="Code" to="Code" method="_on_text_changed"]
[connection signal="ui_close" from="FileDialog" to="Code" method="_on_file_dialog_ui_close"]
[connection signal="timeout" from="AutoSaveTimer" to="." method="_on_auto_save_timer_timeout"]
[connection signal="item_focused" from="ThemePicker/ThemeChooser" to="." method="_on_theme_chooser_item_focused"]
[connection signal="item_selected" from="ThemePicker/ThemeChooser" to="." method="_on_theme_chooser_item_selected"]