Steam Fort 0.5
|
#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. |
void aboutClb | ( | Widget * | w, |
void * | data | ||
) |
Show informations about game.
w | Unused |
data | Unused |
void continueClb | ( | Widget * | w, |
void * | data | ||
) |
Continue saved game.
w | Unused |
data | Unused |
void createUI | ( | ) |
Create all user interface.
void helpClb | ( | Widget * | w, |
void * | data | ||
) |
Open help.
w | Unused. |
data | Unused. |
void menuClb | ( | Widget * | w, |
void * | data | ||
) |
Game menu options.
w | Unused. |
data | Selected option. |
void newClb | ( | Widget * | w, |
void * | data | ||
) |
Start new game.
w | Unused |
data | Unused |
void Notice | ( | const char * | message | ) |
Show message for player.
message | Message to show. |
void quitClb | ( | Widget * | w, |
void * | data | ||
) |
Quit from game.
w | Unused |
data | Unused |
void saveClb | ( | Widget * | w, |
void * | data | ||
) |
Save game and quit to main menu.
w | Unused |
data | Unused |
void screenshotClb | ( | Widget * | w, |
void * | data | ||
) |
Make screenshot.
w | Unused. |
data | Unused. |
void setInfo | ( | bool | visible, |
int | x, | ||
int | y | ||
) |
Show informations about selected object.
visible | If true, show info box. |
x | X-axis position of object. Default is -1. |
y | Y-axis position of object. Default is -1. |
void setTime | ( | ) |
Set value for clock.
void setVisibleGamemenu | ( | bool | visible | ) |
Set visibility of game menu.
visible | If true, menu is visible, otherwise false. |
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.