Added a popup menu label class and require menu label defines for InventoryScrollableWindowComponents
This commit is contained in:
+3
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user