Customizeable border box
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
2f87d8b763
commit
a9b0cc05b4
Binary file not shown.
10
main.cpp
10
main.cpp
@ -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…
x
Reference in New Issue
Block a user