コード例 #1
0
 private void UpdateHighlighted(CyCustomCharacter selectedCharacter)
 {
     m_highlighted.Match(characterEditor);
     m_highlighted.Selected = false;
     m_highlighted.Invalidate();
     m_highlighted          = selectedCharacter;
     m_highlighted.Selected = true;
     m_highlighted.Invalidate();
     currentEditableCharacter.Text = m_highlighted.DisplayName;
     this.characterEditor.Match(selectedCharacter);
     this.characterEditor.Invalidate();
 }
コード例 #2
0
 private void custArray_MouseDown(object sender, MouseEventArgs e)
 {
     CharLCDmp_v1_00.CyCustomCharacter current    = (CharLCDmp_v1_00.CyCustomCharacter)sender;
     CharLCDmp_v1_00.CyBox             clickedBox = current.GetBoxByLocation(e.X, e.Y);
     if (clickedBox != null)
     {
         clickedBox.IsActive = !clickedBox.IsActive;
         m_activate          = clickedBox.IsActive;
         current.Invalidate();
     }
     this.m_highlighted.Invalidate();
 }
コード例 #3
0
        private void CustomCharactersOn()
        {
            customCharacterGroupBox.Enabled = true;

            m_highlighted.Selected = true;
            for (int i = 0; i < this.panel1.Controls.Count; i++)
            {
                CharLCDmp_v1_00.CyCustomCharacter character = (CharLCDmp_v1_00.CyCustomCharacter) this.panel1.Controls[i];
                character.BorderBrush   = new SolidBrush(Color.LightGray);
                character.ActiveBrush   = new SolidBrush(Color.Black);
                character.InactiveBrush = new SolidBrush(Color.White);
                character.Invalidate();
            }
        }
コード例 #4
0
 private void custArray_MouseMove(object sender, MouseEventArgs e)
 {
     if ((e.Button == MouseButtons.Left) || (e.Button == MouseButtons.Right))
     {
         CharLCDmp_v1_00.CyCustomCharacter current    = (CharLCDmp_v1_00.CyCustomCharacter)sender;
         CharLCDmp_v1_00.CyBox             currentBox = current.GetBoxByLocation(e.X, e.Y);
         if (currentBox != null)
         {
             currentBox.IsActive = m_activate;
             current.Invalidate();
         }
     }
     this.m_highlighted.Invalidate();
 }
コード例 #5
0
 private void CustomCharactersOff()
 {
     m_highlighted.Selected = false;
     for (int i = 0; i < this.panel1.Controls.Count; i++)
     {
         CharLCDmp_v1_00.CyCustomCharacter character = (CharLCDmp_v1_00.CyCustomCharacter) this.panel1.Controls[i];
         if (character.Visible == true)
         {
             character.ActiveBrush   = new SolidBrush(Color.LightGray);
             character.InactiveBrush = new SolidBrush(Color.WhiteSmoke);
             character.BorderBrush   = new SolidBrush(Color.LightGray);
             character.Invalidate();
         }
     }
     customCharacterGroupBox.Enabled = false;
 }