[-] Fixed new UI colors drawing (to-do: need more generic way to specify colors)
This commit is contained in:
parent
a4b526c42c
commit
b7ee246ab8
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ void CContentTypeCompleteBar::Draw(const CUnit &unit, CFont *) const
|
|||
ColorGray, ColorDarkGray, ColorWhite, ColorOrange,
|
||||
ColorLightBlue, ColorBlue, ColorDarkGreen, ColorBlack
|
||||
};
|
||||
const Uint32 color = (1 <= Color && Color <= 9) ?
|
||||
const Uint32 color = (1 <= Color && Color <= (sizeof(colors) / sizeof(Uint32))) ?
|
||||
colors[this->Color - 1] : UI.CompletedBarColor;
|
||||
|
||||
int f = (100 * unit.Variable[this->Index].Value) / unit.Variable[this->Index].Max;
|
||||
|
|
Loading…
Reference in a new issue