Skip to content

Commit 269bd50

Browse files
committed
2 parents d55ea34 + bb107da commit 269bd50

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

openGOALModLauncher.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class ColumnEnum(IntEnum):
212212
0, # website
213213
0, # videos
214214
0, # photos
215-
]
215+
]
216216

217217
FILTER_STR = ""
218218
FILTER_GAME = "jak1"
@@ -324,7 +324,7 @@ def getRefreshedTableData(sort_col_idx):
324324
release_date = datetime.strptime(mod["release_date"], '%Y-%m-%d')
325325
if datetime.now() - release_date < timedelta(days = 10):
326326
release_date_str = release_date_str + " ✨NEW✨"
327-
327+
328328
mod_table_data.append(
329329
[
330330
mod_id,
@@ -368,7 +368,7 @@ def getRefreshedTableData(sort_col_idx):
368368
# add asc/desc arrows if not in our wakeup sort special case
369369
sorted_table_headings[remapped_col_idx] += " ↑" if LATEST_TABLE_SORT[1] else " ↓"
370370

371-
if remapped_col_idx == ColumnEnum.SPECIAL:
371+
if remapped_col_idx == ColumnEnum.SPECIAL:
372372
# special sort for wakeup, do coalesce(access date,release date)
373373
mod_table_data.sort(
374374
key=lambda x: x[ColumnEnum.RELEASE_DATE]
@@ -869,9 +869,19 @@ def loading_screen_with_thread(thread):
869869
tmpModURL = window["-SELECTEDMODNAME-"].metadata["url"]
870870
tmpGame = window["-SELECTEDMODNAME-"].metadata["game"]
871871

872-
launch_thread = threading.Thread(target=launch_mod, args=(tmpModURL,))
873872

874-
loading_screen_with_thread(launch_thread)
873+
selected_mod_tags = window["-SELECTEDMODTAGS-"].get()
874+
if "external" in selected_mod_tags:
875+
ans = sg.popup_ok_cancel(tmpModName + " is an external mod that can be found at " + tmpModURL + " would you like to go there now?", icon=iconfile, image=iconfile)
876+
if ans == "OK":
877+
webbrowser.open(tmpModURL)
878+
reset()
879+
else:
880+
launch_thread = threading.Thread(target=launch_mod, args=(tmpModURL,))
881+
882+
loading_screen_with_thread(launch_thread)
883+
884+
875885
elif event == "-VIEWFOLDER-":
876886
tmpModSelected = window["-SELECTEDMODNAME-"].metadata["id"]
877887
subfolders = [f.name for f in os.scandir(ModFolderPATH) if f.is_dir()]

resources/jak1_mods.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"URL": "https://github.com/OpenGOAL-Mods/OG-RCO/releases",
7272
"website_url": "https://github.com/OpenGOAL-Mods/OG-RCO/blob/main/README.md",
7373
"videos_url": "https://www.youtube.com/watch?v=u8MgkLtHT4I",
74-
"game": "jak1"
74+
"game": "jak1"
7575
},
7676
"speedrun_practice": {
7777
"name": "Speedrun Practice (Jak 1)",
@@ -121,7 +121,7 @@
121121
"URL": "https://github.com/himham-jak/Jak1-but-Microtransactions/releases",
122122
"website_url": "https://github.com/himham-jak/Jak1-but-Microtransactions/blob/microtransactions/README.md",
123123
"videos_url": "https://www.youtube.com/watch?v=q5TZ9U399J8",
124-
"game": "jak1"
124+
"game": "jak1"
125125
},
126126
"jak_go_fast": {
127127
"name": "Jak1 but every power cell he gets faster",
@@ -853,5 +853,18 @@
853853
"image_override_url": "https://raw.githubusercontent.com/dallmeyer/modimages/main/cuttlefish-river-to-water.png",
854854
"website_url": "https://github.com/Cuttlefishthesage/OG-Mod-Base/tree/v0.0.1-afoniddwr.3",
855855
"game": "jak1"
856+
},
857+
"jak1_teamruns": {
858+
"name": "Team Runs",
859+
"desc": "TeamRuns is a online Jak 1 Experience Created by Dexz you can find it at https://teamruns.web.app/",
860+
"contributors": ["DexZ"],
861+
"tags": [
862+
"external"
863+
],
864+
"release_date": "2024-06-05",
865+
"URL": "https://teamruns.web.app/",
866+
"website_url": "https://teamruns.web.app/",
867+
"image_override_url":"https://teamruns.web.app/assets/teamrun-logo.png",
868+
"game": "jak1"
856869
}
857870
}

0 commit comments

Comments
 (0)