Skip to content

Commit 5c39794

Browse files
authored
add tscn Options
1 parent e5a927b commit 5c39794

File tree

9 files changed

+193
-100
lines changed

9 files changed

+193
-100
lines changed

Containers.tscn

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
[gd_scene load_steps=20 format=4 uid="uid://47siqdrbmm5y"]
1+
[gd_scene load_steps=15 format=4 uid="uid://47siqdrbmm5y"]
22

33
[ext_resource type="Script" uid="uid://dh5p1h1ow0a8g" path="res://containers.gd" id="1_aqjdc"]
4-
[ext_resource type="Texture2D" uid="uid://c3fn1ppgdav4d" path="res://assets/backpack.png" id="1_l1ewb"]
5-
[ext_resource type="Texture2D" uid="uid://c30y87tpk5nvi" path="res://assets/status.png" id="3_eq0ym"]
6-
[ext_resource type="Texture2D" uid="uid://db7d38mogv2yf" path="res://assets/skills.png" id="4_cqlh8"]
7-
[ext_resource type="Texture2D" uid="uid://c4nrcqenb1u7i" path="res://assets/spells.png" id="5_yq0kq"]
84
[ext_resource type="FontVariation" uid="uid://bbbowwhyjq3j8" path="res://fonts/kc_fonts_regular.tres" id="6_jsvej"]
95
[ext_resource type="Script" uid="uid://ccuqqlwx5pgei" path="res://backpack.gd" id="7_q7mms"]
106
[ext_resource type="Texture2D" uid="uid://cju0nqelwrivj" path="res://assets/ui_frame.png" id="7_yq0kq"]
117
[ext_resource type="Script" uid="uid://b7hug1li3jn7u" path="res://status_container.gd" id="9_labx1"]
128
[ext_resource type="Script" uid="uid://chgk7vyc311w3" path="res://skills.gd" id="10_2t56i"]
139
[ext_resource type="Script" uid="uid://dqhhwy0l5vbbb" path="res://spells.gd" id="11_x6kya"]
1410

15-
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cqlh8"]
16-
1711
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eq0ym"]
1812
bg_color = Color(0, 0, 0, 1)
1913

@@ -52,61 +46,6 @@ sources/1 = SubResource("TileSetAtlasSource_q7mms")
5246
[node name="Containers" type="Node2D"]
5347
script = ExtResource("1_aqjdc")
5448

55-
[node name="Buttons_BG" type="Panel" parent="."]
56-
texture_filter = 1
57-
offset_left = 955.0
58-
offset_top = 363.0
59-
offset_right = 1275.0
60-
offset_bottom = 716.0
61-
theme_override_styles/panel = SubResource("StyleBoxEmpty_cqlh8")
62-
63-
[node name="GridContainer" type="GridContainer" parent="Buttons_BG"]
64-
texture_filter = 1
65-
layout_mode = 0
66-
offset_left = 23.0
67-
offset_top = 40.0
68-
offset_right = 2302.0
69-
offset_bottom = 1558.0
70-
scale = Vector2(0.125, 0.125)
71-
columns = 3
72-
73-
[node name="backpack_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
74-
texture_filter = 1
75-
layout_mode = 2
76-
texture_normal = ExtResource("1_l1ewb")
77-
78-
[node name="backpack_button2" type="TextureButton" parent="Buttons_BG/GridContainer"]
79-
texture_filter = 1
80-
layout_mode = 2
81-
texture_normal = ExtResource("3_eq0ym")
82-
83-
[node name="skills_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
84-
texture_filter = 1
85-
layout_mode = 2
86-
texture_normal = ExtResource("4_cqlh8")
87-
88-
[node name="spells_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
89-
texture_filter = 1
90-
layout_mode = 2
91-
texture_normal = ExtResource("5_yq0kq")
92-
93-
[node name="TextDisplay" type="RichTextLabel" parent="Buttons_BG"]
94-
texture_filter = 1
95-
layout_mode = 0
96-
offset_left = 22.0
97-
offset_top = 2.0
98-
offset_right = 310.0
99-
offset_bottom = 42.0
100-
theme_override_fonts/normal_font = ExtResource("6_jsvej")
101-
theme_override_font_sizes/normal_font_size = 18
102-
bbcode_enabled = true
103-
text = "Options"
104-
scroll_active = false
105-
autowrap_trim_flags = 0
106-
tab_size = 2
107-
horizontal_alignment = 1
108-
vertical_alignment = 1
109-
11049
[node name="Backpack" type="Panel" parent="."]
11150
visible = false
11251
texture_filter = 1
@@ -329,10 +268,6 @@ theme_override_styles/pressed = SubResource("StyleBoxEmpty_q7mms")
329268
text = "Spells"
330269
autowrap_trim_flags = 0
331270

332-
[connection signal="pressed" from="Buttons_BG/GridContainer/backpack_button" to="." method="_on_backpack_button_pressed"]
333-
[connection signal="pressed" from="Buttons_BG/GridContainer/backpack_button2" to="." method="_on_status_button_pressed"]
334-
[connection signal="pressed" from="Buttons_BG/GridContainer/skills_button" to="." method="_on_skills_button_pressed"]
335-
[connection signal="pressed" from="Buttons_BG/GridContainer/spells_button" to="." method="_on_spells_button_pressed"]
336271
[connection signal="button_down" from="Backpack/Move" to="Backpack" method="_on_move_button_down"]
337272
[connection signal="button_up" from="Backpack/Move" to="Backpack" method="_on_move_button_up"]
338273
[connection signal="pressed" from="Backpack/Close" to="." method="_on_close_pressed"]

Options.tscn

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[gd_scene load_steps=8 format=3 uid="uid://6wgctohcvfte"]
2+
3+
[ext_resource type="Texture2D" uid="uid://c3fn1ppgdav4d" path="res://assets/backpack.png" id="1_2r1l1"]
4+
[ext_resource type="Script" uid="uid://cjyiwpvt3l6me" path="res://options.gd" id="1_p8250"]
5+
[ext_resource type="Texture2D" uid="uid://c30y87tpk5nvi" path="res://assets/status.png" id="2_bwr58"]
6+
[ext_resource type="Texture2D" uid="uid://db7d38mogv2yf" path="res://assets/skills.png" id="3_dfe3t"]
7+
[ext_resource type="Texture2D" uid="uid://c4nrcqenb1u7i" path="res://assets/spells.png" id="4_t1d33"]
8+
[ext_resource type="Texture2D" uid="uid://cirk3qabkxsfu" path="res://assets/exit.png" id="6_dfe3t"]
9+
10+
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_5pjjr"]
11+
12+
[node name="Options" type="Node2D"]
13+
script = ExtResource("1_p8250")
14+
15+
[node name="Buttons_BG" type="Panel" parent="."]
16+
texture_filter = 1
17+
offset_right = 320.0
18+
offset_bottom = 353.0
19+
theme_override_styles/panel = SubResource("StyleBoxEmpty_5pjjr")
20+
21+
[node name="GridContainer" type="GridContainer" parent="Buttons_BG"]
22+
texture_filter = 1
23+
layout_mode = 0
24+
offset_left = 23.0
25+
offset_top = 40.0
26+
offset_right = 2302.0
27+
offset_bottom = 1558.0
28+
scale = Vector2(0.125, 0.125)
29+
columns = 3
30+
31+
[node name="backpack_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
32+
texture_filter = 1
33+
layout_mode = 2
34+
texture_normal = ExtResource("1_2r1l1")
35+
stretch_mode = 0
36+
37+
[node name="status_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
38+
texture_filter = 1
39+
layout_mode = 2
40+
texture_normal = ExtResource("2_bwr58")
41+
stretch_mode = 0
42+
43+
[node name="skills_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
44+
texture_filter = 1
45+
layout_mode = 2
46+
texture_normal = ExtResource("3_dfe3t")
47+
stretch_mode = 0
48+
49+
[node name="spells_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
50+
texture_filter = 1
51+
layout_mode = 2
52+
texture_normal = ExtResource("4_t1d33")
53+
stretch_mode = 0
54+
55+
[node name="exit_button" type="TextureButton" parent="Buttons_BG/GridContainer"]
56+
texture_filter = 1
57+
layout_mode = 2
58+
texture_normal = ExtResource("6_dfe3t")
59+
stretch_mode = 0
60+
61+
[connection signal="pressed" from="Buttons_BG/GridContainer/backpack_button" to="." method="_on_backpack_button_pressed"]
62+
[connection signal="pressed" from="Buttons_BG/GridContainer/status_button" to="." method="_on_status_button_pressed"]
63+
[connection signal="pressed" from="Buttons_BG/GridContainer/skills_button" to="." method="_on_skills_button_pressed"]
64+
[connection signal="pressed" from="Buttons_BG/GridContainer/spells_button" to="." method="_on_spells_button_pressed"]
65+
[connection signal="pressed" from="Buttons_BG/GridContainer/exit_button" to="." method="_on_exit_button_pressed"]

containers.gd

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
extends Node2D
2-
3-
signal button_commands_submitted(data: String)
42

53
func _ready():
64
$Backpack.visible = false
75
$Status.visible = false
86
$"../TextProcessor".connect("container_request", Callable(self, "_on_container_request_received"))
97

10-
func _on_backpack_button_pressed() -> void:
11-
emit_signal("button_commands_submitted", "eq")
12-
13-
func _on_status_button_pressed() -> void:
14-
emit_signal("button_commands_submitted", "status")
15-
16-
func _on_skills_button_pressed() -> void:
17-
emit_signal("button_commands_submitted", "skills")
18-
19-
func _on_spells_button_pressed() -> void:
20-
emit_signal("button_commands_submitted", "spells")
21-
228
func clean_unwanted_symbols(data: String) -> String:
239
data = data.replace("┌"," ")
2410
data = data.replace("┐"," ")

export_presets.cfg

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ custom_features=""
99
export_filter="all_resources"
1010
include_filter="*.ttf; *.otf; fonts/**"
1111
exclude_filter=""
12-
export_path="export/index.html"
12+
export_path="export/html/index.html"
1313
patches=PackedStringArray()
1414
encryption_include_filters=""
1515
encryption_exclude_filters=""
@@ -43,3 +43,71 @@ progressive_web_app/icon_512x512=""
4343
progressive_web_app/background_color=Color(0, 0, 0, 1)
4444
threads/emscripten_pool_size=8
4545
threads/godot_pool_size=4
46+
47+
[preset.1]
48+
49+
name="Windows Desktop"
50+
platform="Windows Desktop"
51+
runnable=true
52+
advanced_options=false
53+
dedicated_server=false
54+
custom_features=""
55+
export_filter="all_resources"
56+
include_filter="*.ttf; *.otf; fonts/**"
57+
exclude_filter=""
58+
export_path="export/windows/GoMudWindowsClient.exe"
59+
patches=PackedStringArray()
60+
encryption_include_filters=""
61+
encryption_exclude_filters=""
62+
seed=0
63+
encrypt_pck=false
64+
encrypt_directory=false
65+
script_export_mode=2
66+
67+
[preset.1.options]
68+
69+
custom_template/debug=""
70+
custom_template/release=""
71+
debug/export_console_wrapper=1
72+
binary_format/embed_pck=true
73+
texture_format/s3tc_bptc=true
74+
texture_format/etc2_astc=false
75+
shader_baker/enabled=false
76+
binary_format/architecture="x86_64"
77+
codesign/enable=false
78+
codesign/timestamp=true
79+
codesign/timestamp_server_url=""
80+
codesign/digest_algorithm=1
81+
codesign/description=""
82+
codesign/custom_options=PackedStringArray()
83+
application/modify_resources=true
84+
application/icon=""
85+
application/console_wrapper_icon=""
86+
application/icon_interpolation=4
87+
application/file_version=""
88+
application/product_version=""
89+
application/company_name=""
90+
application/product_name=""
91+
application/file_description=""
92+
application/copyright=""
93+
application/trademarks=""
94+
application/export_angle=0
95+
application/export_d3d12=0
96+
application/d3d12_agility_sdk_multiarch=true
97+
ssh_remote_deploy/enabled=false
98+
ssh_remote_deploy/host="user@host_ip"
99+
ssh_remote_deploy/port="22"
100+
ssh_remote_deploy/extra_args_ssh=""
101+
ssh_remote_deploy/extra_args_scp=""
102+
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
103+
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
104+
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
105+
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
106+
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
107+
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
108+
Start-ScheduledTask -TaskName godot_remote_debug
109+
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
110+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
111+
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
112+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
113+
Remove-Item -Recurse -Force '{temp_dir}'"

input.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extends Node2D
33
signal cmd_text_submitted(data: String)
44

55
func _ready():
6-
$"../Containers".connect("button_commands_submitted", Callable(self, "_on_button_command_text_submitted"))
6+
$"../Options".connect("button_commands_submitted", Callable(self, "_on_button_command_text_submitted"))
77

88
func _on_button_command_text_submitted(data: String) -> void:
99
if len(data) > 0:

main.tscn

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=14 format=4 uid="uid://dofvc2ex1xykw"]
1+
[gd_scene load_steps=15 format=4 uid="uid://dofvc2ex1xykw"]
22

33
[ext_resource type="Script" uid="uid://dd8e7lcfu6dkt" path="res://main.gd" id="1_h2yge"]
44
[ext_resource type="PackedScene" uid="uid://b1vf8vuod1vvw" path="res://TextProcessor.tscn" id="2_h2yge"]
@@ -10,6 +10,7 @@
1010
[ext_resource type="PackedScene" uid="uid://e8rqkwrkkjie" path="res://status.tscn" id="5_272bh"]
1111
[ext_resource type="PackedScene" uid="uid://47siqdrbmm5y" path="res://Containers.tscn" id="5_lquwl"]
1212
[ext_resource type="PackedScene" uid="uid://dsg3jfw1l31dd" path="res://mobs.tscn" id="8_5vw27"]
13+
[ext_resource type="PackedScene" uid="uid://6wgctohcvfte" path="res://Options.tscn" id="10_efxa6"]
1314

1415
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1bvp3"]
1516
bg_color = Color(0, 0, 0, 1)
@@ -83,6 +84,38 @@ tab_size = 2
8384
horizontal_alignment = 2
8485
vertical_alignment = 1
8586

87+
[node name="Options_label" type="RichTextLabel" parent="."]
88+
texture_filter = 1
89+
offset_left = 976.0
90+
offset_top = 364.0
91+
offset_right = 1264.0
92+
offset_bottom = 404.0
93+
theme_override_fonts/normal_font = ExtResource("3_4c57u")
94+
theme_override_font_sizes/normal_font_size = 18
95+
bbcode_enabled = true
96+
text = "Options"
97+
scroll_active = false
98+
autowrap_trim_flags = 0
99+
tab_size = 2
100+
horizontal_alignment = 1
101+
vertical_alignment = 1
102+
103+
[node name="Map_label" type="RichTextLabel" parent="."]
104+
texture_filter = 1
105+
offset_left = 980.0
106+
offset_top = 4.0
107+
offset_right = 1264.0
108+
offset_bottom = 28.0
109+
theme_override_fonts/normal_font = ExtResource("3_4c57u")
110+
theme_override_font_sizes/normal_font_size = 18
111+
bbcode_enabled = true
112+
text = "Map"
113+
scroll_active = false
114+
autowrap_trim_flags = 0
115+
tab_size = 2
116+
horizontal_alignment = 1
117+
vertical_alignment = 1
118+
86119
[node name="TextProcessor" parent="." instance=ExtResource("2_h2yge")]
87120
position = Vector2(33, 33)
88121

@@ -100,4 +133,8 @@ position = Vector2(973, 13)
100133
[node name="Mobs" parent="." instance=ExtResource("8_5vw27")]
101134
position = Vector2(1, 625)
102135

136+
[node name="Options" parent="." instance=ExtResource("10_efxa6")]
137+
position = Vector2(954, 362)
138+
103139
[node name="Containers" parent="." instance=ExtResource("5_lquwl")]
140+
position = Vector2(8, 8)

map.tscn

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,6 @@ offset_right = 288.0
1414
offset_bottom = 288.0
1515
theme_override_styles/panel = SubResource("StyleBoxEmpty_wijl4")
1616

17-
[node name="Name" type="RichTextLabel" parent="Map_BG"]
18-
texture_filter = 1
19-
layout_mode = 0
20-
offset_left = 6.0
21-
offset_top = -12.0
22-
offset_right = 290.0
23-
offset_bottom = 12.0
24-
theme_override_fonts/normal_font = ExtResource("2_wijl4")
25-
theme_override_font_sizes/normal_font_size = 18
26-
bbcode_enabled = true
27-
text = "Map"
28-
scroll_active = false
29-
autowrap_trim_flags = 0
30-
tab_size = 2
31-
horizontal_alignment = 1
32-
vertical_alignment = 1
33-
3417
[node name="TextDisplay_Location_Name" type="RichTextLabel" parent="Map_BG"]
3518
texture_filter = 1
3619
layout_mode = 0

options.gd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
extends Node2D
2+
3+
signal button_commands_submitted(data: String)
4+
5+
func _on_backpack_button_pressed() -> void:
6+
emit_signal("button_commands_submitted", "eq")
7+
8+
func _on_status_button_pressed() -> void:
9+
emit_signal("button_commands_submitted", "status")
10+
11+
func _on_skills_button_pressed() -> void:
12+
emit_signal("button_commands_submitted", "skills")
13+
14+
func _on_spells_button_pressed() -> void:
15+
emit_signal("button_commands_submitted", "spells")
16+
17+
func _on_exit_button_pressed() -> void:
18+
emit_signal("button_commands_submitted", "quit")

options.gd.uid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://cjyiwpvt3l6me

0 commit comments

Comments
 (0)