muffin v6.21
This commit is contained in:
parent
e192d07a7b
commit
b7a9243899
4 changed files with 3461 additions and 2783 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Questionable.Model;
|
||||
|
||||
|
@ -40,4 +41,32 @@ public static class ExpansionData
|
|||
}
|
||||
return expansionVersion.ToString();
|
||||
}
|
||||
|
||||
public static string ToAbbreviation(this EExpansionVersion expansionVersion)
|
||||
{
|
||||
return expansionVersion switch
|
||||
{
|
||||
EExpansionVersion.ARealmReborn => "ARR",
|
||||
EExpansionVersion.Heavensward => "HW",
|
||||
EExpansionVersion.Stormblood => "SB",
|
||||
EExpansionVersion.Shadowbringers => "ShB",
|
||||
EExpansionVersion.Endwalker => "EW",
|
||||
EExpansionVersion.Dawntrail => "DT",
|
||||
_ => "?",
|
||||
};
|
||||
}
|
||||
|
||||
public static Vector4 GetExpansionColor(this EExpansionVersion expansionVersion)
|
||||
{
|
||||
return expansionVersion switch
|
||||
{
|
||||
EExpansionVersion.ARealmReborn => new Vector4(0.7f, 0.7f, 0.7f, 1f),
|
||||
EExpansionVersion.Heavensward => new Vector4(0.4f, 0.6f, 0.9f, 1f),
|
||||
EExpansionVersion.Stormblood => new Vector4(0.9f, 0.3f, 0.3f, 1f),
|
||||
EExpansionVersion.Shadowbringers => new Vector4(0.5f, 0.4f, 0.7f, 1f),
|
||||
EExpansionVersion.Endwalker => new Vector4(0.8f, 0.8f, 0.4f, 1f),
|
||||
EExpansionVersion.Dawntrail => new Vector4(0.3f, 0.8f, 0.5f, 1f),
|
||||
_ => new Vector4(0.5f, 0.5f, 0.5f, 1f),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue