mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 16:54:14 +01:00
Localization
This commit is contained in:
parent
75885473ad
commit
93740dcaef
6 changed files with 199 additions and 32 deletions
|
|
@ -11,6 +11,7 @@ using Dalamud.Interface.ImGuiFileDialog;
|
|||
using Dalamud.Plugin;
|
||||
using Dalamud.Utility;
|
||||
using ImGuiNET;
|
||||
using MareSynchronos.Localization;
|
||||
using MareSynchronos.Managers;
|
||||
using MareSynchronos.Utils;
|
||||
using MareSynchronos.WebAPI;
|
||||
|
|
@ -204,6 +205,12 @@ namespace MareSynchronos.UI
|
|||
public static Vector4 UploadColor((long, long) data) => data.Item1 == 0 ? ImGuiColors.DalamudGrey :
|
||||
data.Item1 == data.Item2 ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudYellow;
|
||||
|
||||
public void LoadLocalization(string languageCode)
|
||||
{
|
||||
_dalamudUtil.Localization.SetupWithLangCode(languageCode);
|
||||
Strings.ToS = new Strings.ToSStrings();
|
||||
}
|
||||
|
||||
public static uint Color(byte r, byte g, byte b, byte a)
|
||||
{ uint ret = a; ret <<= 8; ret += b; ret <<= 8; ret += g; ret <<= 8; ret += r; return ret; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue