Customizeable border box

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2 2022-10-25 12:41:28 -05:00
parent 2f87d8b763
commit a9b0cc05b4
2 changed files with 7 additions and 3 deletions

Binary file not shown.

View File

@ -43,9 +43,13 @@ public:
bool OnUserUpdate(float fElapsedTime) override
{
if (GetMouseWheel()!=0) {
borderSize.x+=GetMouseWheel()*0.1;
borderSize.y+=GetMouseWheel()*0.1;
if (GetMouseWheel()>0) {
borderSize.x+=0.1;
borderSize.y+=0.1;
} else
if (GetMouseWheel()<0) {
borderSize.x-=0.1;
borderSize.y-=0.1;
}
vd2d boxPos={24,24};