Fix border display drawing for menus. Fix scrollable window components that went outside to use proper scrolling offsets. Fix issue with same-frame clicking and releasing causing a different button to be selected.
This commit is contained in:
@@ -74,7 +74,6 @@ private:
|
||||
virtual void BeforeUpdate(Crawler*game);
|
||||
void _Update(Crawler*game);
|
||||
void _DrawDecal(ViewPort&window,bool focused);
|
||||
void _DrawDecal(ViewPort&window,vf2d parentPos,bool focused);
|
||||
bool selected=false;
|
||||
SelectionType selectionType=CROSSHAIR;
|
||||
protected:
|
||||
@@ -82,6 +81,7 @@ protected:
|
||||
float hoverEffect=0;
|
||||
std::string name="";
|
||||
geom2d::rect<float>rect;
|
||||
vf2d originalPos;
|
||||
std::string label;
|
||||
bool border=true;
|
||||
bool draggable=false;
|
||||
@@ -96,7 +96,7 @@ protected:
|
||||
bool valid=true; //If set to false, this would cause the component to be removed.
|
||||
vf2d labelScaling={1,1};
|
||||
virtual void Update(Crawler*game);
|
||||
virtual void DrawDecal(ViewPort&window,vf2d parentPos,bool focused);
|
||||
virtual void DrawDecal(ViewPort&window,bool focused);
|
||||
virtual bool GetHoverState(Crawler*game,MenuComponent*child);
|
||||
virtual void AfterCreate(); //Called after the creation of all menus finish.
|
||||
//CALL THIS FOR A PARENT to check a child's DrawDecal validity!
|
||||
|
||||
Reference in New Issue
Block a user