aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/state_ui.nut
blob: 907e38faf68df5c7d0d8f0bccd1cee4bb70746ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
untyped

globalize_all_functions

void function NSUpdateGameStateUIStart()
{
    thread NSUpdateGameStateLoopUI()
}

void function NSUpdateGameStateLoopUI()
{
    while ( true )
    {
        wait 1.0
        if ( uiGlobal.loadedLevel == "" )
        {
            if ( uiGlobal.isLoading )
                NSSetLoading( true )
            else
            {
                NSSetLoading( false )
                NSUpdateGameStateUI( "", "", "", "", true, false )
            }
            continue
        }
        NSSetLoading( false )
        NSUpdateGameStateUI( GetActiveLevel(), Localize( GetMapDisplayName( GetActiveLevel() ) ), GetConVarString( "mp_gamemode" ), Localize( GetPlaylistDisplayName( GetConVarString("mp_gamemode") ) ), IsFullyConnected(), false )
    }
}