Skip to content

Commit 14face7

Browse files
committed
update changelog
1 parent 1a6cf19 commit 14face7

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
lines changed

Dalamud/Dalamud.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<PropertyGroup Label="Feature">
88
<Description>XIV Launcher addon framework</Description>
9-
<DalamudVersion>14.0.0.2</DalamudVersion>
9+
<DalamudVersion>14.0.0.1</DalamudVersion>
1010
<AssemblyVersion>$(DalamudVersion)</AssemblyVersion>
1111
<Version>$(DalamudVersion)</Version>
1212
<FileVersion>$(DalamudVersion)</FileVersion>

Dalamud/Interface/Internal/Windows/ChangelogWindow.cs

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Dalamud.Interface.Animation.EasingFunctions;
1111
using Dalamud.Interface.Colors;
1212
using Dalamud.Interface.Components;
13+
using Dalamud.Interface.FontIdentifier;
1314
using Dalamud.Interface.GameFonts;
1415
using Dalamud.Interface.ManagedFontAtlas;
1516
using Dalamud.Interface.ManagedFontAtlas.Internals;
@@ -31,13 +32,13 @@ namespace Dalamud.Interface.Internal.Windows;
3132
/// </summary>
3233
internal sealed class ChangelogWindow : Window, IDisposable
3334
{
34-
private const string WarrantsChangelogForMajorMinor = "10.0.";
35+
private const string WarrantsChangelogForMajorMinor = "14.0.";
3536

3637
private const string ChangeLog =
37-
@"• Updated Dalamud for compatibility with Patch 7.0
38-
Made a lot of behind-the-scenes changes to make Dalamud and plugins more stable and reliable
39-
Added new functionality developers can take advantage of
40-
Refreshed the Dalamud/plugin installer UI
38+
@"• 更新了 Dalamud 以兼容版本 7.4
39+
大多数插件现在已与国际服保持同步更新
40+
欢迎向插件原作者提交反馈或翻译贡献
41+
国服将继续单独维护一些需要特殊修复的插件
4142
";
4243

4344
private static readonly TimeSpan TitleScreenWaitTime = TimeSpan.FromSeconds(0.5f);
@@ -51,6 +52,7 @@ internal sealed class ChangelogWindow : Window, IDisposable
5152
private readonly Lazy<IFontHandle> bannerFont;
5253
private readonly Lazy<IDalamudTextureWrap> apiBumpExplainerTexture;
5354
private readonly Lazy<IDalamudTextureWrap> logoTexture;
55+
private readonly Lazy<IDalamudTextureWrap> fontTipsTexture;
5456

5557
private readonly InOutCubic windowFade = new(TimeSpan.FromSeconds(2.5f))
5658
{
@@ -119,6 +121,8 @@ public ChangelogWindow(
119121
this.apiBumpExplainerTexture = new(() => assets.GetDalamudTextureWrap(DalamudAsset.ChangelogApiBumpIcon));
120122
this.logoTexture = new(() => assets.GetDalamudTextureWrap(DalamudAsset.Logo));
121123

124+
this.fontTipsTexture = new(() => assets.GetDalamudTextureWrap(DalamudAsset.MissingFontTips));
125+
122126
// If we are going to show a changelog, make sure we have the font ready, otherwise it will hitch
123127
if (WarrantsChangelog())
124128
_ = this.bannerFont.Value;
@@ -361,20 +365,40 @@ bool DrawNextButton(State nextState)
361365
ImGuiHelpers.ScaledDummy(5);
362366
ImGui.TextWrapped(ChangeLog);
363367
ImGuiHelpers.ScaledDummy(5);
364-
ImGui.TextWrapped("这个更新日志是对本版本中最重要的更改的快速概述");
365-
ImGui.TextWrapped("请点击 Next 以查看更新插件的快速指南。");
368+
ImGui.TextWrapped("这个更新日志是对本版本中最重要的更改的快速概述"u8);
369+
ImGui.TextWrapped("请点击 Next 以查看更新插件的快速指南。"u8);
370+
371+
ImGui.Image(
372+
this.fontTipsTexture.Value.Handle,
373+
this.fontTipsTexture.Value.Size);
374+
375+
var interfaceManager = Service<InterfaceManager>.Get();
376+
using (interfaceManager.MonoFontHandle?.Push())
377+
{
378+
if (ImGui.Button(Loc.Localize("DalamudSettingResetDefaultFont", "Reset Default Font")))
379+
{
380+
var faf = Service<FontAtlasFactory>.Get();
381+
faf.DefaultFontSpecOverride =
382+
new SingleFontSpec { FontId = new GameFontAndFamilyId(GameFontFamily.Axis) };
383+
interfaceManager.RebuildFonts();
384+
385+
Service<DalamudConfiguration>.Get().DefaultFontSpec = faf.DefaultFontSpecOverride;
386+
Service<DalamudConfiguration>.Get().QueueSave();
387+
}
388+
}
366389

390+
ImGuiHelpers.ScaledDummy(10);
367391
DrawNextButton(State.ExplainerApiBump);
368392
break;
369393

370394
case State.ExplainerApiBump:
371-
ImGui.TextWrapped("注意了!由于此补丁的更改,所有插件都需要更新,并已自动禁用");
372-
ImGui.TextWrapped("这是正常情况,也是进行重大游戏更新所必需的。");
395+
ImGui.TextWrapped("注意了!由于此补丁的更改,所有插件都需要更新,并已自动禁用"u8);
396+
ImGui.TextWrapped("这是正常情况,也是进行重大游戏更新所必需的。"u8);
373397
ImGuiHelpers.ScaledDummy(5);
374-
ImGui.TextWrapped("要更新插件,请打开插件安装程序,然后点击“更新插件”。更新后的插件应会自动更新并重新启用。");
398+
ImGui.TextWrapped("要更新插件,请打开插件安装程序,然后点击“更新插件”。更新后的插件应会自动更新并重新启用。"u8);
375399
ImGuiHelpers.ScaledDummy(5);
376-
ImGui.TextWrapped("请记住,并非您所有的插件都可能已经针对新版本进行了更新。");
377-
ImGui.TextWrapped("如果在“已安装插件”选项卡中显示某些插件带有红色叉号,那么它们可能还不可用。");
400+
ImGui.TextWrapped("请记住,并非您所有的插件都可能已经针对新版本进行了更新。"u8);
401+
ImGui.TextWrapped("如果在“已安装插件”选项卡中显示某些插件带有红色叉号,那么它们可能还不可用。"u8);
378402

379403
ImGuiHelpers.ScaledDummy(15);
380404

@@ -441,8 +465,8 @@ bool DrawCenteredButton(string text, float height)
441465
break;
442466

443467
case State.Links:
444-
ImGui.TextWrapped("如果您注意到任何问题或需要帮助,请查看常见问题解答,并在需要帮助的情况下在我们的QQ频道上联系我们。");
445-
ImGui.TextWrapped("祝您享受游戏和 Dalamud 的时光!");
468+
ImGui.TextWrapped("如果您注意到任何问题或需要帮助,请查看常见问题解答,并在需要帮助的情况下在我们的QQ频道上联系我们。"u8);
469+
ImGui.TextWrapped("祝您享受游戏和 Dalamud 的时光!"u8);
446470

447471
ImGuiHelpers.ScaledDummy(45);
448472

@@ -524,7 +548,7 @@ bool CenteredIconButton(FontAwesomeIcon icon, string text)
524548

525549
if (ImGui.IsItemHovered())
526550
{
527-
ImGui.SetTooltip("我不关心这个");
551+
ImGui.SetTooltip("我不关心这个"u8);
528552
}
529553
}
530554
}

0 commit comments

Comments
 (0)