コード例 #1
0
        private void X_JUMP_SHINAN_Click(object sender, EventArgs e)
        {
            uint shinan = PatchUtil.SearchShinanTablePatch();

            if (shinan == U.NOT_FOUND)
            {
                return;
            }
            if (this.AddressList.SelectedIndex < 0)
            {
                return;
            }
            uint selected = (uint)this.AddressList.SelectedIndex;
            uint addr     = shinan + (selected * 4);

            if (!U.isSafetyOffset(addr))
            {
                return;
            }
            uint eventAddr = Program.ROM.p32(addr);

            if (!U.isSafetyOffset(eventAddr))
            {
                return;
            }

            EventScriptForm f = (EventScriptForm)InputFormRef.JumpForm <EventScriptForm>(U.NOT_FOUND);

            f.JumpTo(eventAddr);
        }
コード例 #2
0
        public MapSettingForm()
        {
            InitializeComponent();

            InputFormRef.markupJumpLabel(X_MAPSTYLE_CHANGE);
            MapPictureBox.HideCommandBar();
            MapPictureBox.SetPointIcon("L_143_MAPXY_144", ImageSystemIconForm.ExitPoint());
            U.ConvertComboBox(InputFormRef.MakeTerrainSet(), ref L_19_COMBO, true);
            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);

            uint shinan = PatchUtil.SearchShinanTablePatch();

            if (shinan != U.NOT_FOUND)
            {
                InputFormRef.markupJumpLabel(X_JUMP_SHINAN);
                X_JUMP_SHINAN.Show();
            }
        }