From 9a96d0bff56f1969c68bb52a2f33296095bdc67d Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Tue, 31 Aug 2021 23:14:58 +0100 Subject: move to new mod format --- Northstar.Client/mod.json | 57 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 48 insertions(+), 9 deletions(-) (limited to 'Northstar.Client/mod.json') diff --git a/Northstar.Client/mod.json b/Northstar.Client/mod.json index f9a6fea5b..1edf2ba1c 100644 --- a/Northstar.Client/mod.json +++ b/Northstar.Client/mod.json @@ -1,15 +1,54 @@ { - "ApiId" : "Northstar.Client", "Name" : "Northstar.Client", "Description" : "Various ui and client changes to fix bugs and add better support for mods", - "Authors" : [ - "BobTheBob" - ], - "Contacts" : [ - "BobTheBob#1150" - ], - "Version" : "0.1", - "CustomScripts": [ + "LoadPriority": 0, + + // ui inits need to happen before so our init callbacks get called + "Scripts": [ + { + "Path": "ui/menu_ns_modmenu.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarModMenu", + "After": "AddNorthstarModMenu_MainMenuFooter" // need to do this after, so we add footer after mainmenu init + } + }, + + { + "Path": "ui/menu_ns_serverbrowser.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarServerBrowserMenu" + } + }, + + { + "Path": "ui/menu_ns_connect_password.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarConnectWithPasswordMenu" + } + }, + + { + "Path": "ui/menu_ns_custom_match_settings_categories.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" + } + }, + + { + "Path": "ui/menu_ns_custom_match_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsMenu" + } + } + ], + + "Localisation": [ + "resource/northstar_client_localisation_%language%.txt" ] } \ No newline at end of file -- cgit v1.2.3