53 if (Image::getLoadAsOpenGL())
98 mouseTileX, mouseTileY));
101 _(
"Music: %s"), map->getProperty(
"music").c_str()));
103 map->getProperty(
"minimap").c_str()));
105 map->getProperty(
"_filename").c_str()));
134 auto *showLabel =
new Label(
_(
"Show:"));
144 auto *specialsLabel =
new Label(
_(
"Specials:"));
153 place(0, 0, showLabel, 1);
162 place(1, 0, specialsLabel, 1);
172 mGrid->addActionListener(
this);
186 void action(
const gcn::ActionEvent &event)
override
190 if (
mGrid->isSelected())
244 place(0, 0, tabs, 2, 2);
This class is a helper for adding widgets to nested tables in a window.
LayoutCell & place(int x, int y, gcn::Widget *wg, int w=1, int h=1)
Adds a widget to the container and sets it at given cell.
Label * mParticleCountLabel
void action(const gcn::ActionEvent &event) override
RadioButton * mSpecialNormal
CheckBox * mCollisionTiles
CheckBox * mBeingPosition
CheckBox * mBeingCollisionRadius
std::unique_ptr< gcn::Widget > mInfoWidget
std::unique_ptr< Tab > mSwitchesTab
std::unique_ptr< gcn::Widget > mSwitchesWidget
std::unique_ptr< Tab > mInfoTab
static Game * instance()
Provides access to the game instance.
A helper class for adding a layout to a Guichan container widget.
ContainerPlacer getPlacer(int x, int y)
Returns a proxy for adding widgets in an inner table of the layout.
void reflowLayout(int w=0, int h=0)
Computes the position of the widgets according to the current layout.
@ DEBUG_BEING_COLLISION_RADIUS
static int particleCount
Current number of particles.
void registerWindowForReset(Window *window)
Enables the Reset Windows button.
A tabbed area, the same as the guichan tabbed area in 0.8, but extended.
int getMouseY() const
Returns mouse y in pixels.
int getMouseX() const
Returns mouse x in pixels.
int getCameraY() const
Returns camera y offset in pixels.
void setDebugFlags(int debugFlags)
Sets which debug flags (see Map::DebugFlags) should be enabled.
int getCameraX() const
Returns camera x offset in pixels.
void setMinHeight(int height)
Sets the minimum height of the window.
void setWindowName(const std::string &name)
Sets the name of the window.
void setResizable(bool resize)
Sets whether or not the window can be resized.
LayoutCell & place(int x, int y, gcn::Widget *, int w=1, int h=1)
Adds a widget to the window and sets it at given cell.
void setCloseButton(bool flag)
Sets whether or not the window has a close button.
void setDefaultSize()
Set the default win pos and size to the current ones.
void loadWindowState()
Reads the position (and the size for resizable windows) in the configuration based on the given strin...
void setMinWidth(int width)
Sets the minimum width of the window.
volatile int fps
Frames counted in the last second.
Viewport * viewport
Viewport on the map.
std::string strprintf(char const *format,...)
A safe version of sprintf that returns a std::string of the result.