OpenToonz - An open-source full-featured 2D animation creation software
C
Triangle brush cursors
konero037f65d5efe5
diff --git a/toonz/sources/include/tools/cursors.h b/toonz/sources/include/tools/cursors.hindex a741def20..2069bbd6d 100644--- a/toonz/sources/include/tools/cursors.h+++ b/toonz/sources/include/tools/cursors.h@@ -19,6 +19,14 @@ enum {PenCursor,PenLargeCursor,PenCrosshairCursor,+ PenTriangleTopLeftCursor,+ PenTriangleTopRightCursor,+ PenTriangleBottomLeftCursor,+ PenTriangleBottomRightCursor,+ PenTriangleUpCursor,+ PenTriangleDownCursor,+ PenTriangleLeftCursor,+ PenTriangleRightCursor,BenderCursor,CutterCursor,DistortCursor,diff --git a/toonz/sources/tnztools/Resources/brush_triangle_bottom_left.png b/toonz/sources/tnztools/Resources/brush_triangle_bottom_left.pngnew file mode 100644index 000000000..45d269c44Binary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_bottom_left.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_bottom_right.png b/toonz/sources/tnztools/Resources/brush_triangle_bottom_right.pngnew file mode 100644index 000000000..9c3207dcbBinary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_bottom_right.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_down.png b/toonz/sources/tnztools/Resources/brush_triangle_down.pngnew file mode 100644index 000000000..0adc83693Binary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_down.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_left.png b/toonz/sources/tnztools/Resources/brush_triangle_left.pngnew file mode 100644index 000000000..c5b03b4f4Binary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_left.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_right.png b/toonz/sources/tnztools/Resources/brush_triangle_right.pngnew file mode 100644index 000000000..a78f7e1bcBinary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_right.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_top_left.png b/toonz/sources/tnztools/Resources/brush_triangle_top_left.pngnew file mode 100644index 000000000..9070cb056Binary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_top_left.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_top_right.png b/toonz/sources/tnztools/Resources/brush_triangle_top_right.pngnew file mode 100644index 000000000..c681d575bBinary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_top_right.png differdiff --git a/toonz/sources/tnztools/Resources/brush_triangle_up.png b/toonz/sources/tnztools/Resources/brush_triangle_up.pngnew file mode 100644index 000000000..ecad70991Binary files /dev/null and b/toonz/sources/tnztools/Resources/brush_triangle_up.png differdiff --git a/toonz/sources/tnztools/cursormanager.cpp b/toonz/sources/tnztools/cursormanager.cppindex 4d08188c1..da14dc848 100644--- a/toonz/sources/tnztools/cursormanager.cpp+++ b/toonz/sources/tnztools/cursormanager.cpp@@ -28,6 +28,22 @@ const struct {{ToolCursor::PenCursor, "brush", 16, 15, false},{ToolCursor::PenLargeCursor, "brush_large", 16, 15, false},{ToolCursor::PenCrosshairCursor, "brush_crosshair", 16, 15, false},+ {ToolCursor::PenTriangleTopLeftCursor, "brush_triangle_top_left",+ 16, 15, false},+ {ToolCursor::PenTriangleTopRightCursor, "brush_triangle_top_right",+ 16, 15, false},+ {ToolCursor::PenTriangleBottomLeftCursor, "brush_triangle_bottom_left",+ 16, 15, false},+ {ToolCursor::PenTriangleBottomRightCursor, "brush_triangle_bottom_right",+ 16, 15, false},+ {ToolCursor::PenTriangleUpCursor, "brush_triangle_up",+ 16, 15, false},+ {ToolCursor::PenTriangleDownCursor, "brush_triangle_down",+ 16, 15, false},+ {ToolCursor::PenTriangleLeftCursor, "brush_triangle_left",+ 16, 15, false},+ {ToolCursor::PenTriangleRightCursor, "brush_triangle_right",+ 16, 15, false},{ToolCursor::BenderCursor, "bender", 9, 7, true},{ToolCursor::CutterCursor, "cutter", 6, 24, true}, // 12,20, ???},{ToolCursor::EraserCursor, "eraser", 7, 21, true}, // 15,16, ???},@@ -175,6 +191,22 @@ public:cursorType = ToolCursor::PenLargeCursor;else if (brushType == "Crosshair")cursorType = ToolCursor::PenCrosshairCursor;+ else if (brushType == "Triangle Top Left")+ cursorType = ToolCursor::PenTriangleTopLeftCursor;+ else if (brushType == "Triangle Top Right")+ cursorType = ToolCursor::PenTriangleTopRightCursor;+ else if (brushType == "Triangle Bottom Left")+ cursorType = ToolCursor::PenTriangleBottomLeftCursor;+ else if (brushType == "Triangle Bottom Right")+ cursorType = ToolCursor::PenTriangleBottomRightCursor;+ else if (brushType == "Triangle Up")+ cursorType = ToolCursor::PenTriangleUpCursor;+ else if (brushType == "Triangle Down")+ cursorType = ToolCursor::PenTriangleDownCursor;+ else if (brushType == "Triangle Left")+ cursorType = ToolCursor::PenTriangleLeftCursor;+ else if (brushType == "Triangle Right")+ cursorType = ToolCursor::PenTriangleRightCursor;}bool useLeft =diff --git a/toonz/sources/tnztools/tnztools.qrc b/toonz/sources/tnztools/tnztools.qrcindex e333b8332..009378bda 100644--- a/toonz/sources/tnztools/tnztools.qrc+++ b/toonz/sources/tnztools/tnztools.qrc@@ -84,6 +84,14 @@<file>Resources/ex_precise_left.png</file><file>Resources/brush_large.png</file><file>Resources/brush_crosshair.png</file>+ <file>Resources/brush_triangle_top_left.png</file>+ <file>Resources/brush_triangle_top_right.png</file>+ <file>Resources/brush_triangle_bottom_left.png</file>+ <file>Resources/brush_triangle_bottom_right.png</file>+ <file>Resources/brush_triangle_up.png</file>+ <file>Resources/brush_triangle_down.png</file>+ <file>Resources/brush_triangle_left.png</file>+ <file>Resources/brush_triangle_right.png</file><file>Resources/tracker.png</file><file>Resources/ex_prev.png</file><file>Resources/ex_prev_left.png</file>diff --git a/toonz/sources/toonz/preferencespopup.cpp b/toonz/sources/toonz/preferencespopup.cppindex bde6c8338..87bf56543 100644--- a/toonz/sources/toonz/preferencespopup.cpp+++ b/toonz/sources/toonz/preferencespopup.cpp@@ -1398,7 +1398,15 @@ QList<ComboBoxItem> PreferencesPopup::getComboItemList({cursorBrushType,{{tr("Small"), "Small"},{tr("Large"), "Large"},- {tr("Crosshair"), "Crosshair"}}},+ {tr("Crosshair"), "Crosshair"},+ {tr("Triangle Top Left"), "Triangle Top Left"},+ {tr("Triangle Top Right"), "Triangle Top Right"},+ {tr("Triangle Bottom Left"), "Triangle Bottom Left"},+ {tr("Triangle Bottom Right"), "Triangle Bottom Right"},+ {tr("Triangle Up"), "Triangle Up"},+ {tr("Triangle Down"), "Triangle Down"},+ {tr("Triangle Left"), "Triangle Left"},+ {tr("Triangle Right"), "Triangle Right"}}},{cursorBrushStyle,{{tr("Default"), "Default"},{tr("Left-Handed"), "Left-Handed"},