[Bf-blender-cvs] [630d1ac6fc6] greasepencil-object: GP/Annotations: Provide usage hints about the "Poly" tool

Joshua Leung noreply at git.blender.org
Thu Jun 28 11:37:59 CEST 2018


Commit: 630d1ac6fc644a2837c7104068fb68ff8b50a615
Author: Joshua Leung
Date:   Thu Jun 28 21:32:51 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rB630d1ac6fc644a2837c7104068fb68ff8b50a615

GP/Annotations: Provide usage hints about the "Poly" tool

===================================================================

M	source/blender/editors/gpencil/annotate_paint.c
M	source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 859f191984d..8b7c4c6e92b 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -1682,7 +1682,18 @@ static void gpencil_draw_status_indicators(bContext *C, tGPsdata *p)
 	/* header prints */
 	switch (p->status) {
 		case GP_STATUS_PAINTING:
-			// TODO: Indicate how to use Poly mode
+			switch (p->paintmode) {
+				case GP_PAINTMODE_DRAW_POLY:
+					/* Provide usage tips, since this is modal, and unintuitive without hints */
+					ED_workspace_status_text(C, IFACE_("Annotation Create Poly: LMB click to place next stroke vertex | "
+					                                  "ESC/Enter to end  (or click outside this area)"));
+					break;
+				default:
+					/* Do nothing - the others are self explanatory, exit quickly once the mouse is released
+					 * Showing any text would just be annoying as it would flicker.
+					 */
+					break;
+			}
 			break;
 
 		case GP_STATUS_IDLING:
@@ -1701,7 +1712,7 @@ static void gpencil_draw_status_indicators(bContext *C, tGPsdata *p)
 					                                  "E/ESC/Enter to end  (or click outside this area)"));
 					break;
 				case GP_PAINTMODE_DRAW_POLY:
-					ED_workspace_status_text(C, IFACE_("Annotation Poly Draw: LMB click to place next stroke vertex | "
+					ED_workspace_status_text(C, IFACE_("Annotation Create Poly: LMB click to place next stroke vertex | "
 					                                  "ESC/Enter to end  (or click outside this area)"));
 					break;
 
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index dc56f5c10db..c9af3ea1106 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2338,9 +2338,18 @@ static void gpencil_draw_status_indicators(bContext *C, tGPsdata *p)
 {
 	/* header prints */
 	switch (p->status) {
-		case GP_STATUS_PAINTING:
-			// TODO: Indicate how to use "Poly" mode
-			break;
+		switch (p->paintmode) {
+				case GP_PAINTMODE_DRAW_POLY:
+					/* Provide usage tips, since this is modal, and unintuitive without hints */
+					ED_workspace_status_text(C, IFACE_("Annotation Create Poly: LMB click to place next stroke vertex | "
+					                                  "ESC/Enter to end  (or click outside this area)"));
+					break;
+				default:
+					/* Do nothing - the others are self explanatory, exit quickly once the mouse is released
+					 * Showing any text would just be annoying as it would flicker.
+					 */
+					break;
+			}
 
 		case GP_STATUS_IDLING:
 			/* print status info */



More information about the Bf-blender-cvs mailing list