Refactor menucomponent internal draw function a little bit for code organizing.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user