From 0ff7e49e4d2e0572bd1b3873af4f77a39a050cb4 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 15 Jan 2024 21:38:25 +0100 Subject: [PATCH] Prepare changelog. --- Penumbra/Services/MessageService.cs | 4 ++-- Penumbra/UI/Changelog.cs | 19 +++++++++++++++++++ Penumbra/UI/Tabs/MessagesTab.cs | 11 +++-------- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Penumbra/Services/MessageService.cs b/Penumbra/Services/MessageService.cs index 06c3c4d0..daad29ef 100644 --- a/Penumbra/Services/MessageService.cs +++ b/Penumbra/Services/MessageService.cs @@ -25,8 +25,8 @@ public class MessageService(Logger log, UiBuilder uiBuilder, IChatGui chat) : Ot new UIForegroundPayload(0), new UIGlowPayload(0), new TextPayload(item.Name), - new RawPayload(new byte[] { 0x02, 0x27, 0x07, 0xCF, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03 }), - new RawPayload(new byte[] { 0x02, 0x13, 0x02, 0xEC, 0x03 }), + new RawPayload([0x02, 0x27, 0x07, 0xCF, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03]), + new RawPayload([0x02, 0x13, 0x02, 0xEC, 0x03]), }; // @formatter:on diff --git a/Penumbra/UI/Changelog.cs b/Penumbra/UI/Changelog.cs index d5b77bf4..94084fea 100644 --- a/Penumbra/UI/Changelog.cs +++ b/Penumbra/UI/Changelog.cs @@ -46,10 +46,29 @@ public class PenumbraChangelog Add8_1_2(Changelog); Add8_2_0(Changelog); Add8_3_0(Changelog); + Add1_0_0_0(Changelog); } #region Changelogs + private static void Add1_0_0_0(Changelog log) + => log.NextVersion("Version 1.0.0.0") + .RegisterHighlight("Mods in the mod selector can now be filtered by changed item categories.") + .RegisterHighlight("Model Editing options in the Advanced Editing Window have been greatly extended (by Ackwell):") + .RegisterEntry("Attributes and referenced materials can now be set per mesh.", 1) + .RegisterEntry("Model files (.mdl) can now be exported to the well-established glTF format, which can be imported e.g. by Blender.", 1) + .RegisterEntry("glTF files can also be imported back to a .mdl file.", 1) + .RegisterHighlight("Model Export and Import are a work in progress and may encounter issues, not support all cases or produce wrong results, please let us know!", 1) + .RegisterEntry("The last selected mod and the open/close state of the Advanced Editing Window are now stored across launches.") + .RegisterEntry("Footsteps of certain mounts will now be associated to collections correctly.") + .RegisterEntry("Save-in-Place in the texture tab now requires the configurable modifier.") + .RegisterEntry("Updated OtterTex to a newer version of DirectXTex.") + .RegisterEntry("Fixed an issue with horizontal scrolling if a mod title was very long.") + .RegisterEntry("Fixed an issue with the mod panels header not updating its data when the selected mod updates.") + .RegisterEntry("Fixed some issues with EQDP files for invalid characters.") + .RegisterEntry("Fixed an issue with the FileDialog being drawn twice in certain situations.") + .RegisterEntry("A lot of backend changes that should not have an effect on users, but may cause issues if something got messed up."); + private static void Add8_3_0(Changelog log) => log.NextVersion("Version 0.8.3.0") .RegisterHighlight("Improved the UI for the On-Screen tabs with highlighting of used paths, filtering and more selections. (by Ny)") diff --git a/Penumbra/UI/Tabs/MessagesTab.cs b/Penumbra/UI/Tabs/MessagesTab.cs index e834a4b4..abaf2ba6 100644 --- a/Penumbra/UI/Tabs/MessagesTab.cs +++ b/Penumbra/UI/Tabs/MessagesTab.cs @@ -3,19 +3,14 @@ using Penumbra.Services; namespace Penumbra.UI.Tabs; -public class MessagesTab : ITab +public class MessagesTab(MessageService messages) : ITab { public ReadOnlySpan Label => "Messages"u8; - private readonly MessageService _messages; - - public MessagesTab(MessageService messages) - => _messages = messages; - public bool IsVisible - => _messages.Count > 0; + => messages.Count > 0; public void DrawContent() - => _messages.Draw(); + => messages.Draw(); }