diff options
author | BotchedRPR <68894028+BotchedRPR@users.noreply.github.com> | 2022-06-01 14:17:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 14:17:24 +0200 |
commit | c6b59dc449f4a39247b65d7800d04057f2f26be6 (patch) | |
tree | 6ce44a39cc98aac41449766db563d35d81ee3d4d /Northstar.Client/mod/scripts | |
parent | 1cd2f6c991fdf3586b12feb58ff9204731b8da5a (diff) | |
download | NorthstarMods-c6b59dc449f4a39247b65d7800d04057f2f26be6.tar.gz NorthstarMods-c6b59dc449f4a39247b65d7800d04057f2f26be6.zip |
Display Northstar version on title screen (#346)v1.8.0-rc2
* Create main.menu
for showing NS version on title screen
* Display Northstar version on main menu.
Pulling data from Northstar.Custom, now the version of Northstar is displayed on the main menu, above the Respawn logo.
* Get version data from Northstar.Client instead of Northstar.Custom
* formatted main.menu
Diffstat (limited to 'Northstar.Client/mod/scripts')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_ns_setversionlabel.nut | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_setversionlabel.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_setversionlabel.nut new file mode 100644 index 00000000..6dbafde9 --- /dev/null +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_setversionlabel.nut @@ -0,0 +1,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) +} + |