void Switch::drawVorticonStyle(SDL_Rect& lRect) { if(!mEnabled) { return; } SDL_Surface *blitsfc = gVideoDriver.getBlitSurface(); // Now lets draw the text of the list control GsFont &Font = gGraphics.getFont(2); Font.drawFont( blitsfc, mText, lRect.x+24, lRect.y, false ); Font.drawFont( blitsfc, ":", lRect.x+24+mText.size()*8, lRect.y, false ); std::string text; if( (*mOLCurrent) == "off" ) { text = "\24\25\26\27"; } else { text = "\34\35\36\37"; } Font.drawFont( blitsfc, text, lRect.x+24+(mText.size()+2)*8, lRect.y, false ); drawTwirl(lRect); }
void CGUISwitch::drawVorticonStyle(SDL_Rect& lRect) { if(!mEnabled) return; SDL_Surface *blitsfc = g_pVideoDriver->getBlitSurface(); // Now lets draw the text of the list control CFont &Font = g_pGfxEngine->getFont(2); Font.drawFont( blitsfc, mText, lRect.x+24, lRect.y, false ); Font.drawFont( blitsfc, ":", lRect.x+24+mText.size()*8, lRect.y, false ); std::string text; if( (*mOLCurrent) == "off" ) text = "\24\25\26\27"; else text = "\34\35\36\37"; Font.drawFont( blitsfc, text, lRect.x+24+(mText.size()+2)*8, lRect.y, false ); drawTwirl(lRect); }
void NumberControl::processRender(const GsRect<float> &RectDispCoordFloat) { // Transform to the display coordinates GsRect<float> displayRect = mRect; displayRect.transform(RectDispCoordFloat); SDL_Rect lRect = displayRect.SDLRect(); GsWeakSurface blitsfc(gVideoDriver.getBlitSurface()); // Now lets draw the text of the list control GsFont &Font = gGraphics.getFont(mFontID); Font.drawFont( blitsfc, mText, lRect.x+24, lRect.y, false ); Font.drawFont( blitsfc, ":", lRect.x+24+mText.size()*8, lRect.y, false ); if(mSlider) { gGraphics.getFont(2).drawFont( blitsfc, sliderStr(), lRect.x+16+(mText.size()+2)*8, lRect.y, false ); } else { std::string text = (mDecSel) ? "\025" : " "; text += itoa(mValue); if(mIncSel) text += static_cast<char>(17); else text += " "; Font.drawFont( blitsfc, text, lRect.x+24+(mText.size()+2)*8, lRect.y, false ); } drawTwirl(lRect); }
void CGUIInputText::drawVorticonStyle(SDL_Rect& lRect) { if(!mEnabled) return; SDL_Surface *blitsfc = g_pVideoDriver->getBlitSurface(); // Now lets draw the text of the list control CFont &Font = g_pGfxEngine->getFont(mFontID); Font.drawFont( blitsfc, getInputString(), lRect.x+24, lRect.y, false ); drawTwirl(lRect); }
void CGUIButton::drawVorticonStyle(SDL_Rect& lRect) { SDL_Surface *blitsfc = g_pVideoDriver->getBlitSurface(); // Now lets draw the text of the button if(mEnabled) { CFont &Font = g_pGfxEngine->getFont(mFontID); Font.drawFont( blitsfc, mText, lRect.x+24, lRect.y, false ); drawTwirl(lRect); } else { CFont &Font = g_pGfxEngine->getFont(0); Font.drawFont( blitsfc, mText, lRect.x+24, lRect.y, true ); } }
void Switch::drawNoStyle(SDL_Rect& lRect) { if(!mEnabled) { return; } SDL_Surface *blitsfc = gVideoDriver.getBlitSurface(); // Now lets draw the text of the list control GsFont &Font = gGraphics.getFont(0); std::string text = mText + ":" + (*mOLCurrent); Font.drawFont( blitsfc, text, lRect.x+40, lRect.y, false ); drawTwirl(lRect); }
void InputText::processRender(const GsRect<float> &RectDispCoordFloat) { if(!mEnabled) return; // Transform to the display coordinates GsRect<float> displayRect = mRect; displayRect.transform(RectDispCoordFloat); SDL_Rect lRect = displayRect.SDLRect(); SDL_Surface *blitsfc = gVideoDriver.getBlitSurface(); // Now lets draw the text of the list control GsFont &Font = gGraphics.getFont(mFontID); Font.drawFont( blitsfc, getInputString(), lRect.x+24, lRect.y, false ); drawTwirl(lRect); }