mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Remove Lumina Language extension, use ClientLanguage instead
This commit is contained in:
parent
3bfc831167
commit
227400d821
2 changed files with 11 additions and 38 deletions
|
|
@ -142,7 +142,7 @@ namespace Dalamud.Data
|
|||
/// <returns>The <see cref="TexFile"/> containing the icon.</returns>
|
||||
public TexFile GetIcon(int iconId)
|
||||
{
|
||||
return GetIcon(string.Empty, iconId);
|
||||
return GetIcon(this.language, iconId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -151,11 +151,17 @@ namespace Dalamud.Data
|
|||
/// <param name="iconLanguage">The requested language.</param>
|
||||
/// <param name="iconId">The icon ID.</param>
|
||||
/// <returns>The <see cref="TexFile"/> containing the icon.</returns>
|
||||
public TexFile GetIcon(Language iconLanguage, int iconId)
|
||||
public TexFile GetIcon(ClientLanguage iconLanguage, int iconId)
|
||||
{
|
||||
var type = iconLanguage.GetCode();
|
||||
if (type.Length > 0)
|
||||
type += "/";
|
||||
var type = iconLanguage switch {
|
||||
ClientLanguage.Japanese => "ja/",
|
||||
ClientLanguage.English => "en/",
|
||||
ClientLanguage.German => "de/",
|
||||
ClientLanguage.French => "fr/",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(this.language),
|
||||
"Unknown Language: " + this.language)
|
||||
};
|
||||
|
||||
return GetIcon(type, iconId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue