![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Window that opens to edit a catch region in maps. More...
#include <CatchRegionWindow.hpp>
Public Types | |
using | TriggerCb = std::function< void()> |
Called when the region is saved. More... | |
Public Member Functions | |
CatchRegionWindow (const TriggerCb &onSave) | |
Construct a new Catch Region Window. More... | |
void | open (bl::gui::GUI *gui, const core::map::CatchRegion ®ion) |
Opens the window with the given region value. More... | |
const core::map::CatchRegion & | getValue () |
Returns the current region value as inputed by the user. More... | |
Window that opens to edit a catch region in maps.
Definition at line 18 of file CatchRegionWindow.hpp.
using editor::component::CatchRegionWindow::TriggerCb = std::function<void()> |
Called when the region is saved.
Definition at line 21 of file CatchRegionWindow.hpp.
editor::component::CatchRegionWindow::CatchRegionWindow | ( | const TriggerCb & | onSave | ) |
Construct a new Catch Region Window.
onSave | Callback for when the region should be saved |
Definition at line 25 of file CatchRegionWindow.cpp.
const core::map::CatchRegion & editor::component::CatchRegionWindow::getValue | ( | ) |
Returns the current region value as inputed by the user.
Definition at line 82 of file CatchRegionWindow.cpp.
void editor::component::CatchRegionWindow::open | ( | bl::gui::GUI * | gui, |
const core::map::CatchRegion & | region | ||
) |
Opens the window with the given region value.
gui | The main gui object |
region | The region to populate with |
Definition at line 63 of file CatchRegionWindow.cpp.