-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ void GoldUI::set_gold(int gold) { | |
total_gold.set_text(std::to_string(cur_gold)); | ||
|
||
// Update delta text | ||
std::string prefix = cur_delta < 0 ? "-" : "+"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
richard1
Author
Collaborator
|
||
std::string prefix = cur_delta <= 0 ? "-" : "+"; | ||
Color color = cur_delta < 0 ? Color::INDIAN_RED : Color::WINDWAKER_GREEN; | ||
gold_delta.set_text(prefix + std::to_string(std::abs(cur_delta))); | ||
gold_delta.set_color(color); | ||
|
you would want to see "-0" over "+0"? Anyways, nice last commit.