public void LoadScreen()
        {
            if (Tab.SelectedIndex != 0)
            {//地図ではない場合、非表示にはなるため、 MapPicture.OnLoadが呼ばれないらしい...
                Tab.SelectedIndex = 0;
            }

            Bitmap map = ImageUtil.Blank(320, 240);

            map = ImageUtil.DrawGrid(map, OptionForm.Color_Keyword_ForeColor(), 16);

            MAP.ClearAllPoint();
            MAP.LoadMap(map);

            MAP.SetChipSize(1);
            Bitmap icon = ImageSystemIconForm.YubiTate();

            U.MakeTransparent(icon);
            MAP.SetDefaultIcon(icon, -8, -14);

            if (!MAP.IsMapLoad())
            {
                return;
            }
            int width  = MAP.GetMapBitmapWidth();
            int height = MAP.GetMapBitmapHeight() + this.MAP.CommandBar.Height * 2;

            this.Tab.Width    = width;
            this.Tab.Height   = height;
            this.MAP.Width    = width;
            this.MAP.Height   = height;
            Tab.SelectedIndex = 0;
            this.Width        = width;
            this.Height       = height;
        }
        private void WorldMapPathEditorForm_Load(object sender, EventArgs e)
        {
            MakePathCombo();
            MapPictureBox.SetChipSize(1);
            Bitmap icon = ImageSystemIconForm.YubiTate();

            U.MakeTransparent(icon);
            MapPictureBox.SetDefaultIcon(icon, -8, -14);
            U.SelectedIndexSafety(PathType, 0);
        }
Ejemplo n.º 3
0
        void DrawIcon()
        {
            if (Program.ROM == null)
            {
                return;
            }
            Bitmap b;

            if (IconTypeEnum.Weapon == iconType)
            {
                b = ImageSystemIconForm.WeaponIcon(iconNumber);
            }
            else if (IconTypeEnum.Attribute == iconType)
            {
                b = ImageSystemIconForm.Attribute(iconNumber);
            }
            else if (IconTypeEnum.Cursol == iconType)
            {
                b = ImageSystemIconForm.Cursol();
            }
            else if (IconTypeEnum.Yubi == iconType)
            {
                if (iconNumber == 0)
                {
                    b = ImageSystemIconForm.YubiYoko();
                }
                else
                {
                    b = ImageSystemIconForm.YubiTate();
                }
            }
            else if (IconTypeEnum.Exit == iconType)
            {
                b = ImageSystemIconForm.ExitPoint();
            }
            else if (IconTypeEnum.Allow == iconType)
            {
                b = ImageSystemIconForm.Allows((int)iconNumber);
            }
            else if (IconTypeEnum.Music == iconType)
            {
                b = ImageSystemIconForm.MusicIcon(iconNumber);
            }
            else
            {
                b = ImageSystemIconForm.Blank16();
            }
            U.MakeTransparent(b);
            base.Image = b;
        }
Ejemplo n.º 4
0
        private void MapPictureBox_Load(object sender, EventArgs e)
        {
            if (this.DesignMode)
            {
                return;
            }

            this.ZoomComboBox.Text             = "100%";
            this.StopDrawMarkupMarkNotUnionTab = "";

            U.ConvertComboBox(MapSettingForm.MakeMapIDList(), ref this.MapSelector);
            //最後にワールドマップを追加.
            this.MapSelector.Items.Add(R._("ワールドマップ"));

            this.ConstWorldMapID = MapSettingForm.GetDataCount();

            this.DefualtIcon = ImageSystemIconForm.YubiTate();
            U.MakeTransparent(this.DefualtIcon);
        }
Ejemplo n.º 5
0
        private void WorldMapPathForm_Load(object sender, EventArgs e)
        {
            MapPictureBox.HideCommandBar();
            MapPictureBox.SetChipSize(1);
            Bitmap icon = ImageSystemIconForm.YubiTate();

            U.MakeTransparent(icon);
            MapPictureBox.SetDefualtIcon(icon, -8, -14);

            //拡張ボタンを表示するかどうか
            if (WorldMapPathForm.IsShowWorldmapPathExetdns(this.AddressList))
            {
                AddressListExpandsButton_255.Show();
            }
            else
            {
                this.AddressList.Height += AddressListExpandsButton_255.Height;
                AddressListExpandsButton_255.Hide();
            }
        }
        public void LoadMap(uint mapid)
        {
            if (Tab.SelectedIndex != 0)
            {//地図ではない場合、非表示にはなるため、 MapPicture.OnLoadが呼ばれないらしい...
                Tab.SelectedIndex = 0;
            }

            MAP.ClearAllPoint();
            MAP.LoadMap(mapid);

            if (MAP.IsWorldmap(mapid))
            {
                MAP.SetChipSize(1);
                Bitmap icon = ImageSystemIconForm.YubiTate();
                U.MakeTransparent(icon);
                MAP.SetDefaultIcon(icon, -8, -14);
            }
            else
            {
                MAP.SetChipSize(16);
                Bitmap icon = ImageSystemIconForm.YubiTate();
                U.MakeTransparent(icon);
                MAP.SetDefaultIcon(icon, 0, 0);
            }

            if (!MAP.IsMapLoad())
            {
                return;
            }
            int width  = MAP.GetMapBitmapWidth();
            int height = MAP.GetMapBitmapHeight() + this.MAP.CommandBar.Height * 2;

            this.Tab.Width    = width;
            this.Tab.Height   = height;
            this.MAP.Width    = width;
            this.MAP.Height   = height;
            Tab.SelectedIndex = 0;
            this.Width        = width;
            this.Height       = height;
        }