Increase angle by moving mouse to the right

This commit is contained in:
MathemanFlo
2022-02-23 21:55:02 +01:00
parent 8569c37a85
commit eda1dd643e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ class UIHeader {
}
Context.brushAngle = ui.slider(Context.brushAngleHandle, tr("Angle"), 0.0, 360.0, true, 1);
if (ui.isHovered) ui.tooltip(tr("Hold {brush_angle} and move mouse to the right to decrease the angle\nHold {brush_angle} and move mouse to the left to increase the angle", ["brush_angle" => Config.keymap.brush_angle]));
if (ui.isHovered) ui.tooltip(tr("Hold {brush_angle} and move mouse to the left to decrease the angle\nHold {brush_angle} and move mouse to the right to increase the angle", ["brush_angle" => Config.keymap.brush_angle]));
if (Context.brushAngleHandle.changed) {
MakeMaterial.parsePaintMaterial();
+1 -1
View File
@@ -227,7 +227,7 @@ class UISidebar {
Context.brushOpacityHandle.value = Context.brushOpacity;
}
else if (Operator.shortcut(Config.keymap.brush_angle, ShortcutDown)) {
Context.brushAngle -= mouse.movementX / 5;
Context.brushAngle += mouse.movementX / 5;
Context.brushAngle = Std.int(Context.brushAngle) % 360;
if (Context.brushAngle < 0) Context.brushAngle += 360;
Context.brushAngleHandle.value = Context.brushAngle;