From d37c5ae333b4e622ebd0d18cf02a87d66aac62f9 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sun, 17 Oct 2021 22:30:11 +0100 Subject: unsure why these didn't get pushed in last commit --- .../mod/scripts/vscripts/ui/menu_main.nut | 34 ++++++++++++---------- .../mod/scripts/vscripts/ui/panel_mainmenu.nut | 5 ---- 2 files changed, 18 insertions(+), 21 deletions(-) (limited to 'Northstar.Client/mod/scripts/vscripts/ui') diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_main.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_main.nut index 9a40f788..c6ef5f3a 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_main.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_main.nut @@ -599,22 +599,24 @@ void function DoGameNeedsToInstallDialog() void function UpdateTrialLabel() { - bool isTrialVersion - bool lastIsTrialVersion = Script_IsRunningTrialVersion() - - Hud_SetVisible( file.trialLabel, lastIsTrialVersion ) - - while ( GetTopNonDialogMenu() == file.menu ) - { - isTrialVersion = Script_IsRunningTrialVersion() - - if ( isTrialVersion != lastIsTrialVersion ) - Hud_SetVisible( file.trialLabel, isTrialVersion ) - - lastIsTrialVersion = isTrialVersion - - WaitFrame() - } + //bool isTrialVersion + //bool lastIsTrialVersion = Script_IsRunningTrialVersion() + + Hud_SetColor( file.trialLabel, 101, 109, 207, 255 ) + Hud_SetText( file.trialLabel, "+ NORTHSTAR" ) + Hud_SetVisible( file.trialLabel, true ) + + //while ( GetTopNonDialogMenu() == file.menu ) + //{ + // isTrialVersion = Script_IsRunningTrialVersion() + // + // if ( isTrialVersion != lastIsTrialVersion ) + // Hud_SetVisible( file.trialLabel, isTrialVersion ) + // + // lastIsTrialVersion = isTrialVersion + // + // WaitFrame() + //} } void function OpenSinglePlayerDevMenu( var button ) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut index d42a2331..2eafa373 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut @@ -32,11 +32,6 @@ const DEBUG_PERMISSIONS = false void function InitMainMenuPanel() { - // disable communities because of the cool openinvite exploit (not required anymore but keeping here anyway - SetConVarBool( "communities_enabled", false ) - SetConVarString( "communities_hostname", "localhost" ) - - RegisterSignal( "EndShowMainMenuPanel" ) file.panel = GetPanel( "MainMenuPanel" ) -- cgit v1.2.3