Skip to content

Commit

Permalink
station visuaID
Browse files Browse the repository at this point in the history
  • Loading branch information
joonicks committed Sep 28, 2021
1 parent 37d6b32 commit 5022d0a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion data/pigui/modules/station-view/01-lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,29 @@ 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)
ui.textWrapped(loretext)
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
Expand Down

0 comments on commit 5022d0a

Please sign in to comment.