chore(release): prepare v1.0.2 — polish patch
Four small backlog items bundled: - New: hide chat (and every other plugin window) while the New Game+ menu is open. Settings -> Window -> Frame, default off. Skips the whole WindowSystem.Draw() pass while QuestRedo is visible, mirroring the existing HideInLoadingScreens pattern. - New: tint the channel selector button in the active channel colour. Settings -> Appearance -> Colours, default on. Reuses the existing inputColour computation (incl. ExtraChat override) and adds an ImGuiCol.Button push around the selector. New ColourUtil helper AdjustBrightness derives hover/active variants. - Fix: PayloadHandler.InlineIcon hardcoded all hover icons to 32x32. Replaced with float-based aspect-ratio-preserving shrink, single scale-factor, zero-size guard, named MaxInlineIconSize constant. Affects six call sites (status, item, achievement and other inline hover paths). - Diagnostic: HideState transitions log on Verbose level for both ChatLogWindow and Popout. Manifest bumped to 1.0.2 across csproj, yaml, repo.json. CHANGELOG entry added, README version line updated. yaml + repo.json changelog trimmed to the slim 4-version window (1.0.2, 1.0.1, 1.0.0, 0.6.1).
This commit is contained in:
@@ -332,10 +332,19 @@ public sealed class PayloadHandler
|
||||
atkBase->SetPosition((short) x, (short) y);
|
||||
}
|
||||
|
||||
private const float MaxInlineIconSize = 32f;
|
||||
|
||||
private static void InlineIcon(IDalamudTextureWrap icon)
|
||||
{
|
||||
if (icon.Size.X <= 0 || icon.Size.Y <= 0)
|
||||
return;
|
||||
|
||||
var width = (float) icon.Size.X;
|
||||
var height = (float) icon.Size.Y;
|
||||
var scale = Math.Min(1f, Math.Min(MaxInlineIconSize / width, MaxInlineIconSize / height));
|
||||
var size = ImGuiHelpers.ScaledVector2(width * scale, height * scale);
|
||||
|
||||
var cursor = ImGui.GetCursorPos();
|
||||
var size = ImGuiHelpers.ScaledVector2(32, 32);
|
||||
ImGui.Image(icon.Handle, size);
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPos(cursor + new Vector2(size.X + 4, size.Y - ImGui.GetTextLineHeightWithSpacing()));
|
||||
|
||||
Reference in New Issue
Block a user