Пример #1
0
        void ReloadMapchangeList(uint mapid)
        {
            this.ChangeComboBox.Items.Clear();
            this.ChangeComboBox.BeginUpdate();

            string name = R._("メインマップ");

            this.ChangeComboBox.Items.Add(name);

            if (!IsWorldmap(mapid))
            {
                //マップ変化リストを作成する.
                List <MapChangeForm.ChangeSt> mapchange = MapChangeForm.MakeChangeList(mapid);
                for (int i = 0; i < mapchange.Count; i++)
                {
                    name = R._("マップ変化:") + U.ToHexString(mapchange[i].no);
                    this.ChangeComboBox.Items.Add(name);
                }
            }
            this.ChangeComboBox.EndUpdate();
        }
Пример #2
0
        private void ChangeComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            uint mapid = (uint)MapSelector.SelectedIndex;

            if (IsWorldmap(mapid))
            {//ワールドマップ
                this.MapBitMap = WorldMapImageForm.DrawWorldMap();
                this.Map.Image = MapBitMap;
            }
            else
            {
                this.MapBitMap = MapSettingForm.DrawMap(mapid, this.MapAnime);
                int change = ChangeComboBox.SelectedIndex;
                if (change >= 1)
                {
                    change = change - 1;
                    List <MapChangeForm.ChangeSt> mapchange = MapChangeForm.MakeChangeList(mapid);
                    if (change < mapchange.Count)
                    {
                        Bitmap c = MapSettingForm.DrawMapChange((uint)mapid
                                                                , (int)mapchange[change].width
                                                                , (int)mapchange[change].height
                                                                , mapchange[change].addr
                                                                , this.MapAnime);
                        ImageUtil.BitBlt(this.MapBitMap
                                         , (int)(mapchange[change].x * 16)
                                         , (int)(mapchange[change].y * 16)
                                         , c.Width
                                         , c.Height
                                         , c, 0, 0);
                        c.Dispose();
                    }
                }

                this.Map.Image = MapBitMap;
            }

            ZoomComboBox_SelectedIndexChanged(null, null);
        }