aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/ui
diff options
context:
space:
mode:
authorEmmaM <27428383+emma-miler@users.noreply.github.com>2022-02-10 23:02:20 +0100
committerBarichello <artur@barichello.me>2022-02-10 22:37:44 -0300
commitfb2a7ffe8f3a9b7a8e8ace2d1816379222202c0a (patch)
treee86d8dac5d98dcacc88c94f535a7b046ae8209d6 /Northstar.Client/mod/scripts/vscripts/ui
parent755412c924ef2016b1c84328a1bb9f97eb3edad6 (diff)
downloadNorthstarMods-fb2a7ffe8f3a9b7a8e8ace2d1816379222202c0a.tar.gz
NorthstarMods-fb2a7ffe8f3a9b7a8e8ace2d1816379222202c0a.zip
Update panel_mainmenu.nutv1.4.21.4.X
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut23
1 files changed, 12 insertions, 11 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
index 4ac3a18c..357bdfaf 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 )
@@ -426,7 +426,7 @@ void function UpdatePlayButton( var button )
break
}
}
-
+
if ( hasNonVanillaMods )
file.mpButtonActivateFunc = null
else
@@ -507,10 +507,10 @@ void function TryUnlockNorthstarButton()
Hud_SetLocked( file.fdButton, true )
if ( ( NSIsMasterServerAuthenticated() && IsStryderAuthenticated() ) || GetConVarBool( "ns_auth_allow_insecure" ) )
break
-
+
WaitFrame()
}
-
+
Hud_SetLocked( file.fdButton, false )
}
@@ -520,7 +520,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()
}
@@ -530,7 +529,7 @@ void function TryAuthWithLocalServer()
{
while ( NSIsAuthenticatingWithServer() )
WaitFrame()
-
+
if ( NSWasAuthSuccessful() )
NSCompleteAuthWithLocalServer()
@@ -744,7 +743,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()
@@ -785,11 +786,11 @@ enum eMainMenuPromoDataProperty
largeButtonText,
largeButtonUrl,
largeButtonImageIndex,
-
+
smallButton1Title,
smallButton1Url,
smallButton1ImageIndex,
-
+
smallButton2Title,
smallButton2Url,
smallButton2ImageIndex
@@ -798,7 +799,7 @@ enum eMainMenuPromoDataProperty
void function UpdateCustomMainMenuPromos()
{
NSRequestCustomMainMenuPromos()
-
+
thread UpdateCustomMainMenuPromosThreaded()
}
@@ -806,7 +807,7 @@ void function UpdateCustomMainMenuPromosThreaded()
{
while ( !NSHasCustomMainMenuPromoData() )
WaitFrame()
-
+
UpdateWhatsNewData()
UpdateSpotlightData()
}