示例#1
0
        private void SystemIconForm_Load(object sender, EventArgs e)
        {
            Size system_icon_size = GetSystemIconImageSize();

            system_icon             = new ImageFormRef(this, "system_icon", system_icon_size.Width, system_icon_size.Height, 1, Program.ROM.RomInfo.system_icon_pointer(), 0, Program.ROM.RomInfo.system_icon_palette_pointer());
            system_move_allowicon   = new ImageFormRef(this, "system_move_allowicon", 32 * 8, 2 * 8, 1, Program.ROM.RomInfo.system_move_allowicon_pointer(), 0, Program.ROM.RomInfo.system_move_allowicon_palette_pointer());
            system_weapon_icon_icon = new ImageFormRef(this, "system_weapon_icon_icon", 32 * 8, 32, 1, Program.ROM.RomInfo.system_weapon_icon_pointer(), 0, Program.ROM.RomInfo.system_weapon_icon_palette_pointer());
            system_music_icon_icon  = new ImageFormRef(this, "system_music_icon_icon", 32 * 8, 32, 1, Program.ROM.RomInfo.system_music_icon_pointer(), 0, Program.ROM.RomInfo.system_music_icon_palette_pointer());

            if (Program.ROM.RomInfo.version() >= 7)
            {
                systemmenu_goal = new ImageFormRef(this, "systemmenu_goal", 256, 256, 4, Program.ROM.RomInfo.systemmenu_common_image_pointer(), Program.ROM.RomInfo.systemmenu_goal_tsa_pointer(), Program.ROM.RomInfo.systemmenu_common_palette_pointer());
                systemmenu_goal_panel.Show();
            }
            else
            {//FE6
                systemmenu_goal_panel.Hide();
            }

            if (Program.ROM.RomInfo.version() >= 8)
            {//FE8
                systemmenu_badstatus = new ImageFormRef(this, "systemmenu_badstatus", 40, 8 * 9, 1, Program.ROM.RomInfo.systemmenu_badstatus_image_pointer(), 0, Program.ROM.RomInfo.systemmenu_badstatus_palette_pointer());
                systemmenu_old_badstatus_panel.Hide();

                systemmenu_badstatus_panel.Height   = systemmenu_badstatus_panel.Height * 2;
                systemmenu_badstatus_Picture.Height = systemmenu_badstatus_Picture.Height * 2;
                InputFormRef.markupJumpLabel(X_StatusBackgroundLink);
            }
            else if (Program.ROM.RomInfo.version() >= 7)
            {//FE7
                systemmenu_badstatus     = new ImageFormRef(this, "systemmenu_badstatus", 32, 8 * 4, 1, Program.ROM.RomInfo.systemmenu_badstatus_image_pointer(), 0, Program.ROM.RomInfo.systemmenu_badstatus_palette_pointer());
                systemmenu_old_badstatus = new ImageFormRef(this, "systemmenu_old_badstatus", 256, 32, 1, Program.ROM.RomInfo.systemmenu_badstatus_old_image_pointer(), 0, Program.ROM.RomInfo.systemmenu_badstatus_palette_pointer());
                X_StatusBackgroundLink.Hide();
            }
            else
            {//FE6
                systemmenu_old_badstatus = new ImageFormRef(this, "systemmenu_old_badstatus", 256, 32, 1, Program.ROM.RomInfo.systemmenu_badstatus_old_image_pointer(), 0, Program.ROM.RomInfo.systemmenu_badstatus_palette_pointer());
                systemmenu_badstatus_panel.Hide();
                systemmenu_old_badstatus_panel.Location = systemmenu_badstatus_panel.Location;
                X_StatusBackgroundLink.Hide();
            }
            systemmenu_terrain       = new ImageFormRef(this, "systemmenu_terrain", 256, 256, 4, Program.ROM.RomInfo.systemmenu_common_image_pointer(), Program.ROM.RomInfo.systemmenu_terrain_tsa_pointer(), Program.ROM.RomInfo.systemmenu_common_palette_pointer());
            systemmenu_name          = new ImageFormRef(this, "systemmenu_name", 256, 256, 4, Program.ROM.RomInfo.systemmenu_name_image_pointer(), Program.ROM.RomInfo.systemmenu_name_tsa_pointer(), Program.ROM.RomInfo.systemmenu_name_palette_pointer());
            systemmenu_battlepreview = new ImageFormRef(this, "systemmenu_battlepreview", 256, 256, 4, Program.ROM.RomInfo.systemmenu_battlepreview_image_pointer(), Program.ROM.RomInfo.systemmenu_battlepreview_tsa_pointer(), Program.ROM.RomInfo.systemmenu_battlepreview_palette_pointer());

            systemarea_move_gradation_palette.Value   = Program.ROM.p32(Program.ROM.RomInfo.systemarea_move_gradation_palette_pointer());
            systemarea_attack_gradation_palette.Value = Program.ROM.p32(Program.ROM.RomInfo.systemarea_attack_gradation_palette_pointer());
            systemarea_staff_gradation_palette.Value  = Program.ROM.p32(Program.ROM.RomInfo.systemarea_staff_gradation_palette_pointer());

            InputFormRef.markupJumpLabel(X_Jump_Patch);
            InputFormRef.markupJumpLabel(X_GraphicsTool);
            InputFormRef.markupJumpLabel(X_Internet);
            systemIconPictureBox1.Image = ImageSystemIconForm.Allows(8);
            systemIconPictureBox2.Image = ImageSystemIconForm.Fort();
            systemIconPictureBox3.Image = ImageSystemIconForm.Vendor();
            IconRedraw();
        }