From 5022d0a0fcfc7b01790d98f112da8d450b21a2e6 Mon Sep 17 00:00:00 2001 From: joonicks Date: Tue, 28 Sep 2021 21:03:34 +0200 Subject: [PATCH] station visuaID --- data/pigui/modules/station-view/01-lobby.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/data/pigui/modules/station-view/01-lobby.lua b/data/pigui/modules/station-view/01-lobby.lua index 68bda1483a9..be46652d2f3 100644 --- a/data/pigui/modules/station-view/01-lobby.lua +++ b/data/pigui/modules/station-view/01-lobby.lua @@ -272,12 +272,15 @@ local function drawPlayerInfo() ui.child("Wrapper", Vector2(0, lobbyMenuAtBottom and -lobbyMenuHeight or 0), {}, function() ui.child("PlayerShipFuel", Vector2(infoColumnWidth, 0), {"AlwaysUseWindowPadding"}, function() local curPos = ui.getCursorPos() + --tabLines contain basic station information + textTable.withHeading(station.label, orbiteer.xlarge, tabLines ) + + -- lore text for this station, if any local loretext = station.nolanglore or nil if loretext == nil and station.lore ~= nil then local lorelang = Lang.GetResource("lore") loretext = lorelang[station.lore] end - textTable.withHeading(station.label, orbiteer.xlarge, tabLines ) if loretext ~= nil then ui.separator() ui.pushTextWrapPos(infoColumnWidth) @@ -285,6 +288,13 @@ local function drawPlayerInfo() ui.popTextWrapPos() end + if station.visualID ~= nil then + local licensetext = "Station License: "..station.visualID + local lXY = ui.calcTextSize(licensetext) + ui.setCursorPos(Vector2(infoColumnWidth - lXY.x - 6, curPos.y)) + ui.text(licensetext) + end + if not lobbyMenuAtBottom then lobbyMenu(Vector2(curPos.x, conReg.y - lobbyMenuHeight)) end