X Tutup
Skip to content

Station Name Overlap in System View Economy window Fix Suggestion #6091

@VorTechnix

Description

@VorTechnix

Issue:

Image

Solution

Replace

ui.sameLine(ui.getContentRegion().x - ui.calcTextSize(selected.name).x)

with

local crx = ui.getContentRegion().x
local snx = ui.calcTextSize(selected.name).x
if ui.calcTextSize(current.name).x + snx < crx - 2 then ui.sameLine(crx - snx) end

Second station name redirects to newline on overflow

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup