|
Cytopia
0.3
A city building simulation game
|
#include <BuildMenu.hxx>
Inheritance diagram for BuildMenu:
Collaboration diagram for BuildMenu:Public Member Functions | |
| BuildMenu () | |
| void | draw () const override |
| void | createSubMenus () |
| void | setItemVisible (BuildMenuButton::Ptr btn, bool visible) |
| void | onClick (BuildMenuButton::Ptr btn) |
| void | onAction (const std::string &action, bool checked) |
| void | onChangeTileType (const std::string &id, bool checked) |
| void | closeSubmenus () override |
| void | clearState () |
| const std::string & | getId () const |
| const BuildMenuButton::Items & | getButtons () const |
| float | getTooltipDelay () const |
Public Member Functions inherited from GameMenu | |
| virtual | ~GameMenu ()=default |
| virtual bool | isMouseHovered () const |
Private Attributes | |
| BuildMenuButton::Items | m_buttons |
| std::string | m_id = "Main" |
| ImVec2 | m_btnSize |
| float | m_tooltipDelay = 3.f |
Additional Inherited Members | |
Public Types inherited from GameMenu | |
| using | Ptr = std::shared_ptr< GameMenu > |
Definition at line 74 of file BuildMenu.hxx.
| BuildMenu::BuildMenu | ( | ) |
Definition at line 17 of file BuildMenu.cxx.
Here is the call graph for this function:| void BuildMenu::clearState | ( | ) |
|
overridevirtual |
Reimplemented from GameMenu.
Definition at line 440 of file BuildMenu.cxx.
Here is the call graph for this function:| void BuildMenu::createSubMenus | ( | ) |
Definition at line 221 of file BuildMenu.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from GameMenu.
Definition at line 193 of file BuildMenu.cxx.
Here is the call graph for this function:
|
inline |
Definition at line 101 of file BuildMenu.hxx.
|
inline |
Definition at line 100 of file BuildMenu.hxx.
|
inline |
| void BuildMenu::onAction | ( | const std::string & | action, |
| bool | checked | ||
| ) |
Definition at line 334 of file BuildMenu.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void BuildMenu::onChangeTileType | ( | const std::string & | id, |
| bool | checked | ||
| ) |
Definition at line 389 of file BuildMenu.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void BuildMenu::onClick | ( | BuildMenuButton::Ptr | btn | ) |
Definition at line 317 of file BuildMenu.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void BuildMenu::setItemVisible | ( | BuildMenuButton::Ptr | btn, |
| bool | visible | ||
| ) |
|
private |
Definition at line 107 of file BuildMenu.hxx.
|
private |
Definition at line 105 of file BuildMenu.hxx.
|
private |
Definition at line 106 of file BuildMenu.hxx.
|
private |
Definition at line 108 of file BuildMenu.hxx.