UI: Add tooltips to the select tool modes
authorWilliam Reynish <billrey@me.com>
Mon, 6 May 2019 14:47:13 +0000 (16:47 +0200)
committerWilliam Reynish <billrey@me.com>
Mon, 6 May 2019 14:47:13 +0000 (16:47 +0200)
Especially needed now that they are just icons

source/blender/windowmanager/intern/wm_operator_props.c

index 735b9484392e1e0b03339883d74ec3ebdc002f23..db1f9a32935974ca3b39d8b2dc093afd460a6d27 100644 (file)
@@ -344,11 +344,11 @@ void WM_operator_properties_gesture_box(wmOperatorType *ot)
 void WM_operator_properties_select_operation(wmOperatorType *ot)
 {
   static const EnumPropertyItem select_mode_items[] = {
-      {SEL_OP_SET, "SET", ICON_SELECT_SET, "New", ""},
-      {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Add", ""},
-      {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", ""},
-      {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", ""},
-      {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", ""},
+      {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"},
+      {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"},
+      {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"},
+      {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", "Inverts existing selection"},
+      {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", "Intersect existing selection"},
       {0, NULL, 0, NULL, NULL},
   };
   PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");
@@ -359,9 +359,9 @@ void WM_operator_properties_select_operation(wmOperatorType *ot)
 void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
 {
   static const EnumPropertyItem select_mode_items[] = {
-      {SEL_OP_SET, "SET", ICON_SELECT_SET, "New", ""},
-      {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Add", ""},
-      {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", ""},
+      {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"},
+      {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"},
+      {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"},
       {0, NULL, 0, NULL, NULL},
   };
   PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");