_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

menus.h File Reference

Go to the source code of this file.

menus.h - The menu headerfile.

#define MI_FLAGS_ACTIVE   1
 
#define MI_FLAGS_CLICKED   2
 
void DrawUIButton (ButtonStyle *style, unsigned flags, int x, int y, const std::string &text, int player=-1)
 Draw menu button. More...
 
void PreMenuSetup ()
 Pre menu setup. More...
 

Macro Definition Documentation

◆ MI_FLAGS_ACTIVE

#define MI_FLAGS_ACTIVE   1

◆ MI_FLAGS_CLICKED

#define MI_FLAGS_CLICKED   2

Function Documentation

◆ DrawUIButton()

void DrawUIButton ( ButtonStyle style,
unsigned  flags,
int  x,
int  y,
const std::string &  text,
int  player 
)

Draw menu button.

Draw UI button 'button' on x,y

Parameters
styleButton style
flagsState of Button (clicked, mouse over...)
xX display position
yY display position
texttext to print on button

◆ PreMenuSetup()

void PreMenuSetup ( )

Pre menu setup.

Pre menu setup.

Enables ability to build walls in the single player games Pre menu setup.

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.