mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
* Update to .NET 10 * Property fields * API signature updates * Extension method blocks * Completed dark mode support Outside of my control: - vertical tab control (pkm editor) - datetimepicker controls - lgpe event flags (no idea) - some control types having white-borders when they should really be gray Box background is 50% transparency to effectively darken the image. * Custom legality report popup * Event diff dialog, version select dialog * Add quick overwrite popup for export sav * Extension methods * Dark Mode: glow currently editing sprite * Add invalid encounter hint for trade evolutions * Extension properties * Append legality hint on hover card * Slot image loading: clear the screen-reader description if a slot is empty/invalid, rather than retain the previous description. Changing boxes would easily confuse users on this.
47 lines
1.9 KiB
C#
47 lines
1.9 KiB
C#
namespace PKHeX.Core;
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 6 </summary>
|
|
public interface IRibbonSetCommon6
|
|
{
|
|
bool RibbonChampionKalos { get; set; }
|
|
bool RibbonChampionG6Hoenn { get; set; }
|
|
bool RibbonBestFriends { get; set; }
|
|
bool RibbonTraining { get; set; }
|
|
bool RibbonBattlerSkillful { get; set; }
|
|
bool RibbonBattlerExpert { get; set; }
|
|
|
|
bool RibbonContestStar { get; set; }
|
|
bool RibbonMasterCoolness { get; set; }
|
|
bool RibbonMasterBeauty { get; set; }
|
|
bool RibbonMasterCuteness { get; set; }
|
|
bool RibbonMasterCleverness { get; set; }
|
|
bool RibbonMasterToughness { get; set; }
|
|
}
|
|
|
|
public static partial class RibbonExtensions
|
|
{
|
|
extension(IRibbonSetCommon6 set)
|
|
{
|
|
/// <summary>
|
|
/// Checks if the <see cref="set"/> has all five contest stat ribbons true.
|
|
/// </summary>
|
|
public bool HasAllContestRibbons() => set is { RibbonMasterCoolness: true, RibbonMasterBeauty: true, RibbonMasterCuteness: true, RibbonMasterCleverness: true, RibbonMasterToughness: true };
|
|
|
|
public void CopyRibbonSetCommon6(IRibbonSetCommon6 dest)
|
|
{
|
|
dest.RibbonChampionKalos = set.RibbonChampionKalos;
|
|
dest.RibbonChampionG6Hoenn = set.RibbonChampionG6Hoenn;
|
|
dest.RibbonBestFriends = set.RibbonBestFriends;
|
|
dest.RibbonTraining = set.RibbonTraining;
|
|
dest.RibbonBattlerSkillful = set.RibbonBattlerSkillful;
|
|
dest.RibbonBattlerExpert = set.RibbonBattlerExpert;
|
|
dest.RibbonContestStar = set.RibbonContestStar;
|
|
dest.RibbonMasterCoolness = set.RibbonMasterCoolness;
|
|
dest.RibbonMasterBeauty = set.RibbonMasterBeauty;
|
|
dest.RibbonMasterCuteness = set.RibbonMasterCuteness;
|
|
dest.RibbonMasterCleverness = set.RibbonMasterCleverness;
|
|
dest.RibbonMasterToughness = set.RibbonMasterToughness;
|
|
}
|
|
}
|
|
}
|