weirdly try to make dragtoselect rectangle bigger at low zoom
This commit is contained in:
@@ -161,7 +161,11 @@ class DragToSelectPlugin extends FlxBasic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!rect.isEmpty) {
|
} else if (!rect.isEmpty) {
|
||||||
dragState.debugLayer.drawFlxRect(rect, boxColor);
|
var thickness = 1.0;
|
||||||
|
if (dragState.debugLayer.camera.zoom < 1.0) {
|
||||||
|
thickness = Math.ceil(0.5 / dragState.debugLayer.camera.zoom);
|
||||||
|
}
|
||||||
|
dragState.debugLayer.drawFlxRect(rect, boxColor, thickness);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user