Steam Fort 0.5
|
#include "gui/gui.hpp"
#include "design.hpp"
#include "ui.hpp"
#include "main.hpp"
#include <iostream>
#include <stdio.h>
Functions | |
void | partClb (Widget *w, void *data) |
Assign selected part to design. | |
void | locationClb (Widget *w, void *data) |
Show available parts for selected location. | |
void | clearClb (Widget *w, void *data) |
Clear all design. | |
void | robotClb (Widget *w, void *data) |
Create data for construct selected robot. | |
void | buildDesignUI () |
Build design robots user interface. | |
void | setVisibleDesign (bool visible) |
Show/hide design robots menu. | |
Variables | |
Container * | designmenu = new Container(0, 0, 100, 75) |
HBox * | stats = new HBox(35, 30, 1) |
VBox * | parts = new VBox(25, 10, 1) |
ToolBar * | availparts = new ToolBar(55, 7, "Available parts") |
Label * | message = new Label(35, 2, "") |
Label * | lblparts [5] |
Label * | lblstats [5] |
string | valparts [5] |
int | valstats [5] |
void buildDesignUI | ( | ) |
Build design robots user interface.
void clearClb | ( | Widget * | w, |
void * | data | ||
) |
Clear all design.
w | Unused. |
data | Unused. |
void locationClb | ( | Widget * | w, |
void * | data | ||
) |
Show available parts for selected location.
w | Unused. |
data | Name of location. |
void partClb | ( | Widget * | w, |
void * | data | ||
) |
Assign selected part to design.
w | Unused. |
data | Name of location and name of robot part. |
void robotClb | ( | Widget * | w, |
void * | data | ||
) |
Create data for construct selected robot.
w | Unused. |
data | Unused. |
void setVisibleDesign | ( | bool | visible | ) |
Show/hide design robots menu.
visible | If true, show menu, otherwise hide. |
ToolBar* availparts = new ToolBar(55, 7, "Available parts") |
Container* designmenu = new Container(0, 0, 100, 75) |
Label* lblparts[5] |
Label* lblstats[5] |
Label* message = new Label(35, 2, "") |
VBox* parts = new VBox(25, 10, 1) |
HBox* stats = new HBox(35, 30, 1) |
string valparts[5] |
int valstats[5] |