Added functional scrollbar.

This commit is contained in:
2023-10-15 14:59:35 -05:00
parent ff3f4ba1c0
commit daf94db505
7 changed files with 105 additions and 22 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ MenuComponent::MenuComponent(MenuType parent,geom2d::rect<float>rect,std::string
:parentMenu(parent),rect(rect),label(label),menuDest(MenuType::ENUM_END),onClick(onClick),hoverEffect(0),selectable(selectable){}
MenuComponent::MenuComponent(MenuType parent,geom2d::rect<float>rect,std::string label,MenuType menuDest,MenuFunc onClick,bool selectable)
:parentMenu(parent),rect(rect),label(label),menuDest(menuDest),onClick(onClick),hoverEffect(0),selectable(selectable){}
:MenuComponent(parent,rect,label,onClick,selectable){
this->menuDest=menuDest;
}
void MenuComponent::AfterCreate(){}