Skip to content

Commit 4f753e2

Browse files
zonkmachinesturnclaw
authored andcommitted
Padding for umlaut in bbs
Orbitron/Orbiteer need space above or parts of letters may be cut off. This is especially visible with letters with diacritical marks. Like Ä or Ö.
1 parent aae6d30 commit 4f753e2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

data/pigui/modules/station-view/01-lobby.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ local function drawPlayerInfo()
279279
-- face display has 1:1 aspect ratio, and we need size for a launch button underneath
280280
local infoColumnWidth = -math.min(ui.getContentRegion().y - buttonSizeSpacing, widgetSizes.faceSize.x) - widgetSizes.itemSpacing.x
281281
ui.child("PlayerShipFuel", Vector2(infoColumnWidth, 0), function()
282+
ui.spacing() -- Extra padding for umlaut and other signs on top of the station label.
282283
textTable.withHeading(station.label, orbiteer.title, {
283284
{ tech_certified, "" },
284285
{ station_docks, "" },

data/pigui/modules/station-view/02-bulletinBoard.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ bulletinBoard = Table.New("BulletinBoardTable", false, {
7777
ui.setColumnWidth(0, self.style.size.x)
7878
end,
7979
renderItem = function(self, item, key)
80+
if key == 1 then -- Insert padding or Orbiteer gets cut off on the first bbs item.
81+
ui.dummy(Vector2(0, 0))
82+
end
8083
local icon = item.icon or "default"
8184
local region = ui.getContentRegion()
8285

0 commit comments

Comments
 (0)