示例#1
0
    //static readonly ColorHSB ColorActive        = new ColorHSB(0.15f, 0.65f, 1f, 1f);
    //static readonly ColorHSB ColorActiveSelf    = new ColorHSB(0.15f, 0.65f, 0.7f, 1f);
    //static readonly ColorHSB ColorInActive      = new ColorHSB(0.15f, 0f, 0.5f, 1f);
    protected override string getUndoName(bool set, h2IGroup group = h2IGroup.Target, h2IValue value = h2IValue.Same)
    {
        if (group == h2IGroup.Target)
        {
            return((set ? "Active " : "Deactive ") + target.name);
        }
        var g = group == h2IGroup.Selection ? "Selection" : "Siblings";

        if (value != h2IValue.InvertTarget)
        {
            return("Toggle Active " + g);
        }
        return(set ? "Deactive " : "Active " + g);
    }
示例#2
0
        protected override string getUndoName(bool set, h2IGroup group = h2IGroup.Target, h2IValue value = h2IValue.Same)
        {
            if (group == h2IGroup.Target)
            {
                return((set ? "Make " : "Clear ") + target.name + " static");
            }

            var g = group == h2IGroup.Selection ? "Selection" : "Siblings";

            if (value != h2IValue.InvertTarget)
            {
                return("Toggle static " + g);
            }
            return(set ? "Set static " : "Clear static " + g);
        }
示例#3
0
        protected override string getUndoName(bool set, h2IGroup group = h2IGroup.Target, h2IValue value = h2IValue.Same)
        {
            var str = set ? "Lock " : "Unlock ";

            if (group == h2IGroup.Target)
            {
                return(str + target.name);
            }

            var g = group == h2IGroup.Selection ? "Selection" : "Siblings";

            if (value != h2IValue.InvertTarget)
            {
                return("Toggle " + str + g);
            }
            return(set ? "Unlock " : "Lock " + g);
        }
示例#4
0
    protected override string getUndoName(bool set, h2IGroup group = h2IGroup.Target, h2IValue value = h2IValue.Same)
    {
        var str = set ? "Combine " : "Expand ";

        if (group == h2IGroup.Target)  //single
        {
            return(str + target.name);
        }

        var g = group == h2IGroup.Siblings ? "Siblings" : group == h2IGroup.Selection ? "Selection" : "";

        if (value != h2IValue.InvertTarget)
        {
            return("Toggle " + str + g);
        }
        return(set ? "Expand " : "Combine " + g);
    }
示例#5
0
 virtual protected string getUndoName(bool set, h2IGroup group = h2IGroup.Target, h2IValue value = h2IValue.Same)
 {
     return(null);
 }