Setup internal menu components so they know what button was clicked on a menu function. Compacted the on click menu function for menu buttons.
Refactored some item convenience functions.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "Crawler.h"
|
||||
#include "Menu.h"
|
||||
#include "MenuComponent.h"
|
||||
|
||||
MenuComponent::MenuComponent(geom2d::rect<float>rect,std::string label,MenuFunc onClick,bool selectable)
|
||||
:rect(rect),label(label),menuDest(MenuType::ENUM_END),onClick(onClick),hoverEffect(0),selectable(selectable){}
|
||||
|
||||
Reference in New Issue
Block a user