void OpenOrCloseInv()
        {
            if (invControl != null && invControl.Disposed)
            {
                invControl = null;
            }

            if (invControl == null)
            {
                // If any UIWindow is opened, then can't open MenuWindow.
                if (ParentRoot.GetComponent <UIWindow>(true, true) == null)
                {
                    invControl = ResourceManager.LoadSeparateInstance <UIControl>(@"Store\AndreyKorolev\Inventory\File.ui", false, true);
                    if (invControl != null)
                    {
                        invOpen = true;
                        AddComponent(invControl);
                    }
                }
            }
            else
            {
                invControl.Dispose();
                invControl = null;
                invOpen    = false;
            }
        }
Пример #2
0
        void OpenOrCloseMenu()
        {
            if (menuWindow != null && menuWindow.Disposed)
            {
                menuWindow = null;
            }

            if (menuWindow == null)
            {
                // If any UIWindow is opened, then can't open MenuWindow.
                if (ParentRoot.GetComponent <UIWindow>(true, true) == null)
                {
                    menuWindow = ResourceManager.LoadSeparateInstance <UIWindow>(@"Base\UI\Screens\MenuWindow.ui", false, true);
                    if (menuWindow != null)
                    {
                        AddComponent(menuWindow);
                    }
                }
            }
            else
            {
                menuWindow.Dispose();
                menuWindow = null;
            }
        }
        public void OpenOrCloseLevelWindow()
        {
            if (menuWindow != null && menuWindow.Disposed)
            {
                menuWindow = null;
            }

            if (menuWindow == null)
            {
                // If any UIWindow is opened, then can't open MenuWindow.
                if (ParentRoot.GetComponent <UIWindow>(true, true) == null)
                {
                    ScreenMessages.Add("1");
                    menuWindow = ResourceManager.LoadSeparateInstance <UIWindow>(@"Store\AndreyKorolev\5MinGame\NextLevelMenu.ui", false, true);
                    if (menuWindow != null)
                    {
                        AddComponent(menuWindow);
                    }
                }
            }
            else
            {
                ScreenMessages.Add("2");
                menuWindow.Dispose();
                menuWindow = null;
            }
        }
Пример #4
0
 protected override void OnInitialized()
 {
     if (Active && ParentRoot.ActiveRow.Equals(Guid.Empty))
     {
         ParentRoot.OnRowActivated(RowId);
     }
 }
Пример #5
0
 public bool Equals(Crosslink?other)
 {
     return(!(other is null) &&
            Shard == other.Shard &&
            StartEpoch == other.StartEpoch &&
            EndEpoch == other.EndEpoch &&
            DataRoot.Equals(other.DataRoot) &&
            ParentRoot.Equals(other.ParentRoot));
 }
Пример #6
0
        public void OnActiveToggle()
        {
            if (!Active)
            {
                ParentRoot.OnRowActivated(RowId);
            }

            if (ParentRoot.AllowMultiple || ParentRoot.ActiveRow.Equals(RowId))
            {
                Active = !Active;
                StateHasChanged();
            }
        }
Пример #7
0
        public bool Equals(BeaconBlockHeader other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(other, this))
            {
                return(true);
            }

            return(BodyRoot.Equals(other.BodyRoot) &&
                   ParentRoot.Equals(other.ParentRoot) &&
                   Slot == other.Slot &&
                   StateRoot.Equals(other.StateRoot));
        }
Пример #8
0
 public override string ToString()
 {
     return($"S:{Slot} P:{ParentRoot.ToString().Substring(0, 16)} St:{StateRoot.ToString().Substring(0, 16)}");
 }
Пример #9
0
 public override string ToString()
 {
     return($"s={Slot}_p={ParentRoot.ToString().Substring(0, 10)}_st={StateRoot.ToString().Substring(0, 10)}");
 }