public RectCalculator(RectCalculator other)
 {
     this.m_anchorMax = other.m_anchorMax;
     this.anchorMin   = other.anchorMin;
     this.pivot       = other.pivot;
     this.size        = other.size;
     this.pos         = other.pos;
     this.left        = other.left;
     this.right       = other.right;
     this.top         = other.top;
     this.bottom      = other.bottom;
 }
Exemple #2
0
 protected GUINode(GUINode other)
 {
     m_name          = other.m_name;
     m_enable        = other.m_enable;
     m_active        = other.m_active;
     rotateAngle     = other.rotateAngle;
     rotateOffset    = other.rotateOffset;
     color           = other.color;
     contentColor    = other.contentColor;
     backgroundColor = other.backgroundColor;
     this.calculator = new RectCalculator(other.calculator);
     for (int i = 0; i < other.children.Count; i++)
     {
         GUINode element = other.children[i] as GUINode;
         GUINode copy    = Activator.CreateInstance(element.GetType(), other.children[i]) as GUINode;
         copy.parent = this;
     }
 }
Exemple #3
0
 protected GUINode()
 {
     calculator = new RectCalculator(); Reset();
 }
Exemple #4
0
 public RectCalculatorEditor(RectCalculator calculator)
 {
     this.calculator = calculator;
 }