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:
@@ -62,7 +62,7 @@ protected:
|
||||
timer-=2*PI;
|
||||
}
|
||||
}
|
||||
virtual inline void DrawDecal(ViewPort&window,vf2d parentPos,bool focused)override{
|
||||
virtual inline void DrawDecal(ViewPort&window,bool focused)override{
|
||||
window.DrawWarpedDecal(icon,std::array<vf2d,4>{
|
||||
rect.pos+vf2d{abs(sin(timer)),sin(float(timer+PI))}*vf2d{rotatingFactor,perspectiveFactor},
|
||||
rect.pos+vf2d{0,rect.size.y}+vf2d{abs(sin(timer)),sin(timer)}*vf2d{rotatingFactor,perspectiveFactor},
|
||||
|
||||
Reference in New Issue
Block a user