Fix ViewPort PGEX. Added Draw String functions from PGE to ViewPort.
This commit is contained in:
@@ -260,6 +260,9 @@ public:
|
||||
virtual inline bool PointWithinParent(MenuComponent*child,vi2d drawPos)override{
|
||||
return geom2d::overlaps(geom2d::rect<float>{Menu::menus[parentMenu]->pos+rect.pos,rect.size},drawPos);
|
||||
}
|
||||
virtual inline bool PointWithinParent(MenuComponent*child,geom2d::rect<float> drawRect)override{
|
||||
return geom2d::overlaps(geom2d::rect<float>{Menu::menus[parentMenu]->pos+rect.pos,rect.size},drawRect);
|
||||
}
|
||||
virtual inline bool HandleOutsideDisabledButtonSelection(MenuComponent*disabledButton)override{
|
||||
//Set the offset so the center is highlighted by this button.
|
||||
V(A::SCROLL_OFFSET).y=-(disabledButton->rect.pos.y-disabledButton->rect.size.y/2);
|
||||
|
||||
Reference in New Issue
Block a user