diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-21 19:31:55 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-21 19:31:55 -0400 |
commit | 692e65f8d168227a4fac97899bea407b1dfafefc (patch) | |
tree | 83509154b29044a190bb3ab82a2fe113aa81a32b /Archipelago | |
parent | dc6840045cd72313c4ff8f5248e1c24fea9b4ffe (diff) | |
download | lingo-archipelago-692e65f8d168227a4fac97899bea407b1dfafefc.tar.gz lingo-archipelago-692e65f8d168227a4fac97899bea407b1dfafefc.tar.bz2 lingo-archipelago-692e65f8d168227a4fac97899bea407b1dfafefc.zip |
Prevent selecting another level after running AP
Diffstat (limited to 'Archipelago')
-rw-r--r-- | Archipelago/settings_menu.gd | 25 | ||||
-rw-r--r-- | Archipelago/settings_screen.gd | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Archipelago/settings_menu.gd b/Archipelago/settings_menu.gd new file mode 100644 index 0000000..0efce40 --- /dev/null +++ b/Archipelago/settings_menu.gd | |||
@@ -0,0 +1,25 @@ | |||
1 | extends "res://scripts/settings_menu.gd" | ||
2 | |||
3 | |||
4 | func _ready(): | ||
5 | var level_tab = get_node("Panel/Tabs/Level") | ||
6 | level_tab.get_node("ScrollContainer").queue_free() | ||
7 | level_tab.get_node("upload_button").queue_free() | ||
8 | |||
9 | var new_label = Label.new() | ||
10 | new_label.text = "You must restart Lingo before playing a non-Archipelago game." | ||
11 | new_label.align = Label.ALIGN_CENTER | ||
12 | new_label.valign = Label.VALIGN_CENTER | ||
13 | new_label.autowrap = true | ||
14 | new_label.margin_left = 25 | ||
15 | new_label.margin_top = 25 | ||
16 | new_label.margin_right = 1250 | ||
17 | new_label.margin_bottom = 492 | ||
18 | |||
19 | var field_font = DynamicFont.new() | ||
20 | field_font.font_data = load("res://fonts/Lingo2.ttf") | ||
21 | field_font.size = 48 | ||
22 | |||
23 | new_label.add_font_override("font", field_font) | ||
24 | |||
25 | level_tab.add_child(new_label) | ||
diff --git a/Archipelago/settings_screen.gd b/Archipelago/settings_screen.gd index 79fdcc3..43c9468 100644 --- a/Archipelago/settings_screen.gd +++ b/Archipelago/settings_screen.gd | |||
@@ -55,6 +55,7 @@ func _ready(): | |||
55 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/panelInput.gd")) | 55 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/panelInput.gd")) |
56 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/pause_menu.gd")) | 56 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/pause_menu.gd")) |
57 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/player.gd")) | 57 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/player.gd")) |
58 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/settings_menu.gd")) | ||
58 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/teleport.gd")) | 59 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/teleport.gd")) |
59 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/worldTransporter.gd")) | 60 | installScriptExtension(ResourceLoader.load("user://maps/Archipelago/worldTransporter.gd")) |
60 | 61 | ||