From 08787a9f8b99c4a41d0e8ab7a2d053e81f7237b7 Mon Sep 17 00:00:00 2001 From: grbr404 <166065505+grbr404@users.noreply.github.com> Date: Thu, 5 Jun 2025 23:04:57 +0200 Subject: Update StarItemSlotWidget.cpp --- source/windowing/StarItemSlotWidget.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp index b579e7c..73a554f 100644 --- a/source/windowing/StarItemSlotWidget.cpp +++ b/source/windowing/StarItemSlotWidget.cpp @@ -197,16 +197,11 @@ if (m_item->count() > 1 && m_showCount) { // we don't need to tell people that } else if (m_item->count() >= 1000000) { // Million (m) formattedCount = toString(m_item->count() / 1000000) + "m"; } else if (m_item->count() >= 1000) { // Thousand (k) - formattedCount = toString(m_item->count() / 1000) + "k"; + formattedCount = toString(m_item->count() / 10000) + "k"; } else { formattedCount = toString(m_item->count()); } - // Ensure formatted count is at most 4 characters long - if (formattedCount.length() > 4) { - formattedCount = formattedCount.substr(0, 4); - } - context()->setTextStyle(m_textStyle); context()->setFontMode(m_countFontMode); context()->renderInterfaceText(formattedCount, m_countPosition.translated(Vec2F(screenPosition()))); -- cgit v1.2.3