コード例 #1
0
 private void Transform_MarkedDirty(UITransform transform, DirtMarkType type)
 {
     if (type.HasFlags(DirtMarkType.DrawOrder))
     {
         FlagForSort();
     }
 }
コード例 #2
0
 private void Transform_MarkedDirty(DirtMarkType marks)
 {
     if (marks.HasAnyFlag(DirtMarkType.Boundaries, DirtMarkType.Enabled))
     {
         _needsBoundsUpdate = true;
     }
 }
コード例 #3
0
 private void Transform_MarkedDirty(DirtMarkType type)
 {
     if (type.HasAnyFlag(DirtMarkType.DrawOrder))
     {
         FlagForSort();
     }
 }
コード例 #4
0
 private void Transform_MarkedDirty(UITransform transform, DirtMarkType marks)
 {
     if (marks.HasFlags(DirtMarkType.Boundaries, DirtMarkType.Enabled))
     {
         _boundsNeedUpdate = true;
     }
 }
コード例 #5
0
        public override void Update(GameTime time)
        {
            if (Dirty == false)
            {
                return;
            }

            DirtMarkType marks = FULL_TRANSFORM_UPDATE;

            if (DirtMarks.HasAnyFlag(DirtMarkType.Enabled))
            {
                marks |= DirtMarkType.Enabled;
            }
            lock (SyncRoot)
            {
                for (int i = 0, count = _transforms.Count; i < count; i++)
                {
                    _transforms[i].InvokeMarkedDirtyInternal(marks);
                }
            }
            Dirty = false;
            ClearDirtMarks();
        }