示例#1
0
        public FieldItemEditor(MainSave sav)
        {
            InitializeComponent();
            this.TranslateInterface(GameInfo.CurrentLanguage);

            SAV  = sav;
            Map  = new MapManager(sav);
            View = new MapViewer(Map);

            Loading = true;
            foreach (var acre in MapGrid.Acres)
            {
                CB_Acre.Items.Add(acre.Name);
            }

            NUD_PlazaX.Value = sav.EventPlazaLeftUpX;
            NUD_PlazaY.Value = sav.EventPlazaLeftUpZ;

            foreach (var obj in Map.Buildings)
            {
                LB_Items.Items.Add(obj.ToString());
            }

            ReloadMapBackground();
            PG_Tile.SelectedObject        = new FieldItem();
            PG_TerrainTile.SelectedObject = new TerrainTile();
            LB_Items.SelectedIndex        = 0;
            CB_Acre.SelectedIndex         = 0;
            Loading = false;
            LoadItemGridAcre();
        }
示例#2
0
        public FieldItemEditor(MainSave sav)
        {
            InitializeComponent();
            this.TranslateInterface(GameInfo.CurrentLanguage);

            SAV  = sav;
            Map  = new MapManager(sav);
            View = new MapViewer(Map);

            Loading = true;

            LoadComboBoxes();
            LoadBuildings(sav);
            ReloadMapBackground();
            LoadEditors();
            LB_Items.SelectedIndex   = 0;
            CB_Acre.SelectedIndex    = 0;
            CB_MapAcre.SelectedIndex = 0;
            Loading = false;
            LoadItemGridAcre();
        }