예제 #1
0
파일: ZNode.cs 프로젝트: ZenCoderGames/ZAI
        public ZNode(BASE_TYPE type, ZNodeTree nodeTree, Rect wr)
        {
            BaseType    = type;
            _nodeTree   = nodeTree;
            _windowRect = wr;
            Name        = "";

            SetupSkinParams();

            _connectorList = new List <ZNodeConnector>();
            CreateInConnector();
            CreateOutConnector();
        }
예제 #2
0
 public ParentObject()
     : base()
 {
     this.Name = "";
     this.Base = BASE_TYPE.UNKNOWN;
 }
예제 #3
0
        public bool CheckType()
        {
            bool blnResult = true;

            if (Name.BackGroundColor == COLORS.lngClYellow)
            {
                Type = BASE_TYPE.SCREEN;
            }
            else if (Name.BackGroundColor == COLORS.lngClPurple)
            {
                Type = BASE_TYPE.FILE;
            }
            else
            {
                if (Name.Value.IndexOf(KEYWORDS.glnCustomPrefix, 1) == 1)
                {
                    Type = BASE_TYPE.CUSTOM;
                    Name.Value.Replace(KEYWORDS.glnCustomPrefix, KEYWORDS.glnNothing);
                }
                else
                {
                    Type = BASE_TYPE.ATTRIBUTE;
                }
            }

            return blnResult;
        }
예제 #4
0
 public TemplateCell(string val, long fontcolor, long backcolor)
 {
     this.Type = BASE_TYPE.UNKNOWN;
     this.Value = val;
     this.FontColor = fontcolor;
     this.BackGroundColor = backcolor;
 }