Increase angle by moving mouse to the right
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user