Exemple #1
0
        private void UpdateUISaveFiles()
        {
            uiSaveFileColumn.Clear();

            foreach (FileInfo fileInfo in SaveFileController.GetSaveFiles())
            {
                var tempFileInfo = fileInfo;

                uiSaveFileColumn.AddUIElement(new UISaveFile(
                                                  new Transform(new Vector2(250, 200)),
                                                  ContentHelper.Box4x4_Sprite,
                                                  screen,
                                                  tempFileInfo,
                                                  canSave
                                                  ));
            }
        }
        public void UpdateUIVisitables()
        {
            visitablesColumn.Clear();

            //Creating visitables
            foreach (IVisitable visitable in GalaxyController.Visitables)
            {
                ///<see cref="PlanetarySystem.Visit"/> and <see cref="Citadel.Visit"/>.
                visitablesColumn.AddUIElement(new UIPlanetarySystem(
                                                  new Transform(Vector2.Zero),
                                                  ContentHelper.Box4x4_Sprite,
                                                  new EventArg0(visitable.Visit),
                                                  this,
                                                  visitable
                                                  ));
            }
        }