Refactor menucomponent internal draw function a little bit for code organizing.

This commit is contained in:
2023-11-06 00:05:09 -06:00
parent fe8cbb022a
commit c82a3c5980
5 changed files with 18 additions and 9 deletions
+2
View File
@@ -40,7 +40,9 @@ public:
MenuComponent(MenuType parent,geom2d::rect<float>rect,std::string label,MenuType menuDest,MenuFunc onClick,bool selectable=true,bool selectableViaKeyboard=true);
virtual ~MenuComponent();
void _Update(Crawler*game);
void _Draw(Crawler*game);
void _Draw(Crawler*game,vf2d parentPos);
void _DrawDecal(Crawler*game,bool focused);
void _DrawDecal(Crawler*game,vf2d parentPos,bool focused);
vf2d GetPos();
//We picked up a draggable component, we should make a copy and return it here. If a nullptr is returned here, the pickup is not allowed.