コード例 #1
0
 public override void DrawMouseAttachments()
 {
     base.DrawMouseAttachments();
     if (GetSelectionCompleteAction() == SectionCompleteAction.CommitSelection)
     {
         var textColor = new Color(.8f, .8f, .8f);
         AllowToolUtility.DrawMouseAttachedLabel("StripMine_cursor_autoApply".Translate(), textColor);
     }
 }
コード例 #2
0
        public override void SelectedOnGUI()
        {
            // update def filter and draw filter readout on cursor
            if (constraintsNeedReindexing)
            {
                ReindexSelectionConstraints();
            }
            string label;

            if (!SelectionLimitAllowsAdditionalThing())
            {
                label = "SelectSimilar_cursor_limit".Translate();
            }
            else if (AnySelectionConstraints)
            {
                label = "SelectSimilar_cursor_nowSelecting".Translate(readableConstraintList);
            }
            else
            {
                label = "SelectSimilar_cursor_needConstraint".Translate();
            }
            AllowToolUtility.DrawMouseAttachedLabel(label);
        }
コード例 #3
0
 public override void DrawMouseAttachments()
 {
     base.DrawMouseAttachments();
     AllowToolUtility.DrawMouseAttachedLabel("HarvestFullyGrown_cursorTip".Translate());
 }