Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarItemSlotWidget.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 19:29:21 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 19:29:21 +1000
commit994c533a0f7b4aa1a1530405505a53546252e1d1 (patch)
tree3e190174ef93a35f53b842c61098544df8216356 /source/windowing/StarItemSlotWidget.cpp
parent856e93be3f1a443db2679ad7db9f6890a9b4d936 (diff)
Improve planet name title
They began showing during the warp cinematic and their fade-out timing was wrong.
Diffstat (limited to 'source/windowing/StarItemSlotWidget.cpp')
-rw-r--r--source/windowing/StarItemSlotWidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp
index 4d67175..2958957 100644
--- a/source/windowing/StarItemSlotWidget.cpp
+++ b/source/windowing/StarItemSlotWidget.cpp
@@ -189,6 +189,8 @@ void ItemSlotWidget::renderImpl() {
context()->setFontColor(m_fontColor.toRgba());
context()->setFontMode(m_countFontMode);
context()->renderInterfaceText(toString(m_item->count()), m_countPosition.translated(Vec2F(screenPosition())));
+ context()->setFontMode(FontMode::Normal);
+ context()->setDefaultFont();
}
} else if (m_drawBackingImageWhenEmpty && m_backingImage != "") {