Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }