____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "stratagus.h"
#include "ui.h"
#include "video.h"
#include "font.h"
#include "menus.h"
Go to the source code of this file.
Functions | |
| void | DrawMenuButton (ButtonStyle *style, unsigned flags, int x, int y, const std::string &text) |
| < Draw menu button | |
Definition in file menu_proc.cpp.
| void DrawMenuButton | ( | ButtonStyle * | style, | |
| unsigned | flags, | |||
| int | x, | |||
| int | y, | |||
| const std::string & | text | |||
| ) |
< Draw menu button
Draw menu button 'button' on x,y
| style | Button style | |
| flags | State of Button (clicked, mouse over...) | |
| x | X display position | |
| y | Y display position | |
| text | text to print on button |
Definition at line 58 of file menu_proc.cpp.
References ButtonStyleProperties::BorderColor, ButtonStyleProperties::BorderColorRGB, ButtonStyleProperties::BorderSize, ButtonStyle::Clicked, ButtonStyle::Default, CGraphic::DrawFrame(), CVideo::DrawRectangleClip(), ButtonStyle::Font, ButtonStyleProperties::Frame, GetDefaultTextColors(), ButtonStyle::Height, ButtonStyle::Hover, CGraphic::Load(), CVideo::MapRGB(), MI_FLAGS_ACTIVE, MI_FLAGS_CLICKED, SetDefaultTextColors(), ButtonStyleProperties::Sprite, ButtonStyleProperties::TextAlign, TextAlignCenter, TextAlignLeft, TextAlignUndefined, ButtonStyle::TextNormalColor, ButtonStyleProperties::TextNormalColor, ButtonStyle::TextReverseColor, ButtonStyleProperties::TextReverseColor, ButtonStyleProperties::TextX, ButtonStyleProperties::TextY, TheScreen, Video, VideoDrawText(), VideoDrawTextCentered(), ButtonStyle::Width, and CFont::Width().
Referenced by DrawMenuButtonArea(), CIcon::DrawUnitIcon(), and EditorUpdateDisplay().
1.5.6