Skip to content

Commit

Permalink
一点翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZWR committed Oct 13, 2024
1 parent 9628017 commit c2f0120
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Glamourer/Glamourer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<PlatformTarget>x64</PlatformTarget>
<RootNamespace>Glamourer</RootNamespace>
<AssemblyName>Glamourer</AssemblyName>
<FileVersion>1.3.1.1</FileVersion>
<AssemblyVersion>1.3.1.1</AssemblyVersion>
<FileVersion>9.9.9.9</FileVersion>
<AssemblyVersion>9.9.9.9</AssemblyVersion>
<Company>SoftOtter</Company>
<Product>Glamourer</Product>
<Copyright>Copyright © 2023</Copyright>
Expand Down
4 changes: 2 additions & 2 deletions Glamourer/Gui/DesignQuickBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,15 @@ private void DrawRevertAdvancedCustomization(Vector2 buttonSize)
if (_playerIdentifier.IsValid && _playerState is { IsLocked: false } && _playerData.Valid)
{
available |= 1;
tooltip = "左键单击:将玩家角色的高级外貌、高级染料设置还原为游戏状态。";
tooltip = "左键单击:将玩家角色的高级外貌、高级染色设置还原为游戏状态。";
}

if (_targetIdentifier.IsValid && _targetState is { IsLocked: false } && _targetData.Valid)
{
if (available != 0)
tooltip += '\n';
available |= 2;
tooltip += $"右键单击:将{_targetIdentifier}高级外貌、高级染料设置还原为游戏状态。";
tooltip += $"右键单击:将{_targetIdentifier}高级外貌、高级染色设置还原为游戏状态。";
}

if (available == 0)
Expand Down
2 changes: 1 addition & 1 deletion Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void Draw(float width)
using var tt = ImUtf8.Tooltip();
ImUtf8.Text("筛选包含输入内容的名字。"u8);
ImGui.Dummy(new Vector2(0, ImGui.GetTextLineHeight() / 2));
ImUtf8.Text("指定筛选规则为:"u8);
ImUtf8.Text("可指定的筛选:"u8);
var color = ColorId.HeaderButtons.Value();
ImUtf8.Text("<p>"u8, color);
ImGui.SameLine(0, 0);
Expand Down
2 changes: 1 addition & 1 deletion Glamourer/Gui/Tabs/AutomationTab/SetPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private void DrawIdentifierSelection(int setIndex)
ImGui.SameLine();
_identifierDrawer.DrawName(200 - ImGui.GetStyle().ItemSpacing.X);
_identifierDrawer.DrawNpcs(330);
var buttonWidth = new Vector2(165 * ImGuiHelpers.GlobalScale - ImGui.GetStyle().ItemSpacing.X / 2, 0);
var buttonWidth = new Vector2(90 * ImGuiHelpers.GlobalScale - ImGui.GetStyle().ItemSpacing.X / 2, 0);
if (ImUtf8.ButtonEx("分配给玩家"u8, string.Empty, buttonWidth, !_identifierDrawer.CanSetPlayer))
_manager.ChangeIdentifier(setIndex, _identifierDrawer.PlayerIdentifier);
ImGui.SameLine();
Expand Down
2 changes: 1 addition & 1 deletion Glamourer/Gui/Tabs/DesignTab/DesignColorCombo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected override bool DrawSelectable(int globalIdx, bool selected)
var ret = base.DrawSelectable(globalIdx, selected);
if (isAutomatic)
ImGuiUtil.HoverTooltip(
"The automatic color uses the colors dependent on the design state, as defined in the regular color definitions.");
"自动配色将按照配色设置中常规颜色的定义,依据设计状态进行设置。");
return ret;
}
}
4 changes: 2 additions & 2 deletions Glamourer/Gui/Tabs/DesignTab/DesignDetailTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void DrawDesignInfoTable()
ImGui.TableNextColumn();
if (ImGui.Checkbox("##ResetAdvancedDyes", ref resetMaterials))
_manager.ChangeResetAdvancedDyes(_selector.Selected!, resetMaterials);
ImGuiUtil.HoverTooltip("将此设计设置为在通过任何方式应用时重置任何先前应用的高级染料。");
ImGuiUtil.HoverTooltip("将此设计设置为在通过任何方式应用时,重置先前应用的任何高级染色。");

ImGuiUtil.DrawFrameColumn("配色");
var colorName = _selector.Selected!.Color.Length == 0 ? DesignColors.AutomaticName : _selector.Selected!.Color;
Expand All @@ -169,7 +169,7 @@ private void DrawDesignInfoTable()
if (_colors.TryGetValue(_selector.Selected!.Color, out var currentColor))
{
ImGui.SameLine();
if (DesignColorUi.DrawColorButton($"Color associated with {_selector.Selected!.Color}", currentColor, out var newColor))
if (DesignColorUi.DrawColorButton($"{_selector.Selected!.Color} 关联的颜色", currentColor, out var newColor))
_colors.SetColor(_selector.Selected!.Color, newColor);
}
else if (_selector.Selected!.Color.Length != 0)
Expand Down
4 changes: 2 additions & 2 deletions Glamourer/Interop/ImportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public class ImportService(CustomizeService _customizations, IDragDropManager _d
public void CreateDatSource()
=> _dragDropManager.CreateImGuiSource("DatDragger", m => m.Files.Count == 1 && m.Extensions.Contains(".dat"), m =>
{
ImGui.TextUnformatted($"Dragging {Path.GetFileName(m.Files[0])} to import customizations for Glamourer...");
ImGui.TextUnformatted($"拖拽 {Path.GetFileName(m.Files[0])} 导入外貌数据到 Glamourer...");
return true;
});

public void CreateCharaSource()
=> _dragDropManager.CreateImGuiSource("CharaDragger", m => m.Files.Count == 1 && m.Extensions.Contains(".chara") || m.Extensions.Contains(".cma"), m =>
{
ImGui.TextUnformatted($"Dragging {Path.GetFileName(m.Files[0])} to import Anamnesis/CMTool data for Glamourer...");
ImGui.TextUnformatted($"拖拽 {Path.GetFileName(m.Files[0])} 导入 Anamnesis/CMTool 数据到 Glamourer...");
return true;
});

Expand Down

0 comments on commit c2f0120

Please sign in to comment.