diff options
author | EmmaM <27428383+emma-miler@users.noreply.github.com> | 2022-02-10 23:02:20 +0100 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-10 22:41:10 -0300 |
commit | 855e7f3e8b5f1a9198b7b9eeb3de7af420fa8694 (patch) | |
tree | efea3f0be8434ebb8d55e831ddcefa95fecd9c1b /Northstar.Client/mod/scripts/vscripts/ui | |
parent | 893db637d5471dc3eb43a8d0ba77cb5d49cd5008 (diff) | |
download | NorthstarMods-855e7f3e8b5f1a9198b7b9eeb3de7af420fa8694.tar.gz NorthstarMods-855e7f3e8b5f1a9198b7b9eeb3de7af420fa8694.zip |
Update panel_mainmenu.nut
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut index 343ccb74..75816c08 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut @@ -280,7 +280,7 @@ void function UpdatePlayButton( var button ) } else file.mpButtonActivateFunc = LaunchMP - + isLocked = file.mpButtonActivateFunc == null ? true : false Hud_SetLocked( button, isLocked ) @@ -431,7 +431,7 @@ void function UpdatePlayButton( var button ) break } } - + if ( hasNonVanillaMods ) file.mpButtonActivateFunc = null else @@ -514,10 +514,10 @@ void function TryUnlockNorthstarButton() { if ( ( NSIsMasterServerAuthenticated() && IsStryderAuthenticated() ) || GetConVarBool( "ns_auth_allow_insecure" ) ) break - + WaitFrame() } - + Hud_SetLocked( file.fdButton, false ) } @@ -527,7 +527,6 @@ void function OnPlayFDButton_Activate( var button ) // repurposed for launching { SetConVarBool( "ns_is_modded_server", true ) SetConVarString( "communities_hostname", "" ) // disable communities due to crash exploits that are still possible through it - NSTryAuthWithLocalServer() thread TryAuthWithLocalServer() } @@ -777,7 +776,9 @@ void function TrackInstallProgress() bool function IsStryderAuthenticated() { - return GetConVarInt( "mp_allowed" ) != -1 + // We don't actually need to wait for Stryder response, because we don't care about it anyway + return true + //return GetConVarInt( "mp_allowed" ) != -1 } bool function IsStryderAllowingMP() @@ -818,11 +819,11 @@ enum eMainMenuPromoDataProperty largeButtonText, largeButtonUrl, largeButtonImageIndex, - + smallButton1Title, smallButton1Url, smallButton1ImageIndex, - + smallButton2Title, smallButton2Url, smallButton2ImageIndex @@ -831,7 +832,7 @@ enum eMainMenuPromoDataProperty void function UpdateCustomMainMenuPromos() { NSRequestCustomMainMenuPromos() - + thread UpdateCustomMainMenuPromosThreaded() } @@ -839,7 +840,7 @@ void function UpdateCustomMainMenuPromosThreaded() { while ( !NSHasCustomMainMenuPromoData() ) WaitFrame() - + UpdateWhatsNewData() UpdateSpotlightData() } |