示例#1
0
 public AppearanceParameters ReplaceChildsBehaviourMode(ChildsBehaviourMode childsBehaviourMode)
 {
     return(new AppearanceParameters(this)
     {
         replaceChildsBehaviourMode = true, childsBehaviourMode = childsBehaviourMode
     });
 }
        public AppearanceParameters(AppearanceParameters other)
        {
            this.replaceCallback = other.replaceCallback;
            this.callback        = other.callback;

            this.replaceDelay = other.replaceDelay;
            this.delay        = other.delay;

            this.replaceImmediately = other.replaceImmediately;
            this.immediately        = other.immediately;

            this.replaceResetAnimation = other.replaceResetAnimation;
            this.resetAnimation        = other.resetAnimation;

            this.replaceIncludeChilds = other.replaceIncludeChilds;
            this.includeChilds        = other.includeChilds;

            this.replaceChildsBehaviourMode = other.replaceChildsBehaviourMode;
            this.childsBehaviourMode        = other.childsBehaviourMode;

            this.replaceForced = other.replaceForced;
            this.forced        = other.forced;

            this.replaceManual = other.replaceManual;
            this.manual        = other.manual;
        }
示例#3
0
        public ChildsBehaviourMode GetChildsBehaviourMode(ChildsBehaviourMode defaultValue)
        {
            if (this.replaceChildsBehaviourMode == true)
            {
                return(this.childsBehaviourMode);
            }

            return(defaultValue);
        }
示例#4
0
		public AppearanceParameters(AppearanceParameters other) {

			this.replaceCallback = other.replaceCallback;
			this.callback = other.callback;
			
			this.replaceDelay = other.replaceDelay;
			this.delay = other.delay;
			
			this.replaceImmediately = other.replaceImmediately;
			this.immediately = other.immediately;

			this.replaceResetAnimation = other.replaceResetAnimation;
			this.resetAnimation = other.resetAnimation;

			this.replaceIncludeChilds = other.replaceIncludeChilds;
			this.includeChilds = other.includeChilds;

			this.replaceChildsBehaviourMode = other.replaceChildsBehaviourMode;
			this.childsBehaviourMode = other.childsBehaviourMode;
			
			this.replaceForced = other.replaceForced;
			this.forced = other.forced;

		}
示例#5
0
		public AppearanceParameters ReplaceChildsBehaviourMode(ChildsBehaviourMode childsBehaviourMode) {
			
			return new AppearanceParameters(this) { replaceChildsBehaviourMode = true, childsBehaviourMode = childsBehaviourMode };

		}
示例#6
0
		public ChildsBehaviourMode GetChildsBehaviourMode(ChildsBehaviourMode defaultValue) {
			
			if (this.replaceChildsBehaviourMode == true) return this.childsBehaviourMode;
			
			return defaultValue;
			
		}