/// <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); } }
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); }
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)); }
private void OnColorsChanged() { ColorsChanged?.Invoke(this, EventArgs.Empty); }
private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e) { Update(); ColorsChanged?.Invoke(); }