From cf55b161dc95d8ec19e563d0e5480efc2300aad9 Mon Sep 17 00:00:00 2001 From: Ruen UI contributors Date: Sun, 22 Nov 2026 13:18:12 -0600 Subject: [PATCH] Size default chat for the usable viewport and preserve manual layouts --- KEYBINDINGS.txt | 4 +-- README.md | 2 +- RuenUI/Core.lua | 36 ++++++++++++++++++-------- RuenUI/LayoutPolicy.lua | 26 ++++++++++++++++++- RuenUI/Profile.lua | 2 +- RuenUI/RuenUI.toc | 2 +- docs/INSTALL-RU.md | 2 +- docs/INSTALL.md | 2 +- docs/RELEASE-REVIEW.md | 18 ++++++++----- scripts/build_release.py | 2 +- tests/check-layout-policy.lua | 11 +++++++- tests/check-layout.lua | 48 ++++++++++++++++++++++++++++++----- 12 files changed, 122 insertions(+), 33 deletions(-) diff --git a/KEYBINDINGS.txt b/KEYBINDINGS.txt index b8939c8..52fd6d5 100644 --- a/KEYBINDINGS.txt +++ b/KEYBINDINGS.txt @@ -1,4 +1,4 @@ -Ruen UI - ESDF key map (2026.11.22.4-beta.1) +Ruen UI - ESDF key map (2026.11.22.5-beta.1) MOVEMENT Q W [E] R T @@ -193,7 +193,7 @@ Gun audio (no new hotkeys): Nearby stock gunfire is muted while enabled; off restores native audio. LAYOUT RECOVERY (outside combat, with Edit Mode closed) -/ruen chat reset Restore compact chat size/position; reposition nearby bars. +/ruen chat reset Restore readable, screen-sized chat; reposition nearby bars. /ruen layout reset Reset all native Edit Mode positions, Ruen controls and supported bundled windows (Spoken/Compendium/world map). Bags/tooltips/alerts reflow; unsupported resets are listed. diff --git a/README.md b/README.md index d5e3ffb..240f83a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A compact, class-aware **WoW: Forever** interface with ESDF controls, English/Ru **[Download the beta](https://scm.bstein.dev/bstein/ruen-ui/releases)** · **[Windows installation](docs/INSTALL.md)** · **[Инструкция на русском](docs/INSTALL-RU.md)** · **[Release review](docs/RELEASE-REVIEW.md)** · **[Report a problem](https://scm.bstein.dev/bstein/ruen-ui/issues)** -Choose **Ruen-UI-2026.11.22.4-beta.1.zip** under release assets, not Gitea's automatic source ZIP. No account is needed to download. The download is small; setup then retrieves the selected companion addons directly from their authors. +Choose **Ruen-UI-2026.11.22.5-beta.1.zip** under release assets, not Gitea's automatic source ZIP. No account is needed to download. The download is small; setup then retrieves the selected companion addons directly from their authors. ## Windows quick start diff --git a/RuenUI/Core.lua b/RuenUI/Core.lua index afd0865..228d28d 100644 --- a/RuenUI/Core.lua +++ b/RuenUI/Core.lua @@ -307,19 +307,32 @@ local function placeRelative(f, point, relative, relativePoint, x, y) set(f, point, UIParent, "BOTTOMLEFT", (rx + x) / scale, (ry + y) / scale) end -local chatBaseWidth,chatAppliedWidth +local chatBaseWidth,chatAppliedWidth,chatAppliedHeight,chatUsesDefaults local function fitChat() local chat=ChatFrame1 if not chat or not MainActionBar then return end - local current=chat:GetWidth() - if not chatBaseWidth or (chatAppliedWidth and math.abs(current-chatAppliedWidth)>.5) then chatBaseWidth=current end + local current,height=chat:GetWidth(),chat:GetHeight() local left=frameEdge(chat,"GetLeft") or 20 local right=frameEdge(MainActionBar,"GetLeft") if not right then return end + local saved=RuenUIDB.chatDefaultSize + -- Native layout activation restores the saved size; our last fitted size + -- instead survives a display change. Both still represent an untouched + -- default. Any other size/anchor belongs to the player's manual edit. + local function same(w,h) return w and h and math.abs(current-w)<.5 and math.abs(height-h)<.5 end + chatUsesDefaults=P.IsDefaultChatSystem(chat.systemInfo) and math.abs(left-20)<.5 + and math.abs((frameEdge(chat,"GetBottom") or 0)-45)<.5 + and (same(saved.width,saved.height) or (chatUsesDefaults and same(chatAppliedWidth,chatAppliedHeight))) + if chatUsesDefaults then + chatBaseWidth,height=P.DefaultChatSize() + if math.abs(chat:GetHeight()-height)>.5 then chat:SetHeight(height) end + elseif not chatBaseWidth or (chatAppliedWidth and math.abs(current-chatAppliedWidth)>.5) then + chatBaseWidth=current + end local policy=P.layoutPolicy.chat local width=math.min(chatBaseWidth,math.max(policy.minimumWidth,(right-left-policy.edgeGap)/uiRatio(chat))) if math.abs(current-width)>.5 then chat:SetWidth(width) end - chatAppliedWidth=width + chatAppliedWidth,chatAppliedHeight=width,height end local trackerBaseWidth,trackerAppliedWidth @@ -672,12 +685,15 @@ end local function configureChatSystem(system) system.anchorInfo2 = nil - local chat=P.layoutPolicy.chat - changeSetting(system, Enum.EditModeChatFrameSetting.WidthHundreds, math.floor(chat.width/100)) - changeSetting(system, Enum.EditModeChatFrameSetting.WidthTensAndOnes, chat.width%100) - changeSetting(system, Enum.EditModeChatFrameSetting.HeightHundreds, math.floor(chat.height/100)) - changeSetting(system, Enum.EditModeChatFrameSetting.HeightTensAndOnes, chat.height%100) + local width,height=P.DefaultChatSize() + changeSetting(system, Enum.EditModeChatFrameSetting.WidthHundreds, math.floor(width/100)) + changeSetting(system, Enum.EditModeChatFrameSetting.WidthTensAndOnes, width%100) + changeSetting(system, Enum.EditModeChatFrameSetting.HeightHundreds, math.floor(height/100)) + changeSetting(system, Enum.EditModeChatFrameSetting.HeightTensAndOnes, height%100) anchor(system, "BOTTOMLEFT", "BOTTOMLEFT", 20, 45) + -- Keep this outside the native layout table. Matching saved geometry is + -- the ownership check for automatic resizing; manual edits opt out. + RuenUIDB.chatDefaultSize={width=width,height=height} end local function configureDefaultLayout(layout, chatOnly) @@ -934,7 +950,7 @@ local function resetLayout(chatOnly) local before = C_EditMode.ConvertLayoutInfoToString(layout) local report = not chatOnly and P.ResetNativeLayoutPositions(layout) configureDefaultLayout(layout, chatOnly) - chatBaseWidth, chatAppliedWidth = nil, nil + chatBaseWidth, chatAppliedWidth, chatAppliedHeight, chatUsesDefaults = nil, nil, nil, nil if not chatOnly then trackerBaseWidth, trackerAppliedWidth = nil, nil bagBaseScale, bagAppliedScale = 1, nil diff --git a/RuenUI/LayoutPolicy.lua b/RuenUI/LayoutPolicy.lua index 1960db9..e19a6df 100644 --- a/RuenUI/LayoutPolicy.lua +++ b/RuenUI/LayoutPolicy.lua @@ -4,7 +4,8 @@ local _, P = ... -- still occupy their block, so overlays cannot land in a temporarily blank slot. P.layoutPolicy = { gap = 12, actionRowGap = 4, utilityRowGap = 6, - chat = {width = 380, height = 150, minimumWidth = 240, fontSize = 14, edgeGap = 16}, + chat = {maximumWidth = 620, minimumHeight = 190, maximumHeight = 260, + minimumWidth = 240, fontSize = 14, edgeGap = 16}, controls = { {name="Center controls", "MainActionBar","MultiBarBottomLeft","MultiBarBottomRight","MultiBar5"}, {name="Right controls", "MultiBarLeft","MultiBarRight","BagsBar","MicroMenuContainer"}, @@ -22,6 +23,29 @@ for _, group in ipairs(P.layoutPolicy.controls) do end end +function P.DefaultChatSize() + -- Use logical UI dimensions: a 4K screen with a larger UI scale may have + -- the same usable space as 1080p. Unchanged defaults can follow a viewport + -- resize; ordinary refreshes keep custom sizes. Core separately fits + -- the width against the actual combat row, including custom positions. + local chat=P.layoutPolicy.chat + local width=math.max(chat.minimumWidth,math.min(chat.maximumWidth,UIParent:GetWidth()*.30)) + local height=math.max(chat.minimumHeight,math.min(chat.maximumHeight,UIParent:GetHeight()*.22)) + return math.floor(width/10)*10,math.floor(height/10)*10 +end + +function P.IsDefaultChatSystem(system) + local saved=RuenUIDB.chatDefaultSize + local a=system and system.anchorInfo + if not saved or not a or a.point~="BOTTOMLEFT" or a.relativeTo~="UIParent" + or a.relativePoint~="BOTTOMLEFT" or a.offsetX~=20 or a.offsetY~=45 then return false end + local S=Enum.EditModeChatFrameSetting + local values={} + for _,v in ipairs(system.settings or {}) do values[v.setting]=v.value end + return (values[S.WidthHundreds] or 0)*100+(values[S.WidthTensAndOnes] or 0)==saved.width + and (values[S.HeightHundreds] or 0)*100+(values[S.HeightTensAndOnes] or 0)==saved.height +end + function P.ApplyChatDefaults() -- Fresh installs only. Do not overwrite an existing player's font choice. if RuenUICharacter.chatDefaultsVersion or RuenUICharacter.version then return end diff --git a/RuenUI/Profile.lua b/RuenUI/Profile.lua index 9be5d9a..06b4f7f 100644 --- a/RuenUI/Profile.lua +++ b/RuenUI/Profile.lua @@ -1,6 +1,6 @@ local _, P = ... P.version = 5 -P.release = "2026.11.22.4-beta.1" +P.release = "2026.11.22.5-beta.1" P.graphicsVersion = 2 P.layoutName = "Ruen UI - Clear ESDF" function P.IsOurLayout(layout) diff --git a/RuenUI/RuenUI.toc b/RuenUI/RuenUI.toc index 543bb68..37438c5 100644 --- a/RuenUI/RuenUI.toc +++ b/RuenUI/RuenUI.toc @@ -1,7 +1,7 @@ ## Interface: 16001 ## Title: Ruen UI ## Notes: ESDF, mouse and menu controls, inventory layout and Spoken language controls. /ruen help -## Version: 2026.11.22.4-beta.1 +## Version: 2026.11.22.5-beta.1 ## Author: Ruen UI contributors ## SavedVariables: RuenUIDB ## SavedVariablesPerCharacter: RuenUICharacter diff --git a/docs/INSTALL-RU.md b/docs/INSTALL-RU.md index ea379cf..0e2f5a0 100644 --- a/docs/INSTALL-RU.md +++ b/docs/INSTALL-RU.md @@ -34,7 +34,7 @@ Панель питомца — это **10 стандартных ячеек и 2 расширения** с использованием свободных ячеек второй страницы панели действий. Игра не получает дополнительные стандартные ячейки питомца. Если свободных ячеек нет, Ruen сообщает об этом и не затирает существующие способности. -Чтобы отменить увеличение или перемещение чата, закройте режим редактирования, выйдите из боя и введите `/ruen chat reset`. Команда восстановит компактный размер и положение чата и переместит соседние панели. `/ruen layout reset` сбрасывает положение всех элементов режима редактирования WoW, включая эффекты, питомца, боссов, арену и предупреждения рейда, затем применяет расположение и размеры Ruen. Также пересчитываются сумки, подсказки и уведомления, перемещаются открытые стандартные окна, сбрасывается положение окон Spoken/Compendium и карты Leatrix Maps. Неподдерживаемые элементы перечисляются в чате; сторонние аддоны вне комплекта управляют своим расположением самостоятельно. Графика, клавиши, способности, шрифт и фильтры чата, режимы перезарядок и счётчиков сохраняются. Другие расположения не меняются. Сохранённое расположение Ruen используется всеми персонажами, выбравшими его. Предыдущая строка экспорта хранится в `RuenUICharacter.layoutBeforeReset`. `/reload` загружает обновлённый код, но не отменяет сохранённые изменения расположения. +Чтобы отменить увеличение или перемещение чата, закройте режим редактирования, выйдите из боя и введите `/ruen chat reset`. Команда восстановит удобный размер чата внизу слева с учётом доступного места и переместит соседние панели. Ширина занимает до 30% доступной области интерфейса (не более 620 единиц), не перекрывая центральные панели; высота — 190–260 единиц. Например, для области интерфейса 1920×1080 размер чата будет 570×230, а для 2133×1200 — 620×260. Масштаб интерфейса учитывается. Размер по умолчанию автоматически подстраивается при изменении доступного места. Ручное изменение размера или положения отключает эту подстройку; ширина по-прежнему ограничивается, чтобы не закрывать центральные панели. Выбранный шрифт сохраняется. Обе команды сброса используют одинаковые размеры по умолчанию. `/ruen layout reset` сбрасывает положение всех элементов режима редактирования WoW, включая эффекты, питомца, боссов, арену и предупреждения рейда, затем применяет расположение и размеры Ruen. Также пересчитываются сумки, подсказки и уведомления, перемещаются открытые стандартные окна, сбрасывается положение окон Spoken/Compendium и карты Leatrix Maps. Неподдерживаемые элементы перечисляются в чате; сторонние аддоны вне комплекта управляют своим расположением самостоятельно. Графика, клавиши, способности, шрифт и фильтры чата, режимы перезарядок и счётчиков сохраняются. Другие расположения не меняются. Сохранённое расположение Ruen используется всеми персонажами, выбравшими его. Предыдущая строка экспорта хранится в `RuenUICharacter.layoutBeforeReset`. `/reload` загружает обновлённый код, но не отменяет сохранённые изменения расположения. После обновления проверьте `/ruen status`, цифровые клавиши, смену защитной/пассивной стойки, вызов питомца и сумки при выбранной цели. Для сравнения FPS запустите `/ruen bench` и три минуты играйте, не переключаясь в другое окно: фоновое ограничение FPS иначе исказит результат. Следующая строка показывает время CPU Ruen, если встроенный профилировщик доступен. При рывках сообщите обе строки; измерение не меняет настройки графики. Подробные ограничения беты: [RELEASE-REVIEW.md](RELEASE-REVIEW.md). diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 1711f9c..43c2767 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -54,7 +54,7 @@ This update keeps existing actions, personal keybindings and saved language/grap The pet bar is **ten native pet slots plus two extensions**, backed by spare slots on unused action page 2. It cannot create native pet slots 11 and 12. If the backing page is full, Ruen reports the limitation and preserves the existing actions. The two extensions use the same selected-state artwork as native buttons; the game determines which stance is active. -To undo an enlarged or moved chatbox, close Edit Mode and leave combat, then use `/ruen chat reset`. This restores the compact default size/position and repositions the nearby bars. `/ruen layout reset` restores every native Edit Mode system position (including buffs/debuffs, pet/boss/arena frames, raid warnings and hidden class elements), then applies Ruen's default controls and sizes. It also resets bag/tooltip/alert placement caches, repositions the current native panels, restores Spoken narration/Compendium positions and invokes Leatrix Maps' own map-position reset. Frames that are not currently visible receive their saved native positions when they appear. Unsupported native systems or changed companion APIs are reported explicitly instead of silently claiming success; unrelated third-party addons retain their own layout controls. Both save the result without changing graphics, keybindings, assigned abilities, chat font/filter preferences or the selected cooldown/meter modes. Other Edit Mode layouts are retained. Ruen layouts are shared, so their saved geometry also applies to other characters using that layout. The previous layout export is retained in `RuenUICharacter.layoutBeforeReset` for recovery. `/reload` loads updated code; it does not itself undo your saved layout edits. `/ruen apply` reapplies gameplay/key defaults and selects the existing saved layout, so it is not the command for undoing a chat resize. +To undo an enlarged or moved chatbox, close Edit Mode and leave combat, then use `/ruen chat reset`. This restores a readable, screen-sized chatbox at the lower left and repositions the nearby bars. The default uses up to 30% of the usable UI width (capped at 620), fits clear of the center action bars, and is 190–260 UI units tall depending on screen space. For example, a 1920×1080 usable UI gets 570×230; 2133×1200 gets 620×260. Larger UI scales reduce the usable space, so high-resolution displays with large UI elements still get an appropriate fit. An untouched default follows viewport changes automatically. Manual size/position edits opt out of that automatic sizing; width still fits clear of the center bars. Font preferences are preserved. Both chat reset and full layout reset use this same sizing policy. `/ruen layout reset` restores every native Edit Mode system position (including buffs/debuffs, pet/boss/arena frames, raid warnings and hidden class elements), then applies Ruen's default controls and sizes. It also resets bag/tooltip/alert placement caches, repositions the current native panels, restores Spoken narration/Compendium positions and invokes Leatrix Maps' own map-position reset. Frames that are not currently visible receive their saved native positions when they appear. Unsupported native systems or changed companion APIs are reported explicitly instead of silently claiming success; unrelated third-party addons retain their own layout controls. Both save the result without changing graphics, keybindings, assigned abilities, chat font/filter preferences or the selected cooldown/meter modes. Other Edit Mode layouts are retained. Ruen layouts are shared, so their saved geometry also applies to other characters using that layout. The previous layout export is retained in `RuenUICharacter.layoutBeforeReset` for recovery. `/reload` loads updated code; it does not itself undo your saved layout edits. `/ruen apply` reapplies gameplay/key defaults and selects the existing saved layout, so it is not the command for undoing a chat resize. Before relying on new bindings in combat, check `/ruen status`, press the number keys, and verify the indicated actions. On a pet character, test Defensive on an extra button, then Passive on a native button: only the active stance should remain selected. Check click/key activation, right-click autocast where supported, dismissal/resummon, bags with a selected target, and an item comparison tooltip. The release review distinguishes automated checks from live coverage. diff --git a/docs/RELEASE-REVIEW.md b/docs/RELEASE-REVIEW.md index 82aa1bb..611746d 100644 --- a/docs/RELEASE-REVIEW.md +++ b/docs/RELEASE-REVIEW.md @@ -1,4 +1,10 @@ -# Release review — 2026.11.22.4-beta.1 +# Release review — 2026.11.22.5-beta.1 + +## Readable chat defaults (2026-11-22) + +- New layouts and both reset commands replace the fixed 380×150 chatbox with a default based on usable UI dimensions: up to 30% width, capped at 620, and 190–260 height. Width still fits against the actual center action row. Examples: 570×230 at 1920×1080 UI units; 620×260 at 2133×1200. High UI scales are accounted for without relying on physical resolution alone. +- Placement remains at the lower left, with notification space and the compact utility bars reflowed above it. An untouched default also adapts on viewport changes; saved native geometry is read without modification and a bounded account record identifies the default. Manual size/position edits opt out of automatic sizing (width still respects the center-bar clearance), and font preferences are retained. No polling, new hooks or additional idle work were added. +- Checks cover fresh installation, both explicit resets, native layout reactivation, all nine classes, custom dimensions, unrelated settings, and the largest saved default surviving a switch to 720p. Existing installations receive the new size with `/reload` followed by `/ruen chat reset` (or full layout reset). Live confirmation of the larger chat remains pending. ## Complete layout recovery follow-up (2026-11-22) @@ -6,9 +12,9 @@ - Ruen's control/class geometry is then reapplied. Bag scaling, encounter-widget scaling, tooltip caches, alert scaling and optional cooldown layout caches are reset before reflow; meter/cooldown visibility preferences stay unchanged. - Standard loaded panels are returned to the native panel manager without replacing protected handlers. Spoken's position-only reset and the Compendium window are included. Leatrix Maps uses its pinned upstream reset button (identified by its locale-independent tooltip property) so the private live settings are saved correctly; writing its public DB alone would be undone on logout. - Unknown native systems and unavailable companion reset APIs are reported in chat and saved diagnostics. Arbitrary third-party addons are outside this reset's ownership. The operation is explicit, guarded out of combat/Edit Mode, and adds no recurring per-frame work. Chat-only reset remains available. -- Regression coverage exercises all 31 native system kinds, indexed unit/action/aura systems, snap-anchor removal, persistence, companion handoff/failures, all nine class layouts and preservation of unrelated settings/actions/bindings. Live in-game full-reset confirmation remains pending. +- Regression coverage exercises all 31 native system kinds, indexed unit/action/aura systems, snap-anchor removal, persistence, companion handoff/failures, all nine class layouts and preservation of unrelated settings/actions/bindings. The user has exercised full reset in game; the resulting undersized chat prompted this sizing update. Other unobserved native/companion panels still require live checks. -Reviewed 22 November 2026. **Opt-in public beta; not a general-availability certification.** This release expands explicit chat/layout recovery to the existing graphics feedback and frame-timing updates. It retains the user-confirmed beta8 pet highlight fix and coordinated layout/profile work. The optimizer has detected roughly 0.6-second stalls even at its lowest graphics tier and reports the target as unmet; this layout update does not claim to resolve those stalls. +Reviewed 22 November 2026. **Opt-in public beta; not a general-availability certification.** This release improves the chat dimensions used by explicit chat/layout recovery, alongside the existing graphics feedback and frame-timing updates. It retains the user-confirmed beta8 pet highlight fix and coordinated layout/profile work. The optimizer has detected roughly 0.6-second stalls even at its lowest graphics tier and reports the target as unmet; this layout update does not claim to resolve those stalls. ## Frame timing and scene optimization @@ -66,8 +72,8 @@ The common 96-button action layout is retained. It provides capacity, not automa | Windows scripts | PowerShell 7.7 on Linux executed filesystem fixtures. Syntax parsed successfully. The unchanged unsigned x64 executable and its included C source retain the preceding release review; this update does not change the launcher binary. **Native Windows PowerShell 5.1, SmartScreen and GUI execution remain untested.** | | Dependencies | The previous distribution review downloaded, hashed and extracted all four base archives against the unchanged lock, and installed them through PowerShell in a disposable game path containing spaces and Cyrillic characters. The preceding beta8 review checked all seven unchanged pinned download endpoints: HTTPS 200 and matching byte counts. This HEAD check does not replace archive hashing; current installations verify the full pinned downloads. Large audio hashes retain prior verification records; the full audio payload was not downloaded again during this review. Every fresh installation independently checks its full downloads. | | Character profiles | Nine classes × 24 effective number/Ctrl-number mappings; underlying account bindings unchanged, personal edits preserved, actual restricted snippet executed in a modeled engine, combat handoff/deferred changes, role events, capability reservations, restore, and full new-alt login with customized shared keys. **Live secure VM/priority behavior remains unverified.** | -| Layout policy | Shared control reservations and chat font preservation/conditional restore; chat input/tabs and native panels counted without relocating their secure managers. | -| Layout matrix | 9 classes × 8 environments × 8 display/scale cases, repeated with native aura/cast/combo/BG-widget footprints: **1,152 scenarios, zero modeled unintended intersections, offscreen controls, undersized group frames or wrong meter visibility**. Prior restricted-aura stress fixtures are reset before the base matrix. This is geometry/API simulation, not screenshots of every live class. | +| Layout policy | Shared control reservations, responsive chat size, fresh/reset/persistence/manual-size checks and chat font preservation/conditional restore; chat input/tabs and native panels counted without relocating their secure managers. | +| Layout matrix | 9 classes × 8 environments × 10 display/scale/reset cases, repeated with native aura/cast/combo/BG-widget footprints: **1,440 scenarios, zero modeled unintended intersections, offscreen controls, undersized group frames or wrong meter visibility**. Each display exercises its new chat defaults, plus a large saved chat on a smaller display without resetting it. Prior restricted-aura stress fixtures are reset before the base matrix. This is geometry/API simulation, not screenshots of every live class. | | Overlay regressions | 50 meter/bag/tooltip/loot scenarios, 200 cooldown/class/full-HUD scenarios, 120 restricted-aura inventory cases, and repeated late tooltip reanchors. Custom tooltip owners, combat deferral, editor handoff and comparison cards were exercised. | | Pet controls | Native ten-button row plus two extras: actual native page map and secure-dispatch code used in a simulated client; tests cover spellbook discovery, command identity, localization, rank/pet changes, occupied slots and rejection. Native selected artwork, opacity/layer/blend parity, mutual stance state and 500 visual-only transitions passed. 1,200 opaque-cooldown refreshes passed; rejected placement remains one attempt through 500 events/reload. This does not establish every action in the live secure VM. | | Damage meter | Native timer/visibility code with tracked-taint simulation passed 1,000 combat starts; no direct writes to native visibility state or calls to its refresh methods. PvE auto, PvP exclusion, manual modes, no-room recovery and combat deferral passed. The previous live error was also reported resolved after reload. | @@ -76,7 +82,7 @@ The common 96-button action layout is retained. It provides capacity, not automa | Benchmark diagnostics | Simulated 60 FPS readings with repeated 200 ms frame stalls expose the old blind spot. Per-frame capture, tail calculation, long stalls, loading/pause exclusion, five-report bounds and mutual exclusion passed alongside native profiler API availability/opaque values, per-run slow-tick deltas, 180-snapshot bound and graphics-change warnings. Recent timing is a rolling 60-tick mean, not an exact per-frame maximum. | | Privacy/package | First-party allowlist, blank hardware defaults, dependency-license review and scan for local paths/account data. Only legacy migration identifiers retain the former addon name. Release ZIP has a per-file SHA-256 manifest and a separate ZIP checksum. | -Environments: solo, outdoor party, dungeon, 10/20/40-player raid and 10/40-player battleground. Displays: 1280×720, 1366×768, 1920×1080 at two scales, 2560×1440 at two scales and 3840×2160 at two scales. +Environments: solo, outdoor party, dungeon, 10/20/40-player raid and 10/40-player battleground. Displays: 1280×720 (fresh default and retained large-screen chat), 1366×768, 1920×1080 at two scales, 2133×1200, 2560×1440 at two scales and 3840×2160 at two scales. ## Performance review diff --git a/scripts/build_release.py b/scripts/build_release.py index 17bfaa3..378a319 100644 --- a/scripts/build_release.py +++ b/scripts/build_release.py @@ -7,7 +7,7 @@ from pathlib import Path import zipfile ROOT = Path(__file__).resolve().parents[1] -VERSION = '2026.11.22.4-beta.1' +VERSION = '2026.11.22.5-beta.1' FILES = ['Ruen-Setup', 'Ruen-Setup.exe', 'Install-Ruen-UI.ps1', 'Install-Ruen-UI.cmd', 'Install-Ruen-UI-Russian.cmd', 'Install-Windows.cmd', 'Install-Russian.cmd', 'Optimize-Ruen-UI.ps1', 'dependencies.lock.json', 'README.md', 'LICENSE', diff --git a/tests/check-layout-policy.lua b/tests/check-layout-policy.lua index 37e7a7b..3ad8c9d 100644 --- a/tests/check-layout-policy.lua +++ b/tests/check-layout-policy.lua @@ -1,6 +1,15 @@ local root=assert(arg[1]) local P={} assert(loadfile(root..'LayoutPolicy.lua'))('RuenUI',P) +local width,height +UIParent={GetWidth=function()return width end,GetHeight=function()return height end} +for _,case in ipairs({{1280,720,380,190},{1366,768,400,190}, + {1920,1080,570,230},{2133,1200,620,260},{3840,2160,620,260}, + {3840/2.8125,2160/2.8125,400,190}})do + width,height=case[1],case[2] + local w,h=P.DefaultChatSize() + assert(w==case[3] and h==case[4],'incorrect chat size for '..width..'x'..height) +end local font,size,flags='native-cyrillic-capable-font',12,'OUTLINE' local changes=0 ChatFrame1={GetFont=function()return font,size,flags end} @@ -13,4 +22,4 @@ size=14;P.RestoreChatDefaults();assert(size==12,'font restore failed') RuenUICharacter={version=5};size=18;P.ApplyChatDefaults();assert(size==18,'upgrade changed existing font') local count=0;for _ in pairs(P.controlFrameSet)do count=count+1 end assert(count==10 and #P.controlFrameNames==10,'control declarations inconsistent/duplicated') -print('PASS: shared ten-frame reservations, readable fresh-install chat font, idempotency, custom font and upgrade preservation, conditional restore') +print('PASS: responsive chat defaults at 720p-4K/logical UI scale; shared ten-frame reservations, readable fresh-install chat font, idempotency, custom font and upgrade preservation, conditional restore') diff --git a/tests/check-layout.lua b/tests/check-layout.lua index 71f2662..d4b1812 100644 --- a/tests/check-layout.lua +++ b/tests/check-layout.lua @@ -279,6 +279,7 @@ assert(RuenUICharacter.version==P.version,RuenUICharacter.layoutStatus) assert(cvars.graphicsLightMode=='1','UI update reset graphics') assert(cvars.lockActionBars=='0' and settings.lockActionBars==false,'action and pet slots must be unlocked in both CVar and Settings') assert(RuenUICharacter.verification.verified,'visible bar verification failed') +assert(ChatFrame1:GetWidth()==510 and ChatFrame1:GetHeight()==210,'fresh layout did not use the responsive chat default') assert(math.abs(PetActionBar:GetWidth()-408)<.01 and math.abs(PetActionBar:GetHeight()-39)<.01,'native larger pet geometry missing') for i=1,7 do assert(bars[i], 'all 96 slots must be enabled') end local keys={'Q','W','R','T','A','G','H','Z','X','C','V','B'} @@ -884,8 +885,9 @@ do enlargeChat() local shared=manager.layoutInfo;local prior=CopyTable(shared) local function assertChat() - assert(ChatFrame1:GetHeight()==150,'chat reset did not restore compact height') - assert(ChatFrame1:GetWidth()<=380,'chat reset did not restore compact width') + local width,height=P.DefaultChatSize() + assert(ChatFrame1:GetHeight()==height,'chat reset did not restore responsive height') + assert(ChatFrame1:GetWidth()<=width and ChatFrame1:GetWidth()>=P.layoutPolicy.chat.minimumWidth,'chat reset did not fit responsive width') assert(ChatFrame1:GetLeft()==20 and ChatFrame1:GetBottom()==45,'chat reset did not restore anchor') end SlashCmdList.RUENUI('chat reset');assertChat() @@ -898,6 +900,25 @@ do assert(not intersects(ChatFrame1,MultiBar6) and not intersects(ChatFrame1,MultiBar7),'reset left chat/bar overlap') assert(RuenUICharacter.layoutBeforeReset=='simulation-export','missing recovery export') C_EditMode.SetActiveLayout(manager.layoutInfo.activeLayout);assertChat() + -- Routine reflow must not turn a responsive default into a mandatory size. + ChatFrame1:SetSize(330,210);ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',25,45) + hooks.UpdateSystems();hooks.UpdateSystems() + assert(ChatFrame1:GetWidth()==330 and ChatFrame1:GetHeight()==210 and ChatFrame1:GetLeft()==25, + 'ordinary refresh replaced the player\'s chat size/position') + -- An actual saved custom size also wins after native layout activation. + for _,s in ipairs(manager:GetActiveLayoutInfo().systems)do + if s.system==Enum.EditModeSystem.ChatFrame then + local S=Enum.EditModeChatFrameSetting + for _,v in ipairs(s.settings)do + if v.setting==S.WidthHundreds then v.value=3 end + if v.setting==S.WidthTensAndOnes then v.value=30 end + if v.setting==S.HeightHundreds then v.value=2 end + if v.setting==S.HeightTensAndOnes then v.value=10 end + end + end + end + C_EditMode.SetActiveLayout(manager.layoutInfo.activeLayout);hooks.UpdateSystems();hooks.UpdateSystems() + assert(ChatFrame1:GetWidth()==330 and ChatFrame1:GetHeight()==210,'native reactivation replaced saved custom chat dimensions') for _,class in ipairs({'HUNTER','WARLOCK','ROGUE','DRUID','WARRIOR','PALADIN','PRIEST','MAGE','SHAMAN'})do currentClass=class;enlargeChat() manager:GetActiveLayoutInfo().systems[1].anchorInfo.offsetY=400 @@ -1263,9 +1284,13 @@ for _,case in ipairs({{2133,1200,1,2},{1920,1080,1,2},{1920,1080,1.40625,2},{136 if s.system==Enum.EditModeSystem.ActionBar and (s.systemIndex==7 or s.systemIndex==8)then assert(setting(s,Enum.EditModeActionBarSetting.NumRows)==case[4]) assert(s.anchorInfo.relativeTo=='UIParent' and not s.isInDefaultPosition) - assert(s.anchorInfo.offsetY>=socialSpace.top+11.9,'saved native anchor fell into notification space') end end + -- Saved anchors seed native placement. Viewport-dependent chat/notification + -- geometry must reflow on activation without rewriting that saved layout. + C_EditMode.SetActiveLayout(manager.layoutInfo.activeLayout);hooks.UpdateSystems() + socialSpace=P.SocialNotificationSpace(function(f,m)return f[m](f)*f:GetEffectiveScale()/UIParent.scale end) + assert(MultiBar6:GetBottom()>=socialSpace.top+11.9,'layout reactivation left the shelf in notification space') saves=classSaves;P.MigrateLeftBars();assert(saves==classSaves,'left migration repeated without width change') end assert(eq(bindings,keysSnapshot) and eq(actions,actionSnapshot),'shelf migration changed keybindings or actions') @@ -1325,6 +1350,7 @@ for _,display in ipairs({{1920,1080,1},{2133,1200,1},{1366,768,1}})do currentClass='SHAMAN';inside=false;kind='none';CompactRaidFrameContainer.shown=false;PartyFrame.shown=false for _,n in ipairs(controls)do _G[n].shown=false end PlayerFrame.shown=true;TargetFrame.shown=true;MultiCastActionBarFrame.shown=true + SlashCmdList.RUENUI('chat reset') nativeSocial();hooks.UpdateSystems();P.RefreshDamageMeters() ContainerFrameCombinedBags.shown=true;ContainerFrameCombinedBags.w,ContainerFrameCombinedBags.h=430,550 ContainerFrameCombinedBags.localScale=1;SlashCmdList.RUENUI('bags') @@ -1517,7 +1543,7 @@ end)() TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil ;(function() local report=assert(io.open(arg[3] or '/tmp/ruen-audit-matrix.txt','w')) - local configs={{1366,768,1},{1920,1080,1.40625},{1920,1080,1},{2560,1440,1.875},{2560,1440,1},{3840,2160,2.8125},{3840,2160,1.5},{1280,720,1}} + local configs={{1366,768,1},{1920,1080,1.40625},{1920,1080,1},{2560,1440,1.875},{2560,1440,1},{3840,2160,2.8125},{3840,2160,1.5},{1280,720,1},{2133,1200,1},{1280,720,1,true}} local envs={{'solo',false,'none',0},{'party',false,'none',5},{'dungeon',true,'party',5},{'raid10',true,'raid',10},{'raid20',true,'raid',20},{'raid40',true,'raid',40},{'bg10',true,'pvp',10},{'bg40',true,'pvp',40}} local seen,issues,cases={},0,0 local function note(text) @@ -1531,7 +1557,11 @@ TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil activeAlerts={} for _,f in ipairs({roll,talking,loot1,loot2,achievement,breath,buffs,ContainerFrameCombinedBags,GameTooltip,ShoppingTooltip1,ShoppingTooltip2,unpack(rolls)})do f.shown=false end for _,display in ipairs(configs)do + -- A large-screen saved default must refit after shrinking the viewport, + -- without another reset or changing the saved native layout. + if display[4] then UIParent.w,UIParent.h=3840,2160;SlashCmdList.RUENUI('chat reset') end UIParent.w,UIParent.h,UIParent.scale=display[1]/display[3],display[2]/display[3],display[3] + if not display[4] then SlashCmdList.RUENUI('chat reset') end for class,names in pairs(scenarios)do if class~='maximum' and class~='possessed' then currentClass=class:upper() for _,env in ipairs(envs)do @@ -1543,7 +1573,8 @@ TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil PartyFrame.shown=env[4]==5;PartyFrame.w,PartyFrame.h=102,260 CompactRaidFrameContainer.shown=env[4]>5;CompactRaidFrameContainer.w=math.ceil(env[4]/8)*72;CompactRaidFrameContainer.h=math.min(8,env[4])*38 nativeSocial();hooks.UpdateSystems();hooks.UpdateSystems() -- settle the native layout activation callback - local tag=display[1]..'x'..display[2]..'/'..display[3]..' '..class..' '..env[1] + if display[4] then assert(ChatFrame1:GetHeight()==190,'saved default did not follow the smaller viewport') end + local tag=display[1]..'x'..display[2]..'/'..display[3]..(display[4] and ' saved-large-chat' or '')..' '..class..' '..env[1] for i,n in ipairs(controlsList)do local f=_G[n] if f and f:IsShown() then @@ -1587,7 +1618,7 @@ end)() end)() ;(function() local report=assert(io.open((arg[3] or '/tmp/ruen-audit-matrix.txt')..'.native','w')) - local configs={{1366,768,1},{1920,1080,1.40625},{1920,1080,1},{2560,1440,1.875},{2560,1440,1},{3840,2160,2.8125},{3840,2160,1.5},{1280,720,1}} + local configs={{1366,768,1},{1920,1080,1.40625},{1920,1080,1},{2560,1440,1.875},{2560,1440,1},{3840,2160,2.8125},{3840,2160,1.5},{1280,720,1},{2133,1200,1},{1280,720,1,true}} local envs={{'solo',false,'none',0},{'party',false,'none',5},{'dungeon',true,'party',5},{'raid10',true,'raid',10},{'raid20',true,'raid',20},{'raid40',true,'raid',40},{'bg10',true,'pvp',10},{'bg40',true,'pvp',40}} local seen,issues,cases={},0,0 local function note(text) @@ -1601,7 +1632,9 @@ end)() activeAlerts={} for _,f in ipairs({roll,talking,loot1,loot2,achievement,breath,buffs,ContainerFrameCombinedBags,GameTooltip,ShoppingTooltip1,ShoppingTooltip2,unpack(rolls)})do f.shown=false end for _,display in ipairs(configs)do + if display[4] then UIParent.w,UIParent.h=3840,2160;SlashCmdList.RUENUI('chat reset') end UIParent.w,UIParent.h,UIParent.scale=display[1]/display[3],display[2]/display[3],display[3] + if not display[4] then SlashCmdList.RUENUI('chat reset') end for class,names in pairs(scenarios)do if class~='maximum' and class~='possessed' then currentClass=class:upper() for _,env in ipairs(envs)do @@ -1616,7 +1649,8 @@ end)() PartyFrame.shown=env[4]==5;PartyFrame.w,PartyFrame.h=102,260 CompactRaidFrameContainer.shown=env[4]>5;CompactRaidFrameContainer.w=math.ceil(env[4]/8)*72;CompactRaidFrameContainer.h=math.min(8,env[4])*38 nativeSocial();hooks.UpdateSystems();hooks.UpdateSystems() -- settle the native layout activation callback - local tag=display[1]..'x'..display[2]..'/'..display[3]..' '..class..' '..env[1] + if display[4] then assert(ChatFrame1:GetHeight()==190,'saved default did not follow the smaller viewport') end + local tag=display[1]..'x'..display[2]..'/'..display[3]..(display[4] and ' saved-large-chat' or '')..' '..class..' '..env[1] for i,n in ipairs(controlsList)do local f=_G[n] if f and f:IsShown() then