blob: 6dbafde961ed182247817c2e1c3268a36f24dda3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
untyped
global function NS_SetVersionLabel
void function NS_SetVersionLabel()
{
var mainMenu = GetMenu( "MainMenu" ) //Gets main menu element
var versionLabel = GetElementsByClassname( mainMenu, "nsVersionClass" )[0] //Gets the label from the mainMenu element.
Hud_SetText( versionLabel, "v" + NSGetModVersionByModName("Northstar.Client")) //Sets the label text (Getting Northstar version from Northstar.Client)
}
|