/// <summary>
 /// Updates the displayed colors of the creature.
 /// </summary>
 private void UpdateRegionColorImage()
 {
     ParentInheritance?.UpdateColors(RegionColors);
     ColorsChanged?.Invoke(this);
     if (PbColorRegion != null)
     {
         PbColorRegion.Image = CreatureColored.GetColoredCreature(RegionColors, _selectedSpecies, regionColorChooser1.ColorRegionsUseds, 256, onlyImage: true, creatureSex: CreatureSex);
     }
 }
Esempio n. 2
0
        public void UpdateCharSheetColors()
        {
            for (int y = 1; y < 17; y++)
            {
                for (int x = 1; x < 17; x++)
                {
                    SetForeground(x, y, Foreground);
                    SetBackground(x, y, Background);
                }
            }

            ColorsChanged?.Invoke(this, EventArgs.Empty);
        }
Esempio n. 3
0
 protected virtual void OnColorsChanged()
 {
     InitializeGradient(_angle, _colors, SortPositions(_locations), _rectangle);
     ColorsChanged?.Invoke();
 }
 /// <summary>
 /// Updates the displayed colors of the creature.
 /// </summary>
 private void UpdateRegionColorImage()
 {
     ParentInheritance?.UpdateColors(RegionColors);
     ColorsChanged?.Invoke(this);
     PbColorRegion?.SetImageAndDisposeOld(CreatureColored.GetColoredCreature(RegionColors, _selectedSpecies, regionColorChooser1.ColorRegionsUseds, 256, onlyImage: true, creatureSex: CreatureSex));
 }
Esempio n. 5
0
 private void OnColorsChanged()
 {
     ColorsChanged?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 6
0
        private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
        {
            Update();

            ColorsChanged?.Invoke();
        }