about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-21 14:39:30 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-21 14:39:30 -0500
commit75e5821d9b128ffd68609b0842fe8e235ebde5db (patch)
tree0c535120301a17a6fbc2c526a95f36fe94e8f8a6
parent94f52a7f4d512d7bbf2cf5311f3b334f6478f58c (diff)
downloadlingo-archipelago-75e5821d9b128ffd68609b0842fe8e235ebde5db.tar.gz
lingo-archipelago-75e5821d9b128ffd68609b0842fe8e235ebde5db.tar.bz2
lingo-archipelago-75e5821d9b128ffd68609b0842fe8e235ebde5db.zip
confusing world is now an option
-rw-r--r--Archipelago/client.gd5
-rw-r--r--Archipelago/load.gd5
-rw-r--r--Archipelago/settings_buttons.gd1
-rw-r--r--Archipelago/settings_screen.gd1
-rw-r--r--archipelago.tscn47
5 files changed, 43 insertions, 16 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 5273216..9744c0d 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -3,6 +3,7 @@ extends Node
3var ap_server = "" 3var ap_server = ""
4var ap_user = "" 4var ap_user = ""
5var ap_pass = "" 5var ap_pass = ""
6var confusify_world = false
6 7
7const my_version = "0.14.0" 8const my_version = "0.14.0"
8const ap_version = {"major": 0, "minor": 4, "build": 0, "class": "Version"} 9const ap_version = {"major": 0, "minor": 4, "build": 0, "class": "Version"}
@@ -128,6 +129,8 @@ func _init():
128 ap_pass = data[2] 129 ap_pass = data[2]
129 if data.size() > 3: 130 if data.size() > 3:
130 _datapackages = data[3] 131 _datapackages = data[3]
132 if data.size() > 4:
133 confusify_world = data[4]
131 134
132 processDatapackages() 135 processDatapackages()
133 136
@@ -422,7 +425,7 @@ func saveSettings():
422 var file = File.new() 425 var file = File.new()
423 file.open("user://settings/archipelago", File.WRITE) 426 file.open("user://settings/archipelago", File.WRITE)
424 427
425 var data = [ap_server, ap_user, ap_pass, _datapackages] 428 var data = [ap_server, ap_user, ap_pass, _datapackages, confusify_world]
426 file.store_var(data, true) 429 file.store_var(data, true)
427 file.close() 430 file.close()
428 431
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index ce97918..b6d0fba 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -181,8 +181,9 @@ func _load():
181 set_gridmap_tile(-88.5, 4.5, -41.5, "MeshInstance8") 181 set_gridmap_tile(-88.5, 4.5, -41.5, "MeshInstance8")
182 set_gridmap_tile(-89.5, 4.5, -41.5, "MeshInstance4") 182 set_gridmap_tile(-89.5, 4.5, -41.5, "MeshInstance4")
183 183
184 # Remove welcome back / color hallway / sunwarp indicators. 184 if apclient.confusify_world:
185 $Decorations/Signs/"Welcome Back Signs".queue_free() 185 # Remove welcome back / color hallway / sunwarp indicators.
186 $Decorations/Signs/"Welcome Back Signs".queue_free()
186 187
187 if apclient._panel_shuffle != apclient.kNO_PANEL_SHUFFLE: 188 if apclient._panel_shuffle != apclient.kNO_PANEL_SHUFFLE:
188 # Make The Wondrous's FIRE solely midred. 189 # Make The Wondrous's FIRE solely midred.
diff --git a/Archipelago/settings_buttons.gd b/Archipelago/settings_buttons.gd index 0050504..a6bba2a 100644 --- a/Archipelago/settings_buttons.gd +++ b/Archipelago/settings_buttons.gd
@@ -12,6 +12,7 @@ func _connect_pressed():
12 apclient.ap_server = self.get_parent().get_node("server_box").text 12 apclient.ap_server = self.get_parent().get_node("server_box").text
13 apclient.ap_user = self.get_parent().get_node("player_box").text 13 apclient.ap_user = self.get_parent().get_node("player_box").text
14 apclient.ap_pass = self.get_parent().get_node("password_box").text 14 apclient.ap_pass = self.get_parent().get_node("password_box").text
15 apclient.confusify_world = self.get_parent().get_node("confusing_box").pressed
15 apclient.saveSettings() 16 apclient.saveSettings()
16 17
17 apclient.connectToServer() 18 apclient.connectToServer()
diff --git a/Archipelago/settings_screen.gd b/Archipelago/settings_screen.gd index 3f56962..3769809 100644 --- a/Archipelago/settings_screen.gd +++ b/Archipelago/settings_screen.gd
@@ -43,6 +43,7 @@ func _ready():
43 self.get_node("Panel/server_box").text = apclient.ap_server 43 self.get_node("Panel/server_box").text = apclient.ap_server
44 self.get_node("Panel/player_box").text = apclient.ap_user 44 self.get_node("Panel/player_box").text = apclient.ap_user
45 self.get_node("Panel/password_box").text = apclient.ap_pass 45 self.get_node("Panel/password_box").text = apclient.ap_pass
46 self.get_node("Panel/confusing_box").pressed = apclient.confusify_world
46 47
47 # Show client version. 48 # Show client version.
48 self.get_node("Panel/title").text = "ARCHIPELAGO (%s)" % apclient.my_version 49 self.get_node("Panel/title").text = "ARCHIPELAGO (%s)" % apclient.my_version
diff --git a/archipelago.tscn b/archipelago.tscn index bad8631..884cbb5 100644 --- a/archipelago.tscn +++ b/archipelago.tscn
@@ -1,4 +1,4 @@
1[gd_scene load_steps=9 format=2] 1[gd_scene load_steps=11 format=2]
2 2
3[ext_resource path="res://nodes/label.tscn" type="PackedScene" id=1] 3[ext_resource path="res://nodes/label.tscn" type="PackedScene" id=1]
4[ext_resource path="res://fonts/Lingo.tres" type="DynamicFont" id=2] 4[ext_resource path="res://fonts/Lingo.tres" type="DynamicFont" id=2]
@@ -6,6 +6,8 @@
6[ext_resource path="user://maps/Archipelago/settings_buttons.gd" type="Script" id=4] 6[ext_resource path="user://maps/Archipelago/settings_buttons.gd" type="Script" id=4]
7[ext_resource path="user://maps/Archipelago/settings_screen.gd" type="Script" id=5] 7[ext_resource path="user://maps/Archipelago/settings_screen.gd" type="Script" id=5]
8[ext_resource path="res://fonts/Lingo35.tres" type="DynamicFont" id=6] 8[ext_resource path="res://fonts/Lingo35.tres" type="DynamicFont" id=6]
9[ext_resource path="res://images/unchecked.png" type="Texture" id=7]
10[ext_resource path="res://images/checked.png" type="Texture" id=8]
9 11
10[sub_resource type="StyleBoxFlat" id=1] 12[sub_resource type="StyleBoxFlat" id=1]
11bg_color = Color( 0, 0, 0, 0 ) 13bg_color = Color( 0, 0, 0, 0 )
@@ -73,19 +75,28 @@ text = "BACK"
73script = ExtResource( 4 ) 75script = ExtResource( 4 )
74 76
75[node name="credit2" parent="Panel" instance=ExtResource( 1 )] 77[node name="credit2" parent="Panel" instance=ExtResource( 1 )]
76margin_left = 75.0 78margin_left = -105.0
77margin_top = 346.0 79margin_top = 346.0
78margin_right = 665.0 80margin_right = 485.0
79margin_bottom = 410.0 81margin_bottom = 410.0
80custom_fonts/font = ExtResource( 2 ) 82custom_fonts/font = ExtResource( 2 )
81custom_styles/normal = SubResource( 1 ) 83custom_styles/normal = SubResource( 1 )
82text = "SERVER" 84text = "SERVER"
83align = 2 85align = 2
84 86
87[node name="credit5" parent="Panel" instance=ExtResource( 1 )]
88margin_left = 1239.0
89margin_top = 271.0
90margin_right = 1829.0
91margin_bottom = 335.0
92custom_fonts/font = ExtResource( 2 )
93custom_styles/normal = SubResource( 1 )
94text = "OPTIONS"
95
85[node name="credit3" parent="Panel" instance=ExtResource( 1 )] 96[node name="credit3" parent="Panel" instance=ExtResource( 1 )]
86margin_left = 75.0 97margin_left = -105.0
87margin_top = 519.0 98margin_top = 519.0
88margin_right = 665.0 99margin_right = 485.0
89margin_bottom = 583.0 100margin_bottom = 583.0
90custom_fonts/font = ExtResource( 2 ) 101custom_fonts/font = ExtResource( 2 )
91custom_styles/normal = SubResource( 1 ) 102custom_styles/normal = SubResource( 1 )
@@ -93,9 +104,9 @@ text = "PLAYER"
93align = 2 104align = 2
94 105
95[node name="credit4" parent="Panel" instance=ExtResource( 1 )] 106[node name="credit4" parent="Panel" instance=ExtResource( 1 )]
96margin_left = 75.0 107margin_left = -105.0
97margin_top = 704.0 108margin_top = 704.0
98margin_right = 665.0 109margin_right = 485.0
99margin_bottom = 768.0 110margin_bottom = 768.0
100custom_fonts/font = ExtResource( 2 ) 111custom_fonts/font = ExtResource( 2 )
101custom_styles/normal = SubResource( 1 ) 112custom_styles/normal = SubResource( 1 )
@@ -103,9 +114,9 @@ text = "PASSWORD"
103align = 2 114align = 2
104 115
105[node name="server_box" type="LineEdit" parent="Panel"] 116[node name="server_box" type="LineEdit" parent="Panel"]
106margin_left = 682.0 117margin_left = 502.0
107margin_top = 295.0 118margin_top = 295.0
108margin_right = 1324.0 119margin_right = 1144.0
109margin_bottom = 445.0 120margin_bottom = 445.0
110custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) 121custom_colors/selection_color = Color( 0.482353, 0, 0, 1 )
111custom_colors/cursor_color = Color( 0, 0, 0, 1 ) 122custom_colors/cursor_color = Color( 0, 0, 0, 1 )
@@ -115,9 +126,9 @@ align = 1
115caret_blink = true 126caret_blink = true
116 127
117[node name="player_box" type="LineEdit" parent="Panel"] 128[node name="player_box" type="LineEdit" parent="Panel"]
118margin_left = 682.0 129margin_left = 502.0
119margin_top = 477.0 130margin_top = 477.0
120margin_right = 1324.0 131margin_right = 1144.0
121margin_bottom = 627.0 132margin_bottom = 627.0
122custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) 133custom_colors/selection_color = Color( 0.482353, 0, 0, 1 )
123custom_colors/cursor_color = Color( 0, 0, 0, 1 ) 134custom_colors/cursor_color = Color( 0, 0, 0, 1 )
@@ -127,9 +138,9 @@ align = 1
127caret_blink = true 138caret_blink = true
128 139
129[node name="password_box" type="LineEdit" parent="Panel"] 140[node name="password_box" type="LineEdit" parent="Panel"]
130margin_left = 682.0 141margin_left = 502.0
131margin_top = 659.0 142margin_top = 659.0
132margin_right = 1324.0 143margin_right = 1144.0
133margin_bottom = 809.0 144margin_bottom = 809.0
134custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) 145custom_colors/selection_color = Color( 0.482353, 0, 0, 1 )
135custom_colors/cursor_color = Color( 0, 0, 0, 1 ) 146custom_colors/cursor_color = Color( 0, 0, 0, 1 )
@@ -142,5 +153,15 @@ caret_blink = true
142margin_right = 83.0 153margin_right = 83.0
143margin_bottom = 58.0 154margin_bottom = 58.0
144 155
156[node name="confusing_box" type="CheckBox" parent="Panel"]
157margin_left = 1227.0
158margin_top = 351.0
159margin_right = 1832.0
160margin_bottom = 439.0
161custom_fonts/font = ExtResource( 6 )
162custom_icons/checked = ExtResource( 8 )
163custom_icons/unchecked = ExtResource( 7 )
164text = "Make world more confusing"
165
145[connection signal="pressed" from="Panel/connect_button" to="Panel/connect_button" method="_connect_pressed"] 166[connection signal="pressed" from="Panel/connect_button" to="Panel/connect_button" method="_connect_pressed"]
146[connection signal="pressed" from="Panel/quit_button" to="Panel/quit_button" method="_back_pressed"] 167[connection signal="pressed" from="Panel/quit_button" to="Panel/quit_button" method="_back_pressed"]