mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-25 07:35:34 -07:00
always display XX/YY when in ammo/capacity mode
This commit is contained in:
parent
e11ca62ee1
commit
47c7d3f061
1 changed files with 7 additions and 8 deletions
|
@ -375,7 +375,7 @@ void DrawItemCount(ItemTrackerItem item) {
|
||||||
} else {
|
} else {
|
||||||
currentColor = IM_COL_GREEN;
|
currentColor = IM_COL_GREEN;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
if (shouldDisplayMax) {
|
if (shouldDisplayMax) {
|
||||||
currentString += "/";
|
currentString += "/";
|
||||||
maxString = std::to_string(currentAndMax.currentCapacity);
|
maxString = std::to_string(currentAndMax.currentCapacity);
|
||||||
|
@ -383,7 +383,6 @@ void DrawItemCount(ItemTrackerItem item) {
|
||||||
if (currentAndMax.currentAmmo <= 0) {
|
if (currentAndMax.currentAmmo <= 0) {
|
||||||
currentColor = IM_COL_GRAY;
|
currentColor = IM_COL_GRAY;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
currentString = std::to_string(currentAndMax.currentCapacity);
|
currentString = std::to_string(currentAndMax.currentCapacity);
|
||||||
if (currentAndMax.currentCapacity >= currentAndMax.maxCapacity) {
|
if (currentAndMax.currentCapacity >= currentAndMax.maxCapacity) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue