add fakebar
This commit is contained in:
@@ -95,7 +95,7 @@ bool GuiPhaseBar::Leaving(JButton)
|
||||
void GuiPhaseBar::Render()
|
||||
{
|
||||
JQuadPtr quad = WResourceManager::Instance()->GetQuad("phasebar");
|
||||
JQuadPtr phaseinfo = WResourceManager::Instance()->RetrieveTempQuad("phaseinfo.png"); //new phaseinfo graphics
|
||||
JQuadPtr phaseinfo = WResourceManager::Instance()->RetrieveTempQuad("fakebar.png"); //new fakebar graphics
|
||||
//uncomment to draw a hideous line across hires screens.
|
||||
// JRenderer::GetInstance()->DrawLine(0, CENTER, SCREEN_WIDTH, CENTER, ARGB(255, 255, 255, 255));
|
||||
|
||||
@@ -151,10 +151,10 @@ void GuiPhaseBar::Render()
|
||||
sprintf(buf, _("(%s%s) %s").c_str(), currentP.c_str(), interrupt.c_str(),phaseNameToTranslate.c_str());
|
||||
if(phaseinfo.get())
|
||||
{
|
||||
phaseinfo->SetHotSpot(phaseinfo->mWidth - 1.f,0);
|
||||
phaseinfo->mWidth = font->GetStringWidth(buf)+12.f;
|
||||
phaseinfo->mHeight = font->GetHeight()+5.f;
|
||||
JRenderer::GetInstance()->RenderQuad(phaseinfo.get(),SCREEN_WIDTH_F,0,0);
|
||||
phaseinfo->SetHotSpot(phaseinfo->mWidth-2.f,0);
|
||||
//phaseinfo->mWidth = font->GetStringWidth(buf)+12.f;
|
||||
//phaseinfo->mHeight = font->GetHeight()+5.f;
|
||||
JRenderer::GetInstance()->RenderQuad(phaseinfo.get(),SCREEN_WIDTH_F,0,0,SCREEN_WIDTH_F / phaseinfo->mWidth, SCREEN_HEIGHT_F / phaseinfo->mHeight);
|
||||
}
|
||||
font->DrawString(buf, SCREEN_WIDTH - 5, 2, JGETEXT_RIGHT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user