Exemple #1
0
        private void RandomTiler_Load(object sender, EventArgs e)
        {
            var tiles = RandomTiles.Load();

            cmbTileSet.BeginUpdate();

            foreach (RandomTilesList tileset in tiles.List)
            {
                cmbTileSet.Items.Add(tileset);
            }

            cmbTileSet.EndUpdate();

            if (cmbTileSet.Items.Count > 0)
            {
                cmbTileSet.SelectedIndex = 0;
            }

            var hues = HueGroups.Load();

            cmbHues.BeginUpdate();

            foreach (var huelist in hues.Groups)
            {
                cmbHues.Items.Add(huelist);
            }

            cmbHues.EndUpdate();

            if (cmbHues.Items.Count > 0)
            {
                cmbHues.SelectedIndex = 0;
            }

            UpdateFillText();

            // Maps
            cmbMap.BeginUpdate();

            for (var i = 0; i < 4; i++)
            {
                if (Pandora.Profile.Travel.EnabledMaps[i])
                {
                    cmbMap.Items.Add(Pandora.Profile.Travel.MapNames[i]);
                }
            }

            cmbMap.EndUpdate();

            if (cmbMap.Items.Count > 0)
            {
                cmbMap.SelectedIndex = 0;
            }
        }
        private void RandomTileTemplate_Load(object sender, EventArgs e)
        {
            m_List = RandomTiles.Load();

            foreach (RandomTilesList list in m_List.List)
            {
                cmbGroups.Items.Add(list);
            }

            if (cmbGroups.Items.Count > 0)
            {
                cmbGroups.SelectedIndex = 0;
            }
        }
Exemple #3
0
        private void m_TileForm_Closed(object sender, EventArgs e)
        {
            lnkEditTile.Enabled = true;

            // Update the tiles
            var tiles = RandomTiles.Load();

            cmbTileSet.BeginUpdate();
            cmbTileSet.Items.Clear();

            foreach (RandomTilesList tileset in tiles.List)
            {
                cmbTileSet.Items.Add(tileset);
            }

            cmbTileSet.EndUpdate();

            if (cmbTileSet.Items.Count > 0)
            {
                cmbTileSet.SelectedIndex = 0;
            }
        }