diff options
author | Rémy Raes <raes.remy@gmail.com> | 2024-08-29 15:44:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 15:44:12 +0200 |
commit | 3d278b3b25fe0b62bec1f196116d175b29c20640 (patch) | |
tree | 2978d63c8705bc2a8d044299debad586c1aa4206 | |
parent | ffc5dfd0b637f56846ac1bb6330dce7544d40762 (diff) | |
download | NorthstarMods-3d278b3b25fe0b62bec1f196116d175b29c20640.tar.gz NorthstarMods-3d278b3b25fe0b62bec1f196116d175b29c20640.zip |
Hide remote mods in mods display (#799)
As they are supposed to be disabled unless joining a server that requires that mod.
-rw-r--r-- | .github/nativefuncs.json | 18 | ||||
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/.github/nativefuncs.json b/.github/nativefuncs.json index 889432d7..11042903 100644 --- a/.github/nativefuncs.json +++ b/.github/nativefuncs.json @@ -19,6 +19,12 @@ "argTypes":"string modName, bool enabled" }, { + "name":"NSIsModRemote", + "helpText":"", + "returnTypeString":"bool", + "argTypes":"string modName" + }, + { "name":"NSGetModDescriptionByModName", "helpText":"", "returnTypeString":"string", @@ -267,6 +273,12 @@ "argTypes":"string modName, bool enabled" }, { + "name":"NSIsModRemote", + "helpText":"", + "returnTypeString":"bool", + "argTypes":"string modName" + }, + { "name":"NSGetModDescriptionByModName", "helpText":"", "returnTypeString":"string", @@ -467,6 +479,12 @@ "argTypes":"string modName, bool enabled" }, { + "name":"NSIsModRemote", + "helpText":"", + "returnTypeString":"bool", + "argTypes":"string modName" + }, + { "name":"NSGetModDescriptionByModName", "helpText":"", "returnTypeString":"string", diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut index 3f643aa3..f08d69a7 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut @@ -338,6 +338,10 @@ void function RefreshMods() { string mod = modNames[i] + // Do not display remote mods + if ( NSIsModRemote( mod ) ) + continue + if ( searchTerm.len() && mod.tolower().find( searchTerm ) == null ) continue |