public void Init(uint addr)
        {
            this.Address           = addr;
            this.ValueTextBox.Text = U.ToHexString(addr);

            uint x = Program.RAM.u8(addr);

            this.ReWriteValueX.Value       = x;
            this.ReWriteValueX.Maximum     = 255;
            this.ReWriteValueX.Hexadecimal = false;

            uint y = Program.RAM.u8(addr + 1);

            this.ReWriteValueY.Value       = y;
            this.ReWriteValueY.Maximum     = 255;
            this.ReWriteValueY.Hexadecimal = false;

            this.MapPictureBox.SetPoint("", (int)x, (int)y);
            this.MapPictureBox.SetDefaultIcon(ImageSystemIconForm.Blank16());

            this.ReWriteValueX.BackColor = OptionForm.Color_InputDecimal_BackColor();
            this.ReWriteValueX.ForeColor = OptionForm.Color_InputDecimal_ForeColor();
            this.ReWriteValueY.BackColor = OptionForm.Color_InputDecimal_BackColor();
            this.ReWriteValueY.ForeColor = OptionForm.Color_InputDecimal_ForeColor();
            this.ActiveControl           = ReWriteValueX;
        }
Beispiel #2
0
 private void EventUnitFE7Form_Load(object sender, EventArgs e)
 {
     X_Tooltip = InputFormRef.GetToolTip <EventUnitFE7Form>();
     this.EVENTUNIT_BEFORE_COORD.SetToolTipEx(this.X_Tooltip);
     this.EVENTUNIT_AFTER_COORD.SetToolTipEx(this.X_Tooltip);
     MapPictureBox.SetDefaultIcon(ImageSystemIconForm.Blank16());
 }
Beispiel #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;
        }