Added a popup menu label class and require menu label defines for InventoryScrollableWindowComponents

This commit is contained in:
2023-11-21 00:50:28 -06:00
parent 3ff558d44e
commit 8af7afadae
7 changed files with 95 additions and 5 deletions
+3 -1
View File
@@ -40,9 +40,11 @@ SUCH DAMAGE.
INCLUDE_game
class MenuLabel:public MenuComponent{
private:
int scale=1;
protected:
bool shadow=false;
bool centered=true;
int scale=1;
public:
inline MenuLabel(MenuType parent,geom2d::rect<float>rect,std::string label,int scale=1,ComponentAttr attributes=ComponentAttr::NONE)
:MenuComponent(parent,rect,label,MenuFunc{},ButtonAttr::UNSELECTABLE|ButtonAttr::UNSELECTABLE_VIA_KEYBOARD),scale(scale),centered(!(attributes&ComponentAttr::LEFT_ALIGN)),shadow(attributes&ComponentAttr::SHADOW){