style(format): apply csharpier and markdownlint reflow
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user