generated from karashiiro/DalamudPluginProjectTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Config.cs
136 lines (74 loc) · 3.37 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// <copyright file="Config.cs" company="lokinmodar">
// Copyright (c) lokinmodar. All rights reserved.
// Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License license.
// </copyright>
using System;
using System.Numerics;
using Dalamud.Configuration;
namespace Echoglossian
{
public class Config : IPluginConfiguration
{
public string DefaultPluginCulture = "en";
public int PluginCultureInt;
public bool Translate = false;
public bool UnsupportedLanguage = false;
public bool OverlayOnlyLanguage = false;
public bool PluginAssetsDownloaded = false;
public int Lang = 28;
public int FontSize = 24;
public bool ShowInCutscenes = true;
public bool TranslateBattleTalk = false;
public bool TranslateTalk = false;
public bool TranslateTalkSubtitle = false;
public bool TranslateToast = false;
public bool TranslateNpcNames = false;
public bool TranslateErrorToast = false;
public bool TranslateQuestToast = false;
public bool TranslateAreaToast = false;
public bool TranslateClassChangeToast = false;
public bool TranslateWideTextToast = false;
public bool TranslateYesNoScreen = false;
public bool TranslateCutSceneSelectString = false;
public bool TranslateSelectString = false;
public bool TranslateSelectOk = false;
public bool TranslateToDoList = false;
public bool TranslateScenarioTree = false;
public bool TranslateTooltips = false;
public bool TranslateJournal = false;
public bool UseImGuiForTalk = false;
public bool UseImGuiForBattleTalk = false;
public bool UseImGuiForToasts = false;
public bool UseImGuiForTalkSubtitle = false;
public bool SwapTextsUsingImGui = false;
public int ChosenTransEngine = 0;
public bool TranslateAlreadyTranslatedTexts = false;
public Vector2 ImGuiWindowPosCorrection = new(0.0f, 0.0f);
public Vector2 ImGuiToastWindowPosCorrection = new(0.0f, 0.0f);
public Vector2 ImGuiBattleTalkWindowPosCorrection = new(0.0f, 0.0f);
public Vector2 ImGuiTalkSubtitleWindowPosCorrection = new(0.0f, 0.0f);
public float ImGuiTalkWindowWidthMult = 1.5f;
public float ImGuiTalkWindowHeightMult = 1f;
public float ImGuiBattleTalkWindowWidthMult = 1.5f;
public float ImGuiBattleTalkWindowHeightMult = 1f;
public float ImGuiTalkSubtitleWindowWidthMult = 1.5f;
public float ImGuiTalkSubtitleWindowHeightMult = 1f;
public float ImGuiToastWindowWidthMult = 1.5f;
public Vector3 OverlayTalkTextColor = new(1.0f, 1.0f, 1.0f);
public Vector3 OverlayBattleTalkTextColor = new(1.0f, 1.0f, 1.0f);
public Vector3 OverlayTalkSubtitleTextColor = new(1.0f, 1.0f, 1.0f);
public Vector3 OverlayToastTextColor = new(1.0f, 1.0f, 1.0f);
public bool CopyTranslationToClipboard = false;
public bool RemoveDiacriticsWhenUsingReplacementQuest = false;
public bool RemoveDiacriticsWhenUsingReplacementTalkBTalk = false;
public string DeeplTranslatorApiKey = string.Empty;
public bool DeeplTranslatorUsingApiKey = false;
public string ChatGptApiKey = string.Empty;
public float FontScale = 1;
public float BattleTalkFontScale = 1;
public string PluginVersion { get; set; } = "2.0.0";
public int Version { get; set; } = 5;
[NonSerialized]
public long FontChangeTime = DateTime.Now.Ticks;
}
}