void
LoadingView::doDraw(Surface &viewArea, Surface &clientArea)
{
    if (dirty)
        render();

    screen->fill(Color::black);
    backgroundSurface.blt(clientArea, 0, 0);
    clientArea.FillRoundRect(iRect(165, 40, 635, 225), 10, Color::black);
    clientArea.RoundRect(iRect(165, 40, 635, 225), 10, Color::yellow);
    surface.blt(clientArea, 172, 45);

    View::doDraw(viewArea, clientArea);
}
void PrepareTeam::doDraw( Surface& dest )
{
    menuImage.bltTrans(dest, menuImageXY.x, menuImageXY.y); // blit full
    dest.FillRoundRect(rect, 12, ctWindowsbackground);
    dest.RoundRect(rect,12, ctWindowsBorder);

//    DrawInfo(dest);
//    drawTeams(dest);
//    vsImage.bltTrans(dest, firstrect.max.x+40, firstrect.max.y-vsImage.getHeight()-10);
//    StateTeam1->UpdateState(false);
//    StateTeam2->UpdateState(false);
    
    View::doDraw( dest );
}
Esempio n. 3
0
// draw
//---------------------------------------------------------------------------
void Choice::draw(Surface &dest) const
{
    iRect   r(rect);

    dest.RoundRect(iRect(r.getLocationX(), r.getLocationY(), r.getWidth() - 2, r.getHeight() - 2), 4, Color::gray96);
    dest.RoundRect(iRect(r.getLocationX()+1, r.getLocationY()+1, r.getWidth() - 1, r.getHeight() - 1), 4, componentActiveTextColor);
    dest.FillRoundRect(iRect(r.getLocationX()+1, r.getLocationY()+1, r.getWidth() - 2, r.getHeight() - 2), 4, componentBodyColor);

    const TextRenderer *t;

    int width = r.getWidth();

    if ( !selecting )
    {
        t = choice_renders[index];

        t->draw(dest, r.getLocationX() + ((width - t->getWidth()) / 2),
                      r.getLocationY(),
                      componentActiveTextColor );
    }
    else
    {
        r.setHeight( TextRenderingSystem::line_height() );

        size_t count = choiceList.size();

        for (size_t i = 0; i < count; i++)
        {
            t = choice_renders[i];
            PIX color = componentActiveTextColor;
            if ( i == mouseover )
            {
                // Higlight the selected item.
                dest.fillRect(r, componentActiveTextColor);
                color = Color::black;
            }

            t->draw(dest, r.getLocationX() + ((width - t->getWidth()) / 2),
                          r.getLocationY(),
                          color );

            r.translate(iXY(0, TextRenderingSystem::line_height()));
        }
    }
    //isOpen = 0;
} // end Choice::draw