scale planetNameOffset by interface scale

that parameter was definitely not tested for other interface scales
This commit is contained in:
Kae 2024-06-02 14:31:25 +10:00
parent 986db9cfc5
commit 68bd850fe7

View File

@ -714,6 +714,7 @@ void MainInterface::update(float dt) {
worldName = worldTemplate->worldName();
if (!worldName.empty()) {
m_planetText->parent()->setPosition(Vec2I(Vec2F(m_config->planetNameOffset) * (2.f / interfaceScale())));
m_planetText->setText(strf(m_config->planetNameFormatString.utf8Ptr(), worldName));
m_paneManager.displayRegisteredPane(MainInterfacePanes::PlanetText);
}