Fix Perspective correction on ViewPort PGEX. Implement windowing system and remove sprite reliance from all menu components.
This commit is contained in:
@@ -73,10 +73,8 @@ private:
|
||||
std::pair<MenuType,std::string>memoryLeakInfo; //Used to identify memory leak hints for this component.
|
||||
virtual void BeforeUpdate(Crawler*game);
|
||||
void _Update(Crawler*game);
|
||||
void _Draw(Crawler*game);
|
||||
void _Draw(Crawler*game,vf2d parentPos);
|
||||
void _DrawDecal(Crawler*game,bool focused);
|
||||
void _DrawDecal(Crawler*game,vf2d parentPos,bool focused);
|
||||
void _DrawDecal(ViewPort&window,bool focused);
|
||||
void _DrawDecal(ViewPort&window,vf2d parentPos,bool focused);
|
||||
bool selected=false;
|
||||
SelectionType selectionType=CROSSHAIR;
|
||||
protected:
|
||||
@@ -98,8 +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 Draw(Crawler*game,vf2d parentPos);
|
||||
virtual void DrawDecal(Crawler*game,vf2d parentPos,bool focused);
|
||||
virtual void DrawDecal(ViewPort&window,vf2d parentPos,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!
|
||||
@@ -131,5 +128,4 @@ public:
|
||||
virtual void SetSelectionType(SelectionType selectionType)final;
|
||||
virtual void Enable(bool enabled);
|
||||
virtual void Cleanup();
|
||||
bool decal=false; //If set to true, will use decal rendering (For foreground shenanigans)
|
||||
};
|
||||
Reference in New Issue
Block a user