![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Editor subpage for selecting catch tiles to place. More...
#include <Catchables.hpp>
Public Member Functions | |
Catchables (component::EditMap &map) | |
Construct a new Catchables GUI. More... | |
void | setGUI (bl::gui::GUI *gui) |
Sets the parent GUI object. More... | |
bl::gui::Element::Ptr | getContent () |
Returns the GUI element to pack. More... | |
std::uint8_t | selected () const |
Returns the currently selected catch type. More... | |
void | refresh () |
Refreshes GUI elements. More... | |
Static Public Member Functions | |
static sf::Color | getColor (std::uint8_t index) |
Returns the color to use for the given catch region. More... | |
Editor subpage for selecting catch tiles to place.
Definition at line 23 of file Catchables.hpp.
editor::page::Catchables::Catchables | ( | component::EditMap & | map | ) |
Construct a new Catchables GUI.
gui | The main gui object |
map | The map being edited |
Definition at line 27 of file Catchables.cpp.
|
static |
Returns the color to use for the given catch region.
Definition at line 59 of file Catchables.cpp.
Element::Ptr editor::page::Catchables::getContent | ( | ) |
Returns the GUI element to pack.
Definition at line 55 of file Catchables.cpp.
void editor::page::Catchables::refresh | ( | ) |
Refreshes GUI elements.
Definition at line 63 of file Catchables.cpp.
std::uint8_t editor::page::Catchables::selected | ( | ) | const |
Returns the currently selected catch type.
Definition at line 57 of file Catchables.cpp.
void editor::page::Catchables::setGUI | ( | bl::gui::GUI * | gui | ) |
Sets the parent GUI object.
Definition at line 53 of file Catchables.cpp.