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:
@@ -48,4 +48,18 @@ internal static class ColourUtil {
|
||||
|
||||
internal static uint ComponentsToRgba(byte red, byte green, byte blue, byte alpha = 0xFF)
|
||||
=> alpha | (uint) (red << 24) | (uint) (green << 16) | (uint) (blue << 8);
|
||||
|
||||
internal static uint AdjustBrightness(uint abgr, float factor)
|
||||
{
|
||||
var a = (byte) ((abgr & 0xFF000000) >> 24);
|
||||
var b = (byte) ((abgr & 0x00FF0000) >> 16);
|
||||
var g = (byte) ((abgr & 0x0000FF00) >> 8);
|
||||
var r = (byte) (abgr & 0x000000FF);
|
||||
|
||||
var nr = (byte) Math.Clamp(r * factor, 0f, 255f);
|
||||
var ng = (byte) Math.Clamp(g * factor, 0f, 255f);
|
||||
var nb = (byte) Math.Clamp(b * factor, 0f, 255f);
|
||||
|
||||
return ((uint) a << 24) | ((uint) nb << 16) | ((uint) ng << 8) | nr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user