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

summaryrefslogtreecommitdiff
path: root/source/windowing
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-06-05 23:04:57 +0200
committerGitHub <noreply@github.com>2025-06-05 23:04:57 +0200
commit08787a9f8b99c4a41d0e8ab7a2d053e81f7237b7 (patch)
tree0c2bd9bef95e66062578f937b1df718836a3f6ff /source/windowing
parentf9ead10fc7830e3b522fcc7cc615087a48fd6c16 (diff)
Update StarItemSlotWidget.cpp
Diffstat (limited to 'source/windowing')
-rw-r--r--source/windowing/StarItemSlotWidget.cpp7
1 files changed, 1 insertions, 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())));