The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'! https://forums.lestoria.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
AdventuresInLestoria/Crawler/ItemComponent.h

19 lines
523 B

#pragma once
#include "MenuIconButton.h"
#include "Item.h"
INCLUDE_game
class ItemComponent:public MenuIconButton{
Item::ItemName item;
public:
inline ItemComponent(geom2d::rect<float>rect,Item::ItemName*item,MenuFunc onClick)
:MenuIconButton(rect,,onClick){}
protected:
virtual void inline Update(Crawler*game)override{
MenuIconButton::Update(game);
}
virtual void inline Draw(Crawler*game,vf2d parentPos,bool focused)override{
MenuIconButton::Draw(game,parentPos,focused);
}
};