Exemple #1
0
 public virtual void AddToGUIUpdateList()
 {
     if (controlled == this)
     {
         CharacterHUD.AddToGUIUpdateList(this);
     }
 }
Exemple #2
0
 public virtual void AddToGUIUpdateList()
 {
     if (spied == this)
     {
         CharacterHUD.AddToGUIUpdateList(this);
     }
     else if (spied == null && controlled == this)
     {
         CharacterHUD.AddToGUIUpdateList(this);
     }
 }
Exemple #3
0
        public override void AddToGUIUpdateList()
        {
            if (tutorial != null)
            {
                tutorial.AddToGUIUpdateList();
            }

            if (MapEntity.SelectedList.Count == 1)
            {
                MapEntity.SelectedList[0].AddToGUIUpdateList();
            }
            if (MapEntity.HighlightedListBox != null)
            {
                MapEntity.HighlightedListBox.AddToGUIUpdateList();
            }

            leftPanel.AddToGUIUpdateList();
            topPanel.AddToGUIUpdateList();

            if (wiringMode)
            {
                wiringToolPanel.AddToGUIUpdateList();
            }

            if ((characterMode || wiringMode) && dummyCharacter != null)
            {
                CharacterHUD.AddToGUIUpdateList(dummyCharacter);
                if (dummyCharacter.SelectedConstruction != null)
                {
                    dummyCharacter.SelectedConstruction.AddToGUIUpdateList();
                }
            }
            else
            {
                if (loadFrame != null)
                {
                    loadFrame.AddToGUIUpdateList();
                }
                else if (saveFrame != null)
                {
                    saveFrame.AddToGUIUpdateList();
                }
                else if (selectedTab > -1)
                {
                    GUItabs[selectedTab].AddToGUIUpdateList();
                }
            }

            GUI.AddToGUIUpdateList();
        }