diff options
-rw-r--r-- | Archipelago/client.gd | 5 | ||||
-rw-r--r-- | Archipelago/load.gd | 5 | ||||
-rw-r--r-- | Archipelago/settings_buttons.gd | 1 | ||||
-rw-r--r-- | Archipelago/settings_screen.gd | 1 | ||||
-rw-r--r-- | archipelago.tscn | 47 |
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 | |||
3 | var ap_server = "" | 3 | var ap_server = "" |
4 | var ap_user = "" | 4 | var ap_user = "" |
5 | var ap_pass = "" | 5 | var ap_pass = "" |
6 | var confusify_world = false | ||
6 | 7 | ||
7 | const my_version = "0.14.0" | 8 | const my_version = "0.14.0" |
8 | const ap_version = {"major": 0, "minor": 4, "build": 0, "class": "Version"} | 9 | const 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] |
11 | bg_color = Color( 0, 0, 0, 0 ) | 13 | bg_color = Color( 0, 0, 0, 0 ) |
@@ -73,19 +75,28 @@ text = "BACK" | |||
73 | script = ExtResource( 4 ) | 75 | script = ExtResource( 4 ) |
74 | 76 | ||
75 | [node name="credit2" parent="Panel" instance=ExtResource( 1 )] | 77 | [node name="credit2" parent="Panel" instance=ExtResource( 1 )] |
76 | margin_left = 75.0 | 78 | margin_left = -105.0 |
77 | margin_top = 346.0 | 79 | margin_top = 346.0 |
78 | margin_right = 665.0 | 80 | margin_right = 485.0 |
79 | margin_bottom = 410.0 | 81 | margin_bottom = 410.0 |
80 | custom_fonts/font = ExtResource( 2 ) | 82 | custom_fonts/font = ExtResource( 2 ) |
81 | custom_styles/normal = SubResource( 1 ) | 83 | custom_styles/normal = SubResource( 1 ) |
82 | text = "SERVER" | 84 | text = "SERVER" |
83 | align = 2 | 85 | align = 2 |
84 | 86 | ||
87 | [node name="credit5" parent="Panel" instance=ExtResource( 1 )] | ||
88 | margin_left = 1239.0 | ||
89 | margin_top = 271.0 | ||
90 | margin_right = 1829.0 | ||
91 | margin_bottom = 335.0 | ||
92 | custom_fonts/font = ExtResource( 2 ) | ||
93 | custom_styles/normal = SubResource( 1 ) | ||
94 | text = "OPTIONS" | ||
95 | |||
85 | [node name="credit3" parent="Panel" instance=ExtResource( 1 )] | 96 | [node name="credit3" parent="Panel" instance=ExtResource( 1 )] |
86 | margin_left = 75.0 | 97 | margin_left = -105.0 |
87 | margin_top = 519.0 | 98 | margin_top = 519.0 |
88 | margin_right = 665.0 | 99 | margin_right = 485.0 |
89 | margin_bottom = 583.0 | 100 | margin_bottom = 583.0 |
90 | custom_fonts/font = ExtResource( 2 ) | 101 | custom_fonts/font = ExtResource( 2 ) |
91 | custom_styles/normal = SubResource( 1 ) | 102 | custom_styles/normal = SubResource( 1 ) |
@@ -93,9 +104,9 @@ text = "PLAYER" | |||
93 | align = 2 | 104 | align = 2 |
94 | 105 | ||
95 | [node name="credit4" parent="Panel" instance=ExtResource( 1 )] | 106 | [node name="credit4" parent="Panel" instance=ExtResource( 1 )] |
96 | margin_left = 75.0 | 107 | margin_left = -105.0 |
97 | margin_top = 704.0 | 108 | margin_top = 704.0 |
98 | margin_right = 665.0 | 109 | margin_right = 485.0 |
99 | margin_bottom = 768.0 | 110 | margin_bottom = 768.0 |
100 | custom_fonts/font = ExtResource( 2 ) | 111 | custom_fonts/font = ExtResource( 2 ) |
101 | custom_styles/normal = SubResource( 1 ) | 112 | custom_styles/normal = SubResource( 1 ) |
@@ -103,9 +114,9 @@ text = "PASSWORD" | |||
103 | align = 2 | 114 | align = 2 |
104 | 115 | ||
105 | [node name="server_box" type="LineEdit" parent="Panel"] | 116 | [node name="server_box" type="LineEdit" parent="Panel"] |
106 | margin_left = 682.0 | 117 | margin_left = 502.0 |
107 | margin_top = 295.0 | 118 | margin_top = 295.0 |
108 | margin_right = 1324.0 | 119 | margin_right = 1144.0 |
109 | margin_bottom = 445.0 | 120 | margin_bottom = 445.0 |
110 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) | 121 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) |
111 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) | 122 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) |
@@ -115,9 +126,9 @@ align = 1 | |||
115 | caret_blink = true | 126 | caret_blink = true |
116 | 127 | ||
117 | [node name="player_box" type="LineEdit" parent="Panel"] | 128 | [node name="player_box" type="LineEdit" parent="Panel"] |
118 | margin_left = 682.0 | 129 | margin_left = 502.0 |
119 | margin_top = 477.0 | 130 | margin_top = 477.0 |
120 | margin_right = 1324.0 | 131 | margin_right = 1144.0 |
121 | margin_bottom = 627.0 | 132 | margin_bottom = 627.0 |
122 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) | 133 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) |
123 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) | 134 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) |
@@ -127,9 +138,9 @@ align = 1 | |||
127 | caret_blink = true | 138 | caret_blink = true |
128 | 139 | ||
129 | [node name="password_box" type="LineEdit" parent="Panel"] | 140 | [node name="password_box" type="LineEdit" parent="Panel"] |
130 | margin_left = 682.0 | 141 | margin_left = 502.0 |
131 | margin_top = 659.0 | 142 | margin_top = 659.0 |
132 | margin_right = 1324.0 | 143 | margin_right = 1144.0 |
133 | margin_bottom = 809.0 | 144 | margin_bottom = 809.0 |
134 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) | 145 | custom_colors/selection_color = Color( 0.482353, 0, 0, 1 ) |
135 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) | 146 | custom_colors/cursor_color = Color( 0, 0, 0, 1 ) |
@@ -142,5 +153,15 @@ caret_blink = true | |||
142 | margin_right = 83.0 | 153 | margin_right = 83.0 |
143 | margin_bottom = 58.0 | 154 | margin_bottom = 58.0 |
144 | 155 | ||
156 | [node name="confusing_box" type="CheckBox" parent="Panel"] | ||
157 | margin_left = 1227.0 | ||
158 | margin_top = 351.0 | ||
159 | margin_right = 1832.0 | ||
160 | margin_bottom = 439.0 | ||
161 | custom_fonts/font = ExtResource( 6 ) | ||
162 | custom_icons/checked = ExtResource( 8 ) | ||
163 | custom_icons/unchecked = ExtResource( 7 ) | ||
164 | text = "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"] |