- show team color asterisk in front of resources when displaying resources for an individual team member

This commit is contained in:
SoftCoder 2014-01-29 21:13:39 -08:00
parent 4ba68576aa
commit ce375073c1
1 changed files with 21 additions and 0 deletions

View File

@ -2397,6 +2397,27 @@ void Renderer::renderResourceStatus() {
//draw resource status
if(showResource == true) {
if(localFactionResourcesOnly == true) {
string str = "*";
Vec4f resourceFontColor = Vec4f(factionForResourceView->getTexture()->getPixmapConst()->getPixel3f(0,0));
int resourceCol = 0;
int resourceRow = 0;
if(renderText3DEnabled == true) {
renderTextShadow3D(
str, CoreData::getInstance().getDisplayFontSmall3D(),
resourceFontColor,
resourceCol * 100 + 190, metrics.getVirtualH()-30 - (30 * resourceRow), false);
}
else {
renderTextShadow(
str, CoreData::getInstance().getDisplayFontSmall(),
resourceFontColor,
resourceCol * 100 + 190, metrics.getVirtualH()-30 - (30 * resourceRow), false);
}
}
const Resource *r = factionForResourceView->getResource(rt,localFactionResourcesOnly);
string str = intToStr(r->getAmount());