mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 08:26:50 -04:00
Improve item count handling
This commit is contained in:
parent
7b3adff1c5
commit
f3aebf22dd
@ -30,11 +30,11 @@ namespace
|
|||||||
{
|
{
|
||||||
if (count > 999999999)
|
if (count > 999999999)
|
||||||
return MyGUI::utility::toString(count/1000000000) + "b";
|
return MyGUI::utility::toString(count/1000000000) + "b";
|
||||||
else if (count > 9999999)
|
else if (count > 99999999)
|
||||||
return ">9m";
|
return ">9m";
|
||||||
else if (count > 999999)
|
else if (count > 999999)
|
||||||
return MyGUI::utility::toString(count/1000000) + "m";
|
return MyGUI::utility::toString(count/1000000) + "m";
|
||||||
else if (count > 9999)
|
else if (count > 99999)
|
||||||
return ">9k";
|
return ">9k";
|
||||||
else if (count > 999)
|
else if (count > 999)
|
||||||
return MyGUI::utility::toString(count/1000) + "k";
|
return MyGUI::utility::toString(count/1000) + "k";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user