mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-23 20:29:45 +08:00
[zh-tw] Add Traditional Chinese (#79)
* Add Traditional Chinese Game Resources * Update .csproj include zh-tw files Remove test avatars * Remove give avatar warning label * Update version to 1.5.1 * Add FormMain.zh-TW.resx Add Resources.zh-TW.resx * Add FormGachaBannerEditor2.zh-TW.resx Add FormTextMapBrowser.zh-TW.resx * Update todo list Completed traditional Chinese Translation * Fix long avatar id issue Co-authored-by: 筱傑 <jie65535@qq.com>
This commit is contained in:
@@ -74,8 +74,8 @@ namespace GrasscutterTools.Forms
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
private readonly string[] LanguageNames = new string[] { "简体中文", "English", "Русский" };
|
||||
private readonly string[] Languages = new string[] { "zh-CN", "en-US", "ru-RU" };
|
||||
private readonly string[] LanguageNames = new string[] { "简体中文", "繁體中文", "English", "Русский" };
|
||||
private readonly string[] Languages = new string[] { "zh-CN", "zh-TW", "en-US", "ru-RU" };
|
||||
|
||||
|
||||
private Version AppVersion;
|
||||
@@ -723,25 +723,27 @@ namespace GrasscutterTools.Forms
|
||||
AvatarInputChanged();
|
||||
}
|
||||
|
||||
private void NUDAvatarConstellation_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
AvatarInputChanged();
|
||||
}
|
||||
|
||||
private void AvatarInputChanged()
|
||||
{
|
||||
if (CmbAvatar.SelectedIndex >= 0)
|
||||
GenAvatar(GameData.Avatars.Ids[CmbAvatar.SelectedIndex], (int)NUDAvatarLevel.Value, (int)NUDAvatarConstellation.Value);
|
||||
GenAvatar(GameData.Avatars.Ids[CmbAvatar.SelectedIndex], (int)NUDAvatarLevel.Value);
|
||||
}
|
||||
|
||||
private void GenAvatar(int avatarId, int level, int constellation)
|
||||
private void GenAvatar(int avatarId, int level)
|
||||
{
|
||||
if (ChkNewCommand.Checked)
|
||||
SetCommand("/give", $"{avatarId} lv{level} c{constellation}");
|
||||
SetCommand("/give", $"{avatarId} lv{level}");
|
||||
else
|
||||
SetCommand("/givechar", $"{avatarId} {level}");
|
||||
}
|
||||
|
||||
private void BtnGiveAllChar_Click(object sender, EventArgs e)
|
||||
{
|
||||
var level = NUDAvatarLevel.Value;
|
||||
var constellation = NUDAvatarConstellation.Value;
|
||||
SetCommand("/give avatars", $"lv{level} c{constellation}");
|
||||
}
|
||||
|
||||
#endregion - 角色 -
|
||||
|
||||
#region - 生成 -
|
||||
|
Reference in New Issue
Block a user