Customizeable border box

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 2f87d8b763
commit a9b0cc05b4
  1. BIN
      C++ProjectTemplate
  2. 10
      main.cpp

Binary file not shown.

@ -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};

Loading…
Cancel
Save