// doDraw
//---------------------------------------------------------------------------
void EndRoundView::doDraw(Surface &viewArea, Surface &clientArea)
{
    unsigned int flagHeight = ResourceManager::getFlag(0)->getHeight();
    clientArea.BltRoundRect(RectWinner, 14, Palette::green256.getColorArray());
    clientArea.RoundRect(RectWinner,14, Color::gray);
    
    clientArea.BltRoundRect(RectStates, 14, Palette::darkGray256.getColorArray());
    clientArea.RoundRect(RectStates, 14, Color::gray);
    
    drawPlayerStats(clientArea, flagHeight);

    View::doDraw(viewArea, clientArea);
} // end doDraw
Ejemplo n.º 2
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
void GFlagSelectionView::doDraw(Surface &viewArea, Surface &clientArea)
{
    clientArea.BltRoundRect(rect, 14, Palette::darkGray256.getColorArray());
    clientArea.RoundRect(rect,14, Color::gray);

    ResourceManager::getFlag(PlayerInterface::getLocalPlayerIndex())->blt(clientArea, loc_player_flag.x, loc_player_flag.y);

    View::doDraw(viewArea, clientArea);
} // end doDraw
Ejemplo n.º 4
0
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);
}
Ejemplo n.º 5
0
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 );
}