Added row item display button components.

This commit is contained in:
2023-12-16 22:17:49 -06:00
parent ac0f5c42aa
commit 3251053364
7 changed files with 82 additions and 35 deletions
+5 -2
View File
@@ -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.