style(format): apply csharpier and markdownlint reflow
Security / scan (push) Successful in 23s
Build / Build (Release) (push) Successful in 31s
Forge Announce / Post changelog to Hellion Forge (push) Successful in 6s
Release / Build and attach release ZIP (push) Successful in 41s

This commit is contained in:
2026-05-23 09:02:30 +02:00
parent c640a05a8a
commit 1d3b429f1b
13 changed files with 176 additions and 81 deletions
+14 -9
View File
@@ -5,10 +5,10 @@ using System.Runtime.InteropServices;
using System.Text;
using Dalamud.Bindings.ImGui;
using Dalamud.Game.Addon.Lifecycle;
using Dalamud.Interface.Colors;
using Dalamud.Game.Text.SeStringHandling;
using Dalamud.Game.Text.SeStringHandling.Payloads;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using Dalamud.Interface.Style;
using Dalamud.Interface.Utility;
using Dalamud.Interface.Utility.Raii;
@@ -721,9 +721,7 @@ public sealed class ChatLogWindow : Window
// Window.IsFocused holds last frame's RootAndChildWindows focus, set
// by Dalamud's WindowHost after Begin(). One-frame latency is
// accepted.
BgAlpha = IsFocused
? Plugin.Config.WindowOpacity
: Plugin.Config.WindowOpacityInactive;
BgAlpha = IsFocused ? Plugin.Config.WindowOpacity : Plugin.Config.WindowOpacityInactive;
}
LastViewport = ImGui.GetWindowViewport().Handle;
@@ -1101,9 +1099,11 @@ public sealed class ChatLogWindow : Window
if (ImGui.IsKeyDown(ImGuiKey.Enter) || ImGui.IsKeyDown(ImGuiKey.KeypadEnter))
{
if (Plugin.Config.NotifyPluginDisclosure
if (
Plugin.Config.NotifyPluginDisclosure
&& Chat != _disclosureArmedBufferMain
&& PluginDisclosureScanner.ContainsPrivateUseGlyph(Chat))
&& PluginDisclosureScanner.ContainsPrivateUseGlyph(Chat)
)
{
// First send attempt on this exact buffer: arm and hold.
// The warning renders below the input.
@@ -1127,11 +1127,16 @@ public sealed class ChatLogWindow : Window
// UI-11: disclosure warning for the main-window input, mirrors the
// ChatInputBar path. Visible only while the armed buffer is held
// unchanged; editing the buffer clears the condition.
if (Plugin.Config.NotifyPluginDisclosure
if (
Plugin.Config.NotifyPluginDisclosure
&& _disclosureArmedBufferMain is not null
&& Chat == _disclosureArmedBufferMain)
&& Chat == _disclosureArmedBufferMain
)
{
ImGui.TextColored(ImGuiColors.DalamudYellow, HellionStrings.ChatInput_PluginDisclosure_Warning);
ImGui.TextColored(
ImGuiColors.DalamudYellow,
HellionStrings.ChatInput_PluginDisclosure_Warning
);
}
// Process keybinds that have modifiers while the chat is focused.