Steam Fort 0.5
Functions | Variables

src/ui.cpp File Reference

#include "gui/gui.hpp"
#include "main.hpp"
#include "ui.hpp"
#include "mainmenu.hpp"
#include "game.hpp"
#include "designation.hpp"
#include "design.hpp"
#include "message.hpp"
#include "mission.hpp"
#include <iostream>
#include <stdio.h>
#include "adventure.hpp"
#include "help.hpp"

Functions

void setVisibleGamemenu (bool visible)
 Set visibility of game menu.
void aboutClb (Widget *w, void *data)
 Show informations about game.
void quitClb (Widget *w, void *data)
 Quit from game.
void continueClb (Widget *w, void *data)
 Continue saved game.
void newClb (Widget *w, void *data)
 Start new game.
void menuClb (Widget *w, void *data)
 Game menu options.
void saveClb (Widget *w, void *data)
 Save game and quit to main menu.
void screenshotClb (Widget *w, void *data)
 Make screenshot.
void helpClb (Widget *w, void *data)
 Open help.
void setInfo (bool visible, int x, int y)
 Show informations about selected object.
void Notice (const char *message)
 Show message for player.
void setTime ()
 Set value for clock.
void createUI ()
 Create all user interface.

Variables

VBox * mainmenu = new VBox(42, 20, 1)
 Main menu container.
Label * credits = new Label(35, 74, "(C)2011 Bartek thindil Jasicki")
 Label with copyright information.
ToolBar * gamemenu = new ToolBar(80, 2, 1, "Menu")
 Game menu container.
Label * escinfo = new Label(40, SCREENHEIGHT - 3, "Hit ESC to quit")
 Label with information about Escape key.
ToolBar * objinfo = new ToolBar(30, 20, 1, "Info")
 Popup with information about object.
Label * objname = new Label(0, 0, "")
 Label with name of object - Popup.
Label * objdesc = new Label(0, 0, "")
 Label with description of object - Popup.
StatusBar * tips = new StatusBar(0, SCREENHEIGHT - 1, SCREENWIDTH - 1, 1)
 Status bar with tips.
Label * lblnotice = new Label(0, 0, "")
 Label with notices.
Label * lbltime = new Label(76, 0, "")
 Label with time.

Function Documentation

void aboutClb ( Widget *  w,
void *  data 
)

Show informations about game.

Parameters:
wUnused
dataUnused
void continueClb ( Widget *  w,
void *  data 
)

Continue saved game.

Parameters:
wUnused
dataUnused
void createUI ( )

Create all user interface.

void helpClb ( Widget *  w,
void *  data 
)

Open help.

Parameters:
wUnused.
dataUnused.
void menuClb ( Widget *  w,
void *  data 
)

Game menu options.

Parameters:
wUnused.
dataSelected option.
void newClb ( Widget *  w,
void *  data 
)

Start new game.

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

Show message for player.

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

Quit from game.

Parameters:
wUnused
dataUnused
void saveClb ( Widget *  w,
void *  data 
)

Save game and quit to main menu.

Parameters:
wUnused
dataUnused
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 = new Label(35, 74, "(C)2011 Bartek thindil Jasicki")

Label with copyright information.

Label* escinfo = new Label(40, SCREENHEIGHT - 3, "Hit ESC to quit")

Label with information about Escape key.

ToolBar* gamemenu = new ToolBar(80, 2, 1, "Menu")

Game menu container.

Label* lblnotice = new Label(0, 0, "")

Label with notices.

Label* lbltime = new Label(76, 0, "")

Label with time.

VBox* mainmenu = new VBox(42, 20, 1)

Main menu container.

Label* objdesc = new Label(0, 0, "")

Label with description of object - Popup.

ToolBar* objinfo = new ToolBar(30, 20, 1, "Info")

Popup with information about object.

Label* objname = new Label(0, 0, "")

Label with name of object - Popup.

StatusBar* tips = new StatusBar(0, SCREENHEIGHT - 1, SCREENWIDTH - 1, 1)

Status bar with tips.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines