Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/test_portal2_apworld.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/verify_version.yml

This file was deleted.

6 changes: 0 additions & 6 deletions worlds/portal2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ class Portal2ExtrasFilePath(settings.UserFilePath):
"""The file path of the extras.txt file (used to generate the menu in game)"""
description = "Portal 2 extras.txt file inside the mod"

is_windows = sys.platform == "win32"
is_linux = sys.platform == "linux"
extras_path = "C:/Program Files (x86)/Steam/steamapps/sourcemods/Portal2Archipelago/scripts/extras.txt" if is_windows else \
"$HOME/.local/share/Steam/steamapps/sourcemods/Portal2Archipelago/scripts/extras.txt" if is_linux else "" # May may be user specific so cannot auto select
menu_file: Portal2ExtrasFilePath = Portal2ExtrasFilePath(extras_path)

class Portal2NetConPort(int):
"""The port set in the portal 2 launch options e.g. 3000"""

Expand Down
3 changes: 2 additions & 1 deletion worlds/portal2/client/P2Context.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ def __init__(self, name_text: str, count_text: str, on_release):
)

self.name_label = MDLabel(
text=name_text, width=dp(150), size_hint_x=None, halign="left"
text=name_text, width=dp(130), size_hint_x=None, halign="left", shorten=True, shorten_from="right"
)

self.count_label = MDLabel(
text=count_text,
halign="right",
Expand Down
5 changes: 0 additions & 5 deletions worlds/portal2/client/Portal2Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from ..mod_helpers.MapMenu import GameMapMenu
from .DeathMessages import get_death_message
from ..Locations import location_names_to_map_codes, map_codes_to_location_names, wheatley_maps_to_monitor_names, all_locations_table, wheatley_monitor_table, ratman_den_locations_table
from .. import Portal2World
from ..Options import GameModeOption

if __name__ == "__main__":
Expand Down Expand Up @@ -106,13 +105,9 @@ def create_level_begin_command(self):
return f"{';'.join(self.item_remove_commands)}\n"

def update_menu(self, location_id: int = None):
menu_file = Portal2World.settings.menu_file
check_completed = False
if location_id is not None:
check_completed = self.game_map_menu.complete_check(location_id)
# Write the menu to that file
with open(menu_file, "w", encoding='utf-8') as f:
f.write(str(self.game_map_menu))

self.client_map_menu.update_menu(self.game_map_menu.get_menu_info(), location_id)
return check_completed
Expand Down
Empty file removed worlds/portal2/test/__init__.py
Empty file.
5 changes: 0 additions & 5 deletions worlds/portal2/test/bases.py

This file was deleted.

19 changes: 0 additions & 19 deletions worlds/portal2/test/test_additional_checks.py

This file was deleted.

43 changes: 0 additions & 43 deletions worlds/portal2/test/test_base_menu.py

This file was deleted.

9 changes: 0 additions & 9 deletions worlds/portal2/test/test_chaotic_game_mode.py

This file was deleted.

20 changes: 0 additions & 20 deletions worlds/portal2/test/test_item_checks.py

This file was deleted.

63 changes: 0 additions & 63 deletions worlds/portal2/test/test_menu_additional_checks.py

This file was deleted.

16 changes: 0 additions & 16 deletions worlds/portal2/test/test_normal_game_mode.py

This file was deleted.

9 changes: 0 additions & 9 deletions worlds/portal2/test/test_open_world_game_mode.py

This file was deleted.

Loading