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:
2023-12-15 23:57:09 -06:00
parent 92c093c589
commit 025a89788e
22 changed files with 103 additions and 101 deletions
+1 -1
View File
@@ -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},