コード例 #1
0
        void UpdateItemDropLabel()
        {
            uint unit_id  = (uint)this.B0.Value;
            uint class_id = (uint)this.B1.Value;

            if (unit_id > 0)
            {
                unit_id--;
            }
            uint unit_addr  = UnitForm.GetUnitAddr(unit_id);
            uint class_addr = ClassForm.GetClassAddr(class_id);

            bool isItemDrop =
                IsItemDropFlag(unit_addr) || IsItemDropFlag(class_addr);

            if (isItemDrop)
            {//アイテムドロップ
                X_ITEMDROP.Text      = R._("アイテムドロップ: ドロップする");
                X_ITEMDROP.ForeColor = OptionForm.Color_ControlComment_ForeColor();
            }
            else
            {
                X_ITEMDROP.Text      = R._("アイテムドロップ: ドロップしない");
                X_ITEMDROP.ForeColor = OptionForm.Color_Control_ForeColor();
            }
        }
コード例 #2
0
        public NotifyDirectInjectionNotifyUserControl()
        {
            InitializeComponent();

            Color Color_Notify_BackColor = OptionForm.Color_List_HoverColor();
            Color Color_Notify_ForeColor = OptionForm.Color_Control_ForeColor();

            this.BackColor = Color_Notify_BackColor;
            this.ForeColor = Color_Notify_ForeColor;

            this.BIG_TEXT.BackColor = Color_Notify_BackColor;
            this.BIG_TEXT.ForeColor = Color_Notify_ForeColor;

            this.AllowLabel.BackColor = Color_Notify_BackColor;
            this.AllowLabel.ForeColor = Color_Notify_ForeColor;
        }
コード例 #3
0
ファイル: HexBox.cs プロジェクト: maritlage/FEBuilderGBA
        private void HexBox_Load(object sender, EventArgs e)
        {
            if (this.DesignMode)
            {
                return;
            }

            SetData(Program.ROM.Data);

            PanelForeBrush       = new SolidBrush(OptionForm.Color_Control_ForeColor());
            PanelBackBrush       = new SolidBrush(OptionForm.Color_Control_BackColor());
            ControlForeBrush     = new SolidBrush(OptionForm.Color_Input_ForeColor());
            ControlBackBrush     = new SolidBrush(OptionForm.Color_Input_BackColor());
            ControlSelectedBrush = new SolidBrush(OptionForm.Color_List_SelectedColor());
            RefColorBrush        = new SolidBrush(OptionForm.Color_NotifyWrite_BackColor());
            MarkColorBrush       = new SolidBrush(OptionForm.Color_Error_ForeColor());

            this.OneWidth  = (uint)(this.Font.SizeInPoints * 2);
            this.OneHeight = (uint)(this.Font.Height + 2);
            ClearUndoBuffer();
        }
コード例 #4
0
        private void SearchHelperControl_Load(object sender, EventArgs e)
        {
            LangCode = System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName;

            Color Color_Control_BackColor = OptionForm.Color_Control_BackColor();
            Color Color_Control_ForeColor = OptionForm.Color_Control_ForeColor();

            EntryButton.BackColor = Color_Control_BackColor;
            EntryButton.ForeColor = Color_Control_ForeColor;
            NextButton.BackColor  = Color_Control_BackColor;
            NextButton.ForeColor  = Color_Control_ForeColor;
            this.BackColor        = Color_Control_BackColor;
            this.ForeColor        = Color_Control_ForeColor;
            searchlabel.BackColor = Color_Control_BackColor;
            searchlabel.ForeColor = Color_Control_ForeColor;


            Color Color_Input_BackColor = OptionForm.Color_Input_BackColor();
            Color Color_Input_ForeColor = OptionForm.Color_Input_ForeColor();

            SearchWord.BackColor = Color_Input_BackColor;
            SearchWord.ForeColor = Color_Input_ForeColor;
        }
コード例 #5
0
        SolidBrush ListBoxForeKeywordBrush; //キーワードのブラシ

        public SongTrackForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.TrackListBoxs = new ListBoxEx[] { Track1, Track2, Track3, Track4, Track5, Track6, Track7, Track8, Track9, Track10, Track11, Track12, Track13, Track14, Track15, Track16 };
            this.TrackLabels   = new Label[] { TrackLabel1, TrackLabel2, TrackLabel3, TrackLabel4, TrackLabel5, TrackLabel6, TrackLabel7, TrackLabel8, TrackLabel9, TrackLabel10, TrackLabel11, TrackLabel12, TrackLabel13, TrackLabel14, TrackLabel15, TrackLabel16 };

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.IsMemoryNotContinuous        = true;  //メモリは連続していないので警告不可能
            this.InputFormRef.UseWriteProtectionID00       = true;  //ID:0x00を書き込み禁止
            this.InputFormRef.CheckProtectionPaddingALIGN4 = false; //ALIGN 4である必要はない.

            this.ListBoxForeKeywordBrush = new SolidBrush(OptionForm.Color_Keyword_ForeColor());
            this.ListBoxForeBrush        = new SolidBrush(OptionForm.Color_Control_ForeColor());
            for (int i = 0; i < this.TrackLabels.Length; i++)
            {
                this.TrackLabels[i].Click += TrackLabel_Click;
                this.TrackListBoxs[i].OwnerDraw(DrawTrack, DrawMode.OwnerDrawFixed, false);
                this.TrackListBoxs[i].ItemHeight = 12;
            }
            InputFormRef.markupJumpLabel(this.AllTracksLabel);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(SONGPLAY, Properties.Resources.icon_music);

            InputFormRef.markupJumpLabel(LinkInternt);

            U.AllowDropFilename(this, new string[] { ".S", ".MID", ".MIDI", ".WAV", ".INSTRUMENT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
コード例 #6
0
 void ResetColor()
 {
     this.borderColor = OptionForm.Color_Control_ForeColor();
 }