bool DRAWING::CursorOnButton( float CursorX, float CursorY, float x, float y, float width, float height ) { if( ( CursorX >= x ) && ( CursorX <= ( x + width ) ) && ( CursorY >= y ) && ( CursorY <= ( y + height ) ) ) return true; else return false; } if( Draw.CursorOnButton( CursorX, CursorY, 373, 148, 14, 14 ) && GetAsyncKeyState( VK_LBUTTON ) & 1 ) { M.VecX--; Draw.DrawRectColor( 373, 148, 14, 14, 7, 0.3f, 0.3f, 0.3f, 1 ); Draw.DrawRectColor( 373, 148, 14, 1, 0.5f, 0.5f, 0.5f, 0.5f, 1 ); Draw.DrawRectColor( 373, 148, 1, 14, 7, 0.5f, 0.5f, 0.5f, 1 ); Draw.DrawRectColor( 373, 162, 15, 1, 0.5f, 0, 0, 0, 1 ); Draw.DrawRectColor( 387, 148, 1, 14, 7, 0, 0, 0, 1 ); if( M.VecX < -20 ){ M.VecX = -20; } }