Fix Perspective correction on ViewPort PGEX. Implement windowing system and remove sprite reliance from all menu components.
This commit is contained in:
@@ -63,10 +63,10 @@ protected:
|
||||
hoverEffect="ThemeGlobal.HighlightTime"_F; //A hack that allows us to make it look like we have this selected.
|
||||
}
|
||||
}
|
||||
virtual inline void Draw(Crawler*game,vf2d parentPos)override{
|
||||
MenuAnimatedIconButton::Draw(game,parentPos);
|
||||
virtual inline void DrawDecal(ViewPort&window,vf2d parentPos,bool focused)override{
|
||||
MenuAnimatedIconButton::DrawDecal(window,parentPos,focused);
|
||||
if(IsSelected()){
|
||||
game->DrawRect(rect.pos+vi2d{2,2},rect.size-vi2d{4,4},YELLOW);
|
||||
window.DrawRectDecal(rect.pos+vi2d{2,2},rect.size-vi2d{4,4},YELLOW);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user