Added row item display button components.
This commit is contained in:
@@ -57,9 +57,12 @@ enum class SelectionType{
|
||||
CROSSHAIR,
|
||||
HIGHLIGHT,
|
||||
INNER_BOX,
|
||||
NONE,
|
||||
};
|
||||
|
||||
using enum SelectionType;
|
||||
using SelectionType::CROSSHAIR;
|
||||
using SelectionType::HIGHLIGHT;
|
||||
using SelectionType::INNER_BOX;
|
||||
|
||||
class MenuComponent:public IAttributable{
|
||||
friend class Menu;
|
||||
@@ -82,7 +85,6 @@ private:
|
||||
void _DrawDecal(ViewPort&window,bool focused);
|
||||
void _OnMouseOut();
|
||||
void _OnHover();
|
||||
bool selected=false;
|
||||
SelectionType selectionType=CROSSHAIR;
|
||||
protected:
|
||||
int depth=0;
|
||||
@@ -99,6 +101,7 @@ protected:
|
||||
bool hovered=false;
|
||||
bool selectable=true;
|
||||
bool selectableViaKeyboard=true;
|
||||
bool selected=false;
|
||||
bool disabled=false; //If set to true, this component will not be rendered or updated.
|
||||
bool renderInMain=true; //If set to false, this component is the responsibility of some other windowing system and won't be rendered or updated via the main window loop.
|
||||
bool valid=true; //If set to false, this would cause the component to be removed.
|
||||
|
||||
Reference in New Issue
Block a user