Steam Fort 0.5
Functions | Variables

src/ui.hpp File Reference

#include "gui/gui.hpp"
#include "main.hpp"

Go to the source code of this file.

Functions

void createUI ()
 Create all user interface.
void setInfo (bool visible, int x=NONE, int y=NONE)
 Show informations about selected object.
void setVisibleGamemenu (bool visible)
 Set visibility of game menu.
void Notice (const char *message)
 Show message for player.
void setTime ()
 Set value for clock.
void screenshotClb (Widget *w, void *data)
 Make screenshot.
void helpClb (Widget *w, void *data)
 Open help.

Variables

VBox * mainmenu
 Main menu container.
Label * credits
 Label with copyright information.
Label * escinfo
 Label with information about Escape key.
StatusBar * tips
 Status bar with tips.
Label * lblnotice
 Label with notices.

Function Documentation

void createUI ( )

Create all user interface.

void helpClb ( Widget *  w,
void *  data 
)

Open help.

Parameters:
wUnused.
dataUnused.
void Notice ( const char *  message)

Show message for player.

Parameters:
messageMessage to show.
void screenshotClb ( Widget *  w,
void *  data 
)

Make screenshot.

Parameters:
wUnused.
dataUnused.
void setInfo ( bool  visible,
int  x,
int  y 
)

Show informations about selected object.

Parameters:
visibleIf true, show info box.
xX-axis position of object. Default is -1.
yY-axis position of object. Default is -1.
void setTime ( )

Set value for clock.

void setVisibleGamemenu ( bool  visible)

Set visibility of game menu.

Parameters:
visibleIf true, menu is visible, otherwise false.

Variable Documentation

Label* credits

Label with copyright information.

Label* escinfo

Label with information about Escape key.

Label* lblnotice

Label with notices.

VBox* mainmenu

Main menu container.

StatusBar* tips

Status bar with tips.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines