Compare commits
4 Commits
v2026.11.2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ae0cba7ca | ||
|
|
cf55b161dc | ||
|
|
5c1d16bb3a | ||
|
|
c0428857ab |
@ -1,4 +1,4 @@
|
|||||||
Ruen UI - ESDF key map (2026.11.22.2-beta.1)
|
Ruen UI - ESDF key map (2026.11.22.6-beta.1)
|
||||||
|
|
||||||
MOVEMENT
|
MOVEMENT
|
||||||
Q W [E] R T
|
Q W [E] R T
|
||||||
@ -191,3 +191,12 @@ Gun audio (no new hotkeys):
|
|||||||
/ruen guns on | off | settings | status
|
/ruen guns on | off | settings | status
|
||||||
/ruen guns 100 Default replacement volume; range 10–100 in steps of 10.
|
/ruen guns 100 Default replacement volume; range 10–100 in steps of 10.
|
||||||
Nearby stock gunfire is muted while enabled; off restores native audio.
|
Nearby stock gunfire is muted while enabled; off restores native audio.
|
||||||
|
|
||||||
|
LAYOUT RECOVERY (outside combat, with Edit Mode closed)
|
||||||
|
/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.
|
||||||
|
Both save the active Ruen layout; graphics, bindings and placed abilities stay.
|
||||||
|
Other characters using this same layout see the saved geometry too.
|
||||||
|
/reload loads updated code; it does not undo saved layout edits.
|
||||||
|
|||||||
@ -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)**
|
**[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.2-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.6-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
|
## Windows quick start
|
||||||
|
|
||||||
|
|||||||
@ -265,6 +265,11 @@ local function refresh()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function P.ResetClassAssistLayoutState()
|
||||||
|
appliedContext = nil
|
||||||
|
P.classAssistReserved = {}
|
||||||
|
end
|
||||||
|
|
||||||
function P.RefreshClassAssist()
|
function P.RefreshClassAssist()
|
||||||
if busy or not owns then return end
|
if busy or not owns then return end
|
||||||
if InCombatLockdown() then return end -- native code handles combat visibility
|
if InCombatLockdown() then return end -- native code handles combat visibility
|
||||||
|
|||||||
@ -49,12 +49,14 @@ local function makePlan(base)
|
|||||||
}
|
}
|
||||||
-- Compact rows stay inside the space between player/target subframes. Known
|
-- Compact rows stay inside the space between player/target subframes. Known
|
||||||
-- class controls retain their slot when temporarily hidden during combat.
|
-- class controls retain their slot when temporarily hidden during combat.
|
||||||
local rows, row = {}, {width = 0, height = 30}
|
-- Measure each occupied row. A 30-unit minimum inflated native 24-unit
|
||||||
|
-- stance/aspect rows, needlessly pushing pets, casts and group frames up.
|
||||||
|
local rows, row = {}, {width = 0, height = 0}
|
||||||
for _, group in ipairs(groups) do
|
for _, group in ipairs(groups) do
|
||||||
if group.active then
|
if group.active then
|
||||||
local gap = #row > 0 and 10 or 0
|
local gap = #row > 0 and 10 or 0
|
||||||
if #row > 0 and row.width + gap + group.width > 300 then
|
if #row > 0 and row.width + gap + group.width > 300 then
|
||||||
rows[#rows + 1] = row; row = {width = 0, height = 30}; gap = 0
|
rows[#rows + 1] = row; row = {width = 0, height = 0}; gap = 0
|
||||||
end
|
end
|
||||||
row[#row + 1] = group
|
row[#row + 1] = group
|
||||||
row.width = row.width + gap + group.width
|
row.width = row.width + gap + group.width
|
||||||
@ -171,6 +173,10 @@ function P.MigrateClassLayout()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local widgetBaseScale,widgetAppliedScale
|
local widgetBaseScale,widgetAppliedScale
|
||||||
|
function P.ResetClassLayoutState()
|
||||||
|
widgetBaseScale, widgetAppliedScale = 1, nil
|
||||||
|
end
|
||||||
|
|
||||||
function P.PositionEncounterWidgets(place,edge)
|
function P.PositionEncounterWidgets(place,edge)
|
||||||
local f=UIWidgetTopCenterContainerFrame
|
local f=UIWidgetTopCenterContainerFrame
|
||||||
if not f then return end
|
if not f then return end
|
||||||
|
|||||||
@ -126,7 +126,9 @@ function P.Help()
|
|||||||
say("F6 enemy nameplates, Shift-F6 all, Ctrl-F6 friendly; F8 macros; F9 settings; Shift-F9 keybindings; F10 housing (where available); Esc game menu.")
|
say("F6 enemy nameplates, Shift-F6 all, Ctrl-F6 friendly; F8 macros; F9 settings; Shift-F9 keybindings; F10 housing (where available); Esc game menu.")
|
||||||
say("U interact, Shift-U assist, Alt-U ping; Ctrl-I sit, Shift-I sheathe. F12 this help; Shift-F12 support.")
|
say("U interact, Shift-U assist, Alt-U ping; Ctrl-I sit, Shift-I sheathe. F12 this help; Shift-F12 support.")
|
||||||
say("/ruen language en|ru: game text/audio + narration; client restart required. /ruen voice en|ru: narration only, immediate. /ruen language: status.")
|
say("/ruen language en|ru: game text/audio + narration; client restart required. /ruen voice en|ru: narration only, immediate. /ruen language: status.")
|
||||||
say("/ruen bindings: reapply mouse/menu keys; /ruen bags: reposition bags; /ruen pet auto: reset the two extra pet buttons. /ruen status | balanced | performance | bench | export | restore. /ruen apply resets the whole UI profile.")
|
say(P.Localized("/ruen chat reset: restore chat size/position. /ruen layout reset: reset native UI, Ruen and bundled window positions; keep graphics, keys and assigned abilities.",
|
||||||
|
"/ruen chat reset: сброс размера и положения чата. /ruen layout reset: сброс положения стандартных элементов, Ruen и окон комплекта; графика, клавиши и способности сохраняются."))
|
||||||
|
say("/ruen bindings: reapply mouse/menu keys; /ruen bags: reposition bags; /ruen pet auto: reset the two extra pet buttons. /ruen status | balanced | performance | bench | export | restore. /ruen apply reapplies gameplay/key defaults and selects the saved Ruen layout.")
|
||||||
end
|
end
|
||||||
|
|
||||||
local aliases = {en = "enUS", english = "enUS", enus = "enUS", ru = "ruRU", russian = "ruRU", ruru = "ruRU"}
|
local aliases = {en = "enUS", english = "enUS", enus = "enUS", ru = "ruRU", russian = "ruRU", ruru = "ruRU"}
|
||||||
|
|||||||
137
RuenUI/Core.lua
137
RuenUI/Core.lua
@ -307,19 +307,33 @@ local function placeRelative(f, point, relative, relativePoint, x, y)
|
|||||||
set(f, point, UIParent, "BOTTOMLEFT", (rx + x) / scale, (ry + y) / scale)
|
set(f, point, UIParent, "BOTTOMLEFT", (rx + x) / scale, (ry + y) / scale)
|
||||||
end
|
end
|
||||||
|
|
||||||
local chatBaseWidth,chatAppliedWidth
|
local chatBaseWidth,chatAppliedWidth,chatAppliedHeight,chatUsesDefaults
|
||||||
local function fitChat()
|
local function fitChat()
|
||||||
local chat=ChatFrame1
|
local chat=ChatFrame1
|
||||||
if not chat or not MainActionBar then return end
|
if not chat or not MainActionBar then return end
|
||||||
local current=chat:GetWidth()
|
local current,height=chat:GetWidth(),chat:GetHeight()
|
||||||
if not chatBaseWidth or (chatAppliedWidth and math.abs(current-chatAppliedWidth)>.5) then chatBaseWidth=current end
|
|
||||||
local left=frameEdge(chat,"GetLeft") or 20
|
local left=frameEdge(chat,"GetLeft") or 20
|
||||||
local right=frameEdge(MainActionBar,"GetLeft")
|
local right=frameEdge(MainActionBar,"GetLeft")
|
||||||
if not right then return end
|
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
|
||||||
|
local defaultLeft,defaultBottom=P.DefaultChatOrigin()
|
||||||
|
chatUsesDefaults=P.IsDefaultChatSystem(chat.systemInfo) and math.abs(left-defaultLeft)<.5
|
||||||
|
and math.abs((frameEdge(chat,"GetBottom") or 0)-defaultBottom)<.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 policy=P.layoutPolicy.chat
|
||||||
local width=math.min(chatBaseWidth,math.max(policy.minimumWidth,(right-left-policy.edgeGap)/uiRatio(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
|
if math.abs(current-width)>.5 then chat:SetWidth(width) end
|
||||||
chatAppliedWidth=width
|
chatAppliedWidth,chatAppliedHeight=width,height
|
||||||
end
|
end
|
||||||
|
|
||||||
local trackerBaseWidth,trackerAppliedWidth
|
local trackerBaseWidth,trackerAppliedWidth
|
||||||
@ -670,21 +684,26 @@ local function restoreClickBar()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function configureLayout()
|
local function configureChatSystem(system)
|
||||||
local manager = EditModeManagerFrame
|
system.anchorInfo2 = nil
|
||||||
if not manager or not manager.layoutInfo or not EditModePresetLayoutManager then
|
local width,height=P.DefaultChatSize()
|
||||||
error("Edit Mode is not ready; use /ruen apply after loading")
|
changeSetting(system, Enum.EditModeChatFrameSetting.WidthHundreds, math.floor(width/100))
|
||||||
end
|
changeSetting(system, Enum.EditModeChatFrameSetting.WidthTensAndOnes, width%100)
|
||||||
if RuenUICharacter.oldLayout == nil then RuenUICharacter.oldLayout = manager.layoutInfo.activeLayout end
|
changeSetting(system, Enum.EditModeChatFrameSetting.HeightHundreds, math.floor(height/100))
|
||||||
for i, layout in ipairs(manager:GetLayouts()) do
|
changeSetting(system, Enum.EditModeChatFrameSetting.HeightTensAndOnes, height%100)
|
||||||
if P.IsOurLayout(layout) then
|
anchor(system, "BOTTOMLEFT", "BOTTOMLEFT", 20, 45)
|
||||||
C_EditMode.SetActiveLayout(i)
|
-- Keep this outside the native layout table. Matching saved geometry is
|
||||||
RuenUIDB.layoutExport = C_EditMode.ConvertLayoutInfoToString(layout)
|
-- the ownership check for automatic resizing; manual edits opt out.
|
||||||
return
|
RuenUIDB.chatDefaultSize={width=width,height=height}
|
||||||
|
end
|
||||||
|
|
||||||
|
local function configureDefaultLayout(layout, chatOnly)
|
||||||
|
if chatOnly then
|
||||||
|
for _, system in ipairs(layout.systems) do
|
||||||
|
if system.system == Enum.EditModeSystem.ChatFrame then configureChatSystem(system) end
|
||||||
end
|
end
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if manager:AreLayoutsOfTypeMaxed(Enum.EditModeLayoutType.Account) then error("account Edit Mode layouts are full; none removed") end
|
|
||||||
local layout = CopyTable(EditModePresetLayoutManager:GetCopyOfPresetLayouts()[1])
|
|
||||||
local E, A, U = Enum.EditModeSystem, Enum.EditModeActionBarSetting, Enum.EditModeUnitFrameSystemIndices
|
local E, A, U = Enum.EditModeSystem, Enum.EditModeActionBarSetting, Enum.EditModeUnitFrameSystemIndices
|
||||||
for _, system in ipairs(layout.systems) do
|
for _, system in ipairs(layout.systems) do
|
||||||
local index = system.systemIndex
|
local index = system.systemIndex
|
||||||
@ -742,17 +761,30 @@ local function configureLayout()
|
|||||||
changeSetting(system, Enum.EditModeMinimapSetting.Size, 4) -- 90%
|
changeSetting(system, Enum.EditModeMinimapSetting.Size, 4) -- 90%
|
||||||
anchor(system, "TOPRIGHT", "TOPRIGHT", -22, -40)
|
anchor(system, "TOPRIGHT", "TOPRIGHT", -22, -40)
|
||||||
elseif system.system == E.ChatFrame then
|
elseif system.system == E.ChatFrame then
|
||||||
local chat=P.layoutPolicy.chat
|
configureChatSystem(system)
|
||||||
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)
|
|
||||||
anchor(system, "BOTTOMLEFT", "BOTTOMLEFT", 20, 45)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
P.ConfigureClassSystems(layout)
|
P.ConfigureClassSystems(layout)
|
||||||
P.ConfigureClassAssistSystems(layout)
|
P.ConfigureClassAssistSystems(layout)
|
||||||
P.ConfigureExtraBars(layout)
|
P.ConfigureExtraBars(layout)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function configureLayout()
|
||||||
|
local manager = EditModeManagerFrame
|
||||||
|
if not manager or not manager.layoutInfo or not EditModePresetLayoutManager then
|
||||||
|
error("Edit Mode is not ready; use /ruen apply after loading")
|
||||||
|
end
|
||||||
|
if RuenUICharacter.oldLayout == nil then RuenUICharacter.oldLayout = manager.layoutInfo.activeLayout end
|
||||||
|
for i, layout in ipairs(manager:GetLayouts()) do
|
||||||
|
if P.IsOurLayout(layout) then
|
||||||
|
C_EditMode.SetActiveLayout(i)
|
||||||
|
RuenUIDB.layoutExport = C_EditMode.ConvertLayoutInfoToString(layout)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if manager:AreLayoutsOfTypeMaxed(Enum.EditModeLayoutType.Account) then error("account Edit Mode layouts are full; none removed") end
|
||||||
|
local layout = CopyTable(EditModePresetLayoutManager:GetCopyOfPresetLayouts()[1])
|
||||||
|
configureDefaultLayout(layout)
|
||||||
manager:CreateLayoutTbls()
|
manager:CreateLayoutTbls()
|
||||||
manager:MakeNewLayout(layout, Enum.EditModeLayoutType.Account, P.layoutName, false)
|
manager:MakeNewLayout(layout, Enum.EditModeLayoutType.Account, P.layoutName, false)
|
||||||
for i, saved in ipairs(manager:GetLayouts()) do
|
for i, saved in ipairs(manager:GetLayouts()) do
|
||||||
@ -779,6 +811,7 @@ end
|
|||||||
local function recordLayoutStatus(announce)
|
local function recordLayoutStatus(announce)
|
||||||
local status = {bars = {}, time = time(), verified = true, release=P.release,
|
local status = {bars = {}, time = time(), verified = true, release=P.release,
|
||||||
uiWidth=UIParent:GetWidth(),uiHeight=UIParent:GetHeight(),uiScale=UIParent:GetEffectiveScale()}
|
uiWidth=UIParent:GetWidth(),uiHeight=UIParent:GetHeight(),uiScale=UIParent:GetEffectiveScale()}
|
||||||
|
status.layoutReset = RuenUICharacter.layoutResetStatus
|
||||||
status.cooldowns={}
|
status.cooldowns={}
|
||||||
for _,name in ipairs({"EssentialCooldownViewer","UtilityCooldownViewer","BuffIconCooldownViewer","BuffBarCooldownViewer"}) do
|
for _,name in ipairs({"EssentialCooldownViewer","UtilityCooldownViewer","BuffIconCooldownViewer","BuffBarCooldownViewer"}) do
|
||||||
local f=_G[name]
|
local f=_G[name]
|
||||||
@ -898,6 +931,59 @@ local function recordLayoutStatus(announce)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function resetLayout(chatOnly)
|
||||||
|
local manager = EditModeManagerFrame
|
||||||
|
if InCombatLockdown() then
|
||||||
|
say(P.Localized("Reset the layout after combat.", "Сбросьте расположение после боя.")); return
|
||||||
|
end
|
||||||
|
if not manager or not manager.layoutInfo or manager:IsShown() or manager.overrideLayoutInfo then
|
||||||
|
say(P.Localized("Close Edit Mode and wait for the interface to finish loading before resetting.",
|
||||||
|
"Закройте режим редактирования и дождитесь загрузки интерфейса перед сбросом.")); return
|
||||||
|
end
|
||||||
|
if RuenUIDB.disabled or not P.IsOurLayout(manager:GetActiveLayoutInfo()) then
|
||||||
|
say(P.Localized("Select the Ruen UI layout in Edit Mode and enable Ruen before resetting.",
|
||||||
|
"Перед сбросом выберите расположение Ruen UI в режиме редактирования и включите Ruen.")); return
|
||||||
|
end
|
||||||
|
-- Keep the active layout identity, other layouts and unrelated native
|
||||||
|
-- settings. Never edit the manager's shared systemInfo tables in place.
|
||||||
|
local data = P.CopyEditModeLayouts()
|
||||||
|
local layout = data.layouts[data.activeLayout]
|
||||||
|
local before = C_EditMode.ConvertLayoutInfoToString(layout)
|
||||||
|
local report = not chatOnly and P.ResetNativeLayoutPositions(layout)
|
||||||
|
configureDefaultLayout(layout, chatOnly)
|
||||||
|
chatBaseWidth, chatAppliedWidth, chatAppliedHeight, chatUsesDefaults = nil, nil, nil, nil
|
||||||
|
if not chatOnly then
|
||||||
|
trackerBaseWidth, trackerAppliedWidth = nil, nil
|
||||||
|
bagBaseScale, bagAppliedScale = 1, nil
|
||||||
|
P.ResetClassLayoutState()
|
||||||
|
P.ResetOverlayLayoutState()
|
||||||
|
P.ResetClassAssistLayoutState()
|
||||||
|
end
|
||||||
|
P.SaveEditModeLayouts(data)
|
||||||
|
-- Bounded recovery export, available for native Edit Mode import.
|
||||||
|
RuenUICharacter.layoutBeforeReset = before
|
||||||
|
if report then
|
||||||
|
P.ResetNativePanelPositions(report)
|
||||||
|
P.ResetCompanionPositions(report)
|
||||||
|
RuenUICharacter.layoutResetStatus = report
|
||||||
|
end
|
||||||
|
C_Timer.After(0.5, function()
|
||||||
|
refreshUILayout()
|
||||||
|
if not chatOnly and not InCombatLockdown() and ownsLayout() and GameTooltip:IsShown() then
|
||||||
|
positionCombinedBags()
|
||||||
|
P.PositionTooltip(GameTooltip, true)
|
||||||
|
end
|
||||||
|
recordLayoutStatus(false)
|
||||||
|
say(chatOnly and P.Localized("Chat size and position reset; nearby bars repositioned. Layout saved.",
|
||||||
|
"Размер и положение чата сброшены; соседние панели перемещены. Расположение сохранено.")
|
||||||
|
or P.Localized("UI positions reset and saved: native frames, Ruen controls and bundled windows. Graphics, keybindings and assigned abilities preserved.",
|
||||||
|
"Положение элементов интерфейса сброшено и сохранено: стандартные элементы, панели Ruen и окна комплекта. Графика, клавиши и способности сохранены."))
|
||||||
|
if report and #report.unavailable > 0 then
|
||||||
|
say(P.Localized("Position reset unavailable for: ", "Не удалось сбросить положение: ") .. table.concat(report.unavailable, ", "))
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
local function mask(key, enum, names)
|
local function mask(key, enum, names)
|
||||||
if not enum or saveCVar(key) == nil then return end
|
if not enum or saveCVar(key) == nil then return end
|
||||||
local value = tonumber(C_CVar.GetCVar(key)) or 0
|
local value = tonumber(C_CVar.GetCVar(key)) or 0
|
||||||
@ -1009,6 +1095,11 @@ SlashCmdList.RUENUI = function(message)
|
|||||||
elseif command == "meters" then say(P.DamageMeterCommand(argument)); return
|
elseif command == "meters" then say(P.DamageMeterCommand(argument)); return
|
||||||
elseif command == "optimize" then P.OptimizerCommand(argument); return
|
elseif command == "optimize" then P.OptimizerCommand(argument); return
|
||||||
elseif command == "bench" then P.BenchmarkCommand(argument); return
|
elseif command == "bench" then P.BenchmarkCommand(argument); return
|
||||||
|
elseif command == "layout" or command == "chat" then
|
||||||
|
if argument ~= "reset" then say("/ruen layout reset | /ruen chat reset"); return end
|
||||||
|
local ok, err = pcall(resetLayout, command == "chat")
|
||||||
|
if not ok then say(P.Localized("Layout reset failed: ", "Не удалось сбросить расположение: ") .. tostring(err)) end
|
||||||
|
return
|
||||||
elseif message == "swing" or message:match("^swing%s") then
|
elseif message == "swing" or message:match("^swing%s") then
|
||||||
say(P.SwingCommand(message:match("^swing%s+(%S+)") or "status")); return
|
say(P.SwingCommand(message:match("^swing%s+(%S+)") or "status")); return
|
||||||
end
|
end
|
||||||
|
|||||||
@ -21,6 +21,10 @@ end
|
|||||||
|
|
||||||
local function leftDock(edge, rows, saved)
|
local function leftDock(edge, rows, saved)
|
||||||
local x=edge(ChatFrame1,"GetLeft") or 20
|
local x=edge(ChatFrame1,"GetLeft") or 20
|
||||||
|
-- Keep the shelf on the layout margin, not the text inset introduced by
|
||||||
|
-- native chat clamping. Those extra 12 units matter to a compact raid grid.
|
||||||
|
local chatOrigin=P.DefaultChatOrigin()
|
||||||
|
x=math.max(P.layoutPolicy.gap,x-math.max(0,chatOrigin-20))
|
||||||
local width=(rows or leftRows())==1 and 495 or 252
|
local width=(rows or leftRows())==1 and 495 or 252
|
||||||
local y=P.SocialNotificationSpace(edge).top+12
|
local y=P.SocialNotificationSpace(edge).top+12
|
||||||
-- During first installation Blizzard's player frame may still be at the
|
-- During first installation Blizzard's player frame may still be at the
|
||||||
|
|||||||
@ -4,7 +4,8 @@ local _, P = ...
|
|||||||
-- still occupy their block, so overlays cannot land in a temporarily blank slot.
|
-- still occupy their block, so overlays cannot land in a temporarily blank slot.
|
||||||
P.layoutPolicy = {
|
P.layoutPolicy = {
|
||||||
gap = 12, actionRowGap = 4, utilityRowGap = 6,
|
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 = {
|
controls = {
|
||||||
{name="Center controls", "MainActionBar","MultiBarBottomLeft","MultiBarBottomRight","MultiBar5"},
|
{name="Center controls", "MainActionBar","MultiBarBottomLeft","MultiBarBottomRight","MultiBar5"},
|
||||||
{name="Right controls", "MultiBarLeft","MultiBarRight","BagsBar","MicroMenuContainer"},
|
{name="Right controls", "MultiBarLeft","MultiBarRight","BagsBar","MicroMenuContainer"},
|
||||||
@ -22,6 +23,48 @@ for _, group in ipairs(P.layoutPolicy.controls) do
|
|||||||
end
|
end
|
||||||
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.DefaultChatOrigin()
|
||||||
|
-- The native chat selection includes its tabs/buttons. The engine clamps
|
||||||
|
-- the requested 20-unit anchor to 32 on this client; that is not a manual
|
||||||
|
-- move. Read native insets so another client/scale can use its own margin.
|
||||||
|
local frame=ChatFrame1
|
||||||
|
local x,y=20,45
|
||||||
|
if frame and frame.GetClampRectInsets then
|
||||||
|
local left,right,top,bottom=frame:GetClampRectInsets()
|
||||||
|
local scale=frame:GetEffectiveScale()/UIParent:GetEffectiveScale()
|
||||||
|
x=math.max(x,-(left or 0)*scale)
|
||||||
|
y=math.max(y,-(bottom or 0)*scale)
|
||||||
|
end
|
||||||
|
return x,y
|
||||||
|
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" then return false end
|
||||||
|
local x,y=P.DefaultChatOrigin()
|
||||||
|
-- Native saves can retain either the requested or the clamped origin.
|
||||||
|
if not (a.offsetX==20 or (a.offsetX and math.abs(a.offsetX-x)<.5))
|
||||||
|
or not (a.offsetY==45 or (a.offsetY and math.abs(a.offsetY-y)<.5)) 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()
|
function P.ApplyChatDefaults()
|
||||||
-- Fresh installs only. Do not overwrite an existing player's font choice.
|
-- Fresh installs only. Do not overwrite an existing player's font choice.
|
||||||
if RuenUICharacter.chatDefaultsVersion or RuenUICharacter.version then return end
|
if RuenUICharacter.chatDefaultsVersion or RuenUICharacter.version then return end
|
||||||
|
|||||||
97
RuenUI/LayoutRecovery.lua
Normal file
97
RuenUI/LayoutRecovery.lua
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
local _, P = ...
|
||||||
|
|
||||||
|
-- Explicit recovery only: no recurring work and no edits to live systemInfo.
|
||||||
|
-- Cover every native system, including ones this class has not displayed yet.
|
||||||
|
function P.ResetNativeLayoutPositions(layout)
|
||||||
|
local manager = EditModePresetLayoutManager
|
||||||
|
local defaults = manager and manager:GetCopyOfPresetLayouts()
|
||||||
|
assert(defaults and defaults[1], "Native layout defaults are not ready")
|
||||||
|
local index = {}
|
||||||
|
for _, system in ipairs(defaults[1].systems or {}) do
|
||||||
|
local key = system.system .. ":" .. tostring(system.systemIndex or 0)
|
||||||
|
index[key] = system
|
||||||
|
end
|
||||||
|
local report = {native = 0, unavailable = {}, companions = {}}
|
||||||
|
for _, system in ipairs(layout.systems or {}) do
|
||||||
|
local key = system.system .. ":" .. tostring(system.systemIndex or 0)
|
||||||
|
local preset = index[key]
|
||||||
|
local position = preset and preset.anchorInfo
|
||||||
|
if not position and manager.GetDefaultSystemAnchorInfo then
|
||||||
|
local ok, result = pcall(manager.GetDefaultSystemAnchorInfo, manager, system.system, system.systemIndex)
|
||||||
|
if ok then position = result end
|
||||||
|
end
|
||||||
|
if position then
|
||||||
|
system.anchorInfo = CopyTable(position)
|
||||||
|
system.anchorInfo2 = nil -- discard secondary snap anchors too
|
||||||
|
system.isInDefaultPosition = true
|
||||||
|
report.native = report.native + 1
|
||||||
|
else
|
||||||
|
report.unavailable[#report.unavailable + 1] = "native system " .. key
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return report
|
||||||
|
end
|
||||||
|
|
||||||
|
local function attempt(report, label, fn)
|
||||||
|
local ok, result = pcall(fn)
|
||||||
|
if not ok or result == false then
|
||||||
|
report.unavailable[#report.unavailable + 1] = label
|
||||||
|
else
|
||||||
|
report.companions[#report.companions + 1] = label
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function P.ResetCompanionPositions(report)
|
||||||
|
local spoken = SpokenEnv
|
||||||
|
if spoken and spoken.Options and spoken.Options.ResetPositions then
|
||||||
|
-- Upstream's position-only reset preserves narration, volume and style.
|
||||||
|
attempt(report, "Spoken narration", function() spoken.Options:ResetPositions() end)
|
||||||
|
end
|
||||||
|
local compendium = SpokenCompendium and SpokenCompendium.window
|
||||||
|
if compendium then
|
||||||
|
attempt(report, "Compendium", function()
|
||||||
|
compendium:ClearAllPoints()
|
||||||
|
compendium:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
|
||||||
|
if compendium.SetUserPlaced then compendium:SetUserPlaced(false) end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
if C_AddOns and C_AddOns.IsAddOnLoaded("Leatrix_Maps") then
|
||||||
|
-- Leatrix keeps a private live copy of its DB and overwrites saved
|
||||||
|
-- values at logout. Use its own position-only reset, not a DB write
|
||||||
|
-- that appears to work and is then silently undone. The pinned build
|
||||||
|
-- exposes this button on its main panel; tiptext is locale-independent.
|
||||||
|
attempt(report, "Leatrix Maps", function()
|
||||||
|
for _, name in ipairs(UISpecialFrames or {}) do
|
||||||
|
local panel = _G[name]
|
||||||
|
if panel and panel.GetChildren and not (panel.IsForbidden and panel:IsForbidden()) then
|
||||||
|
for _, child in ipairs({panel:GetChildren()}) do
|
||||||
|
if not (child.IsForbidden and child:IsForbidden())
|
||||||
|
and child.tiptext == "Click to reset the map position and scale to the game default." then
|
||||||
|
local click = child:GetScript("OnClick")
|
||||||
|
if not click or (child.IsEnabled and not child:IsEnabled()) then return false end
|
||||||
|
click(child, "LeftButton")
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function P.ResetNativePanelPositions(report)
|
||||||
|
-- Hand ordinary windows (bank, professions, spellbook, merchant, etc.)
|
||||||
|
-- back to Blizzard's panel manager. Never replace protected handlers or
|
||||||
|
-- write UIPanelWindows/UIPanelLayout attributes from addon code.
|
||||||
|
if not UpdateUIPanelPositions then return end
|
||||||
|
attempt(report, "Native panels", function()
|
||||||
|
for name in pairs(UIPanelWindows or {}) do
|
||||||
|
local panel = _G[name]
|
||||||
|
if panel and panel.SetUserPlaced and not (panel.IsForbidden and panel:IsForbidden()) then
|
||||||
|
panel:SetUserPlaced(false)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
UpdateUIPanelPositions()
|
||||||
|
end)
|
||||||
|
end
|
||||||
@ -295,6 +295,13 @@ end
|
|||||||
|
|
||||||
local tooltipPositions=setmetatable({},{__mode="k"})
|
local tooltipPositions=setmetatable({},{__mode="k"})
|
||||||
|
|
||||||
|
function P.ResetOverlayLayoutState()
|
||||||
|
tooltipPositions = setmetatable({},{__mode="k"})
|
||||||
|
for _, state in pairs(alertScales) do state.base=1 end
|
||||||
|
P.tooltipUnplaced, P.tooltipOverInventory, P.tooltipOverSocial = nil, nil, nil
|
||||||
|
P.overlayRevision = (P.overlayRevision or 0) + 1
|
||||||
|
end
|
||||||
|
|
||||||
function P.ResetTooltipPosition(tooltip)
|
function P.ResetTooltipPosition(tooltip)
|
||||||
tooltipPositions[tooltip]=nil
|
tooltipPositions[tooltip]=nil
|
||||||
P.tooltipUnplaced=nil
|
P.tooltipUnplaced=nil
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
local _, P = ...
|
local _, P = ...
|
||||||
P.version = 5
|
P.version = 5
|
||||||
P.release = "2026.11.22.2-beta.1"
|
P.release = "2026.11.22.6-beta.1"
|
||||||
P.graphicsVersion = 2
|
P.graphicsVersion = 2
|
||||||
P.layoutName = "Ruen UI - Clear ESDF"
|
P.layoutName = "Ruen UI - Clear ESDF"
|
||||||
function P.IsOurLayout(layout)
|
function P.IsOurLayout(layout)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
## Interface: 16001
|
## Interface: 16001
|
||||||
## Title: Ruen UI
|
## Title: Ruen UI
|
||||||
## Notes: ESDF, mouse and menu controls, inventory layout and Spoken language controls. /ruen help
|
## Notes: ESDF, mouse and menu controls, inventory layout and Spoken language controls. /ruen help
|
||||||
## Version: 2026.11.22.2-beta.1
|
## Version: 2026.11.22.6-beta.1
|
||||||
## Author: Ruen UI contributors
|
## Author: Ruen UI contributors
|
||||||
## SavedVariables: RuenUIDB
|
## SavedVariables: RuenUIDB
|
||||||
## SavedVariablesPerCharacter: RuenUICharacter
|
## SavedVariablesPerCharacter: RuenUICharacter
|
||||||
@ -28,4 +28,5 @@ FrameTiming.lua
|
|||||||
Optimizer.lua
|
Optimizer.lua
|
||||||
Benchmark.lua
|
Benchmark.lua
|
||||||
AddonPresets.lua
|
AddonPresets.lua
|
||||||
|
LayoutRecovery.lua
|
||||||
Core.lua
|
Core.lua
|
||||||
|
|||||||
@ -34,6 +34,8 @@
|
|||||||
|
|
||||||
Панель питомца — это **10 стандартных ячеек и 2 расширения** с использованием свободных ячеек второй страницы панели действий. Игра не получает дополнительные стандартные ячейки питомца. Если свободных ячеек нет, Ruen сообщает об этом и не затирает существующие способности.
|
Панель питомца — это **10 стандартных ячеек и 2 расширения** с использованием свободных ячеек второй страницы панели действий. Игра не получает дополнительные стандартные ячейки питомца. Если свободных ячеек нет, Ruen сообщает об этом и не затирает существующие способности.
|
||||||
|
|
||||||
|
Чтобы отменить увеличение или перемещение чата, закройте режим редактирования, выйдите из боя и введите `/ruen chat reset`. Команда восстановит удобный размер чата внизу слева с учётом доступного места и переместит соседние панели. Ширина занимает до 30% доступной области интерфейса (не более 620 единиц), не перекрывая центральные панели; высота — 190–260 единиц. Например, для области интерфейса 1920×1080 размер чата будет 570×230, а для 2133×1200 — 620×260. Масштаб интерфейса учитывается. Проверены доступные области интерфейса от 1280×720, включая форматы 16:10, 4:3 и сверхширокие экраны. Более крупный масштаб, оставляющий меньше места, не проверен; Ruen не уменьшает шрифт или общий масштаб автоматически. Размер по умолчанию автоматически подстраивается при изменении доступного места. Ручное изменение размера или положения отключает эту подстройку; ширина по-прежнему ограничивается, чтобы не закрывать центральные панели. Выбранный шрифт сохраняется. Обе команды сброса используют одинаковые размеры по умолчанию. `/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).
|
После обновления проверьте `/ruen status`, цифровые клавиши, смену защитной/пассивной стойки, вызов питомца и сумки при выбранной цели. Для сравнения FPS запустите `/ruen bench` и три минуты играйте, не переключаясь в другое окно: фоновое ограничение FPS иначе исказит результат. Следующая строка показывает время CPU Ruen, если встроенный профилировщик доступен. При рывках сообщите обе строки; измерение не меняет настройки графики. Подробные ограничения беты: [RELEASE-REVIEW.md](RELEASE-REVIEW.md).
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -54,6 +54,8 @@ 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.
|
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 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. Layout checks cover usable UI areas of at least 1280×720, including 16:10, 4:3 and ultrawide displays; larger UI scales that leave less space are not validated. Ruen respects your UI scale and font instead of shrinking text automatically. 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.
|
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.
|
||||||
|
|
||||||
## Optional optimization
|
## Optional optimization
|
||||||
|
|||||||
@ -1,6 +1,28 @@
|
|||||||
# Release review — 2026.11.22.2-beta.1
|
# Release review — 2026.11.22.6-beta.1
|
||||||
|
|
||||||
Reviewed 22 November 2026. **Opt-in public beta; not a general-availability certification.** This follow-up adds actual before/after graphics feedback, bounded progress messages, explicit combat waits and a read-only `optimize changes` command to the preceding frame-timing/scene-optimization beta. It retains the user-confirmed beta8 pet highlight fix and coordinated layout/profile work. Automated evidence does not establish that this update fixes the user's live cave stutter; that comparison is pending.
|
## Chat resolution follow-up (2026-11-22)
|
||||||
|
|
||||||
|
- Kept the user-approved sizing limits: up to 30% of usable UI width (620 maximum), 190–260 height, with width fitted against the combat bars. The cap keeps long lines manageable on wide screens; the shorter laptop default leaves room for notifications and group controls. This is a balanced default, not a claim of one optimal size for every reader/font.
|
||||||
|
- Corrected a real native compatibility gap: the chat selection extends 32 units to the left, so the engine clamps a requested x=20 to x=32. The former exact x=20 ownership check interpreted this as a manual move and stopped adaptive sizing. The default origin now reads the frame's clamp insets, accounts for scale and accepts both requested and clamped saved origins. Deliberate size/position edits still opt out. Native selection geometry and clamp behavior were checked against the [client's UI source](https://github.com/Gethe/wow-ui-source/blob/bebcb6bf309cf41b41bd74f8ca651e6a105b2676/Interface/AddOns/Blizzard_EditMode/Shared/EditModeSystemTemplates.xml#L171).
|
||||||
|
- The left control shelf follows the layout margin rather than the chat's extra text inset. Class rows now reserve their measured height instead of imposing a 30-unit floor on 24-unit stance/aspect controls. This recovers six vertical units for the full hunter HUD at 720p while preserving button size and the cast-label/swing gap.
|
||||||
|
- Regression fixtures now model native chat clamping and current Forever bar dimensions: 505.8×40.5 center rows and 252×82.8 side bars. The full matrix covers 20 display/scale/reset configurations, including 16:10, 4:3, ultrawide and 4K at multiple scales. Repeated shrink/grow cycles, combat deferral, clamped native save/reload and custom-size preservation are exercised separately. The previous simplified unclamped fixture missed the resize bug; it is no longer used for the matrix.
|
||||||
|
- The user confirmed the roomier chat looks better before this follow-up. These compatibility fixes still require a live reload; repeated live monitor/scale switching and every class/raid combination have not been observed. No per-frame layout work was added.
|
||||||
|
|
||||||
|
## 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). The user confirmed the larger chat is better.
|
||||||
|
|
||||||
|
## Complete layout recovery follow-up (2026-11-22)
|
||||||
|
|
||||||
|
- Full reset now starts with every native Edit Mode system anchor, including pet/boss/arena unit frames, buff/debuff groups, raid warnings, timer/resource displays, durability and hidden class features. Secondary snap anchors are discarded. Native defaults come from this client's preset; existing functional settings and other saved layouts are retained.
|
||||||
|
- 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. 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 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
|
## Frame timing and scene optimization
|
||||||
|
|
||||||
@ -58,8 +80,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.** |
|
| 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. |
|
| 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.** |
|
| 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 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 × 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 matrix | 9 classes × 8 environments × 20 display/scale/reset cases, repeated with native aura/cast/combo/BG-widget footprints: **2,880 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. |
|
| 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. |
|
| 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. |
|
| 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. |
|
||||||
@ -68,7 +90,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. |
|
| 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. |
|
| 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, 3840×2160 at three scales, 1280×800, 1440×900, 1600×900, 1920×1200, 2560×1600, 1280×1024, 3440×1440 at two scales and 5120×1440. The smallest tested usable UI area is 1280×720; a high UI scale that leaves less space is outside this matrix. Ruen does not change UI scale or shrink text to claim a fit.
|
||||||
|
|
||||||
## Performance review
|
## Performance review
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[1]
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
VERSION = '2026.11.22.2-beta.1'
|
VERSION = '2026.11.22.6-beta.1'
|
||||||
FILES = ['Ruen-Setup', 'Ruen-Setup.exe', 'Install-Ruen-UI.ps1', 'Install-Ruen-UI.cmd',
|
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',
|
'Install-Ruen-UI-Russian.cmd', 'Install-Windows.cmd', 'Install-Russian.cmd',
|
||||||
'Optimize-Ruen-UI.ps1', 'dependencies.lock.json', 'README.md', 'LICENSE',
|
'Optimize-Ruen-UI.ps1', 'dependencies.lock.json', 'README.md', 'LICENSE',
|
||||||
|
|||||||
@ -24,6 +24,7 @@ def main():
|
|||||||
checks = [
|
checks = [
|
||||||
('profiles', ['luajit', 'tests/check-profiles.lua', addon]),
|
('profiles', ['luajit', 'tests/check-profiles.lua', addon]),
|
||||||
('layout-policy', ['luajit', 'tests/check-layout-policy.lua', addon]),
|
('layout-policy', ['luajit', 'tests/check-layout-policy.lua', addon]),
|
||||||
|
('layout-recovery', ['luajit', 'tests/check-layout-recovery.lua', addon]),
|
||||||
('pets', ['luajit', 'tests/check-pet-actions.lua', addon]),
|
('pets', ['luajit', 'tests/check-pet-actions.lua', addon]),
|
||||||
('layout', ['luajit', 'tests/check-layout.lua', addon, 'unused', str(args.output.resolve() / 'matrix.txt')]),
|
('layout', ['luajit', 'tests/check-layout.lua', addon, 'unused', str(args.output.resolve() / 'matrix.txt')]),
|
||||||
('meter', ['luajit', 'tests/check-meter.lua', addon]),
|
('meter', ['luajit', 'tests/check-meter.lua', addon]),
|
||||||
|
|||||||
@ -1,6 +1,32 @@
|
|||||||
local root=assert(arg[1])
|
local root=assert(arg[1])
|
||||||
local P={}
|
local P={}
|
||||||
assert(loadfile(root..'LayoutPolicy.lua'))('RuenUI',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
|
||||||
|
-- Native selection margins clamp chat without the player moving it. Accept
|
||||||
|
-- both native serializations, scale the margin, and reject actual saved moves.
|
||||||
|
UIParent.GetEffectiveScale=function()return .64 end
|
||||||
|
ChatFrame1={GetClampRectInsets=function()return -32,25,60,-32 end,
|
||||||
|
GetEffectiveScale=function()return .64 end}
|
||||||
|
local x,y=P.DefaultChatOrigin();assert(x==32 and y==45)
|
||||||
|
Enum={EditModeChatFrameSetting={WidthHundreds=0,WidthTensAndOnes=1,HeightHundreds=2,HeightTensAndOnes=3}}
|
||||||
|
RuenUIDB={chatDefaultSize={width=620,height=260}}
|
||||||
|
local system={anchorInfo={point='BOTTOMLEFT',relativeTo='UIParent',relativePoint='BOTTOMLEFT',offsetX=20,offsetY=45},
|
||||||
|
settings={{setting=0,value=6},{setting=1,value=20},{setting=2,value=2},{setting=3,value=60}}}
|
||||||
|
assert(P.IsDefaultChatSystem(system));system.anchorInfo.offsetX=32;assert(P.IsDefaultChatSystem(system))
|
||||||
|
system.anchorInfo.offsetX=60;assert(not P.IsDefaultChatSystem(system),'custom anchor misidentified as default')
|
||||||
|
ChatFrame1.GetEffectiveScale=function()return .96 end
|
||||||
|
x,y=P.DefaultChatOrigin();assert(x==48 and y==48,'native margins were not scaled')
|
||||||
|
system.anchorInfo.offsetX=48;system.anchorInfo.offsetY=48;assert(P.IsDefaultChatSystem(system))
|
||||||
|
system.settings[4].value=10;assert(not P.IsDefaultChatSystem(system),'custom height misidentified as default')
|
||||||
|
ChatFrame1.GetClampRectInsets=nil;x,y=P.DefaultChatOrigin();assert(x==20 and y==45,'missing margin API fallback')
|
||||||
local font,size,flags='native-cyrillic-capable-font',12,'OUTLINE'
|
local font,size,flags='native-cyrillic-capable-font',12,'OUTLINE'
|
||||||
local changes=0
|
local changes=0
|
||||||
ChatFrame1={GetFont=function()return font,size,flags end}
|
ChatFrame1={GetFont=function()return font,size,flags end}
|
||||||
@ -13,4 +39,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')
|
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
|
local count=0;for _ in pairs(P.controlFrameSet)do count=count+1 end
|
||||||
assert(count==10 and #P.controlFrameNames==10,'control declarations inconsistent/duplicated')
|
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')
|
||||||
|
|||||||
86
tests/check-layout-recovery.lua
Normal file
86
tests/check-layout-recovery.lua
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
local root=assert(arg[1])
|
||||||
|
local P={}
|
||||||
|
function CopyTable(t)
|
||||||
|
if type(t)~='table'then return t end
|
||||||
|
local r={};for k,v in pairs(t)do r[k]=CopyTable(v)end;return r
|
||||||
|
end
|
||||||
|
Enum={EditModePresetLayouts={Modern=1}}
|
||||||
|
APIDocumentation={AddDocumentationTable=function(_,d)
|
||||||
|
for _,t in ipairs(d.Tables or {})do
|
||||||
|
if t.Type=='Enumeration'then
|
||||||
|
Enum[t.Name]={};for _,v in ipairs(t.Fields)do Enum[t.Name][v.Name]=v.EnumValue end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end}
|
||||||
|
dofile(assert(os.getenv('RUEN_NATIVE_UI'))..'/EditModeManagerConstantsDocumentation.lua')
|
||||||
|
local systems={}
|
||||||
|
for name,kind in pairs(Enum.EditModeSystem)do
|
||||||
|
local count=name=='UnitFrame' and 8 or name=='ActionBar' and 13 or name=='AuraFrame' and 2 or 1
|
||||||
|
for i=1,count do
|
||||||
|
systems[#systems+1]={system=kind,systemIndex=i,anchorInfo={point='TOPLEFT',relativeTo='UIParent',relativePoint='TOPLEFT',offsetX=kind,offsetY=-i},
|
||||||
|
settings={{setting=999,value='PRESERVE PREFERENCE'}}}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
EditModePresetLayoutManager={GetCopyOfPresetLayouts=function()return {{systems=systems}}end}
|
||||||
|
assert(loadfile(root..'LayoutRecovery.lua'))('RuenUI',P)
|
||||||
|
local layout={systems=CopyTable(systems)}
|
||||||
|
for _,s in ipairs(layout.systems)do s.anchorInfo={offsetX=9999};s.anchorInfo2={offsetY=9999};s.isInDefaultPosition=false end
|
||||||
|
local report=P.ResetNativeLayoutPositions(layout)
|
||||||
|
assert(report.native==#systems and #report.unavailable==0)
|
||||||
|
for i,s in ipairs(layout.systems)do
|
||||||
|
assert(s.anchorInfo.offsetX==systems[i].anchorInfo.offsetX and s.anchorInfo.offsetY==systems[i].anchorInfo.offsetY)
|
||||||
|
assert(s.anchorInfo~=systems[i].anchorInfo and s.anchorInfo2==nil and s.isInDefaultPosition)
|
||||||
|
assert(s.settings[1].value=='PRESERVE PREFERENCE','position reset changed a functional setting')
|
||||||
|
end
|
||||||
|
layout.systems[1].anchorInfo.offsetX=222
|
||||||
|
assert(systems[1].anchorInfo.offsetX~=222,'reset retained shared native anchors')
|
||||||
|
-- New/unsupported native systems are reported; never assigned guessed points.
|
||||||
|
layout={systems={{system=999,anchorInfo={offsetX=123}}}}
|
||||||
|
report=P.ResetNativeLayoutPositions(layout)
|
||||||
|
assert(#report.unavailable==1 and layout.systems[1].anchorInfo.offsetX==123)
|
||||||
|
function EditModePresetLayoutManager:GetDefaultSystemAnchorInfo()return {offsetX=456}end
|
||||||
|
report=P.ResetNativeLayoutPositions(layout)
|
||||||
|
assert(report.native==1 and #report.unavailable==0 and layout.systems[1].anchorInfo.offsetX==456)
|
||||||
|
|
||||||
|
UIParent={}
|
||||||
|
local spokenReset=0
|
||||||
|
SpokenEnv={Options={ResetPositions=function()spokenReset=spokenReset+1 end}}
|
||||||
|
local window={}
|
||||||
|
function window:ClearAllPoints()self.point=nil end
|
||||||
|
function window:SetPoint(...)self.point={...}end
|
||||||
|
function window:SetUserPlaced(v)self.userPlaced=v end
|
||||||
|
SpokenCompendium={window=window}
|
||||||
|
local liveMap={x=999,scale=2,language='ruRU',key='N'}
|
||||||
|
local clicks=0
|
||||||
|
local button={tiptext='Click to reset the map position and scale to the game default.'}
|
||||||
|
function button:GetScript(event)
|
||||||
|
assert(event=='OnClick')
|
||||||
|
return function()clicks=clicks+1;liveMap.x=16;liveMap.scale=1 end
|
||||||
|
end
|
||||||
|
function button:IsEnabled()return true end
|
||||||
|
-- Random panel names and localized button labels must not affect discovery.
|
||||||
|
F123random={GetChildren=function()return button end}
|
||||||
|
UISpecialFrames={'F123random'}
|
||||||
|
C_AddOns={IsAddOnLoaded=function(name)return name=='Leatrix_Maps'end}
|
||||||
|
report={unavailable={},companions={}}
|
||||||
|
P.ResetCompanionPositions(report)
|
||||||
|
assert(spokenReset==1 and clicks==1 and #report.unavailable==0)
|
||||||
|
assert(window.point[1]=='CENTER' and window.userPlaced==false)
|
||||||
|
assert(liveMap.x==16 and liveMap.scale==1 and liveMap.language=='ruRU' and liveMap.key=='N')
|
||||||
|
function button:IsEnabled()return false end
|
||||||
|
P.ResetCompanionPositions(report)
|
||||||
|
assert(clicks==1 and report.unavailable[1]=='Leatrix Maps','locked map reset was not reported')
|
||||||
|
button.IsEnabled=nil;F123random.GetChildren=function()return end
|
||||||
|
P.ResetCompanionPositions(report)
|
||||||
|
assert(clicks==1 and #report.unavailable==2,'unavailable upstream reset was silently claimed')
|
||||||
|
|
||||||
|
local panels=0
|
||||||
|
BankFrame={SetUserPlaced=function(_,v)assert(v==false);panels=panels+1 end}
|
||||||
|
OtherFrame={IsForbidden=function()return true end,SetUserPlaced=function()error('forbidden frame touched')end}
|
||||||
|
UIPanelWindows={BankFrame={},OtherFrame={},UnloadedPanel={}}
|
||||||
|
local updates=0
|
||||||
|
function UpdateUIPanelPositions()updates=updates+1 end
|
||||||
|
local original=UIPanelWindows.BankFrame
|
||||||
|
P.ResetNativePanelPositions(report)
|
||||||
|
assert(panels==1 and updates==1 and UIPanelWindows.BankFrame==original,'panel reset replaced native bookkeeping')
|
||||||
|
print('PASS: all 31 native system kinds, indexed pet/boss/arena/aura/action frames, secondary anchors, native fallback, independent preferences, companion live reset and panel-manager handoff')
|
||||||
@ -169,7 +169,13 @@ local function enrich(f,name)
|
|||||||
if not self.point then return 0,0,w,h end
|
if not self.point then return 0,0,w,h end
|
||||||
local p,relative,rp,x,y=unpack(self.point)
|
local p,relative,rp,x,y=unpack(self.point)
|
||||||
local l,b,rw,rh=relative:rect()
|
local l,b,rw,rh=relative:rect()
|
||||||
return l+rw*fraction(rp,'x')+x*scale-w*fraction(p,'x'),b+rh*fraction(rp,'y')+y*scale-h*fraction(p,'y'),w,h
|
l,b=l+rw*fraction(rp,'x')+x*scale-w*fraction(p,'x'),b+rh*fraction(rp,'y')+y*scale-h*fraction(p,'y')
|
||||||
|
if self.clampInsets then
|
||||||
|
local cl,cr,ct,cb=unpack(self.clampInsets)
|
||||||
|
l=math.max(-cl*scale,math.min(l,UIParent.w-w-cr*scale))
|
||||||
|
b=math.max(-cb*scale,math.min(b,UIParent.h-h-ct*scale))
|
||||||
|
end
|
||||||
|
return l,b,w,h
|
||||||
end
|
end
|
||||||
function f:GetLeft() local l=self:rect();return l/(self:GetEffectiveScale()/UIParent.scale) end
|
function f:GetLeft() local l=self:rect();return l/(self:GetEffectiveScale()/UIParent.scale) end
|
||||||
function f:GetBottom() local _,b=self:rect();return b/(self:GetEffectiveScale()/UIParent.scale) end
|
function f:GetBottom() local _,b=self:rect();return b/(self:GetEffectiveScale()/UIParent.scale) end
|
||||||
@ -184,6 +190,10 @@ for _,name in ipairs(barNames) do enrich(_G[name],name) end
|
|||||||
for _,name in ipairs({'ChatFrame1','PartyFrame','CompactRaidFrameContainer','UIParent','MinimapCluster','BagsBar','MicroMenuContainer','ObjectiveTrackerFrame','GameTooltip','StanceBar','PetActionBar','PossessActionBar','MultiCastActionBarFrame','MainMenuBarVehicleLeaveButton','ExtraAbilityContainer','PlayerCastingBarFrame','PlayerFrame','PetFrame','TargetFrame','TargetFrameToT','FocusFrame'}) do CreateFrame('Frame',name) end
|
for _,name in ipairs({'ChatFrame1','PartyFrame','CompactRaidFrameContainer','UIParent','MinimapCluster','BagsBar','MicroMenuContainer','ObjectiveTrackerFrame','GameTooltip','StanceBar','PetActionBar','PossessActionBar','MultiCastActionBarFrame','MainMenuBarVehicleLeaveButton','ExtraAbilityContainer','PlayerCastingBarFrame','PlayerFrame','PetFrame','TargetFrame','TargetFrameToT','FocusFrame'}) do CreateFrame('Frame',name) end
|
||||||
UIParent.w,UIParent.h,UIParent.scale=1706.4,960,1.25
|
UIParent.w,UIParent.h,UIParent.scale=1706.4,960,1.25
|
||||||
ChatFrame1.w,ChatFrame1.h=380,150;ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',20,45)
|
ChatFrame1.w,ChatFrame1.h=380,150;ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',20,45)
|
||||||
|
-- Native EditModeChatFrameSystemTemplate.Selection extends beyond the text
|
||||||
|
-- area (-32, +25, +60, -32). UpdateClampOffsets uses those actual bounds.
|
||||||
|
ChatFrame1.clampInsets={-32,25,60,-32}
|
||||||
|
function ChatFrame1:GetClampRectInsets()return unpack(self.clampInsets)end
|
||||||
PartyFrame.w,PartyFrame.h=230,300;CompactRaidFrameContainer.w,CompactRaidFrameContainer.h=360,304
|
PartyFrame.w,PartyFrame.h=230,300;CompactRaidFrameContainer.w,CompactRaidFrameContainer.h=360,304
|
||||||
PartyFrame.shown=false;CompactRaidFrameContainer.shown=false
|
PartyFrame.shown=false;CompactRaidFrameContainer.shown=false
|
||||||
GameTooltip.w,GameTooltip.h=220,120;GameTooltip.shown=false
|
GameTooltip.w,GameTooltip.h=220,120;GameTooltip.shown=false
|
||||||
@ -204,6 +214,8 @@ TargetFrameToT.w,TargetFrameToT.h=130,45;TargetFrameToT:SetPoint('TOPRIGHT',Targ
|
|||||||
local byKind={[Enum.EditModeSystem.ActionBar]={MainActionBar,MultiBarBottomLeft,MultiBarBottomRight,MultiBarRight,MultiBarLeft,MultiBar5,MultiBar6,MultiBar7},[Enum.EditModeSystem.Minimap]={MinimapCluster},[Enum.EditModeSystem.Bags]={BagsBar},[Enum.EditModeSystem.MicroMenu]={MicroMenuContainer},[Enum.EditModeSystem.ObjectiveTracker]={ObjectiveTrackerFrame}}
|
local byKind={[Enum.EditModeSystem.ActionBar]={MainActionBar,MultiBarBottomLeft,MultiBarBottomRight,MultiBarRight,MultiBarLeft,MultiBar5,MultiBar6,MultiBar7},[Enum.EditModeSystem.Minimap]={MinimapCluster},[Enum.EditModeSystem.Bags]={BagsBar},[Enum.EditModeSystem.MicroMenu]={MicroMenuContainer},[Enum.EditModeSystem.ObjectiveTracker]={ObjectiveTrackerFrame}}
|
||||||
local function setting(s,k) for _,v in ipairs(s.settings) do if v.setting==k then return v.value end end end
|
local function setting(s,k) for _,v in ipairs(s.settings) do if v.setting==k then return v.value end end end
|
||||||
byKind[Enum.EditModeSystem.ActionBar][Enum.EditModeActionBarSystemIndices.PetActionBar]=PetActionBar
|
byKind[Enum.EditModeSystem.ActionBar][Enum.EditModeActionBarSystemIndices.PetActionBar]=PetActionBar
|
||||||
|
byKind[Enum.EditModeSystem.ChatFrame]={ChatFrame1}
|
||||||
|
local actualBarGeometry=false
|
||||||
C_EditMode.SetActiveLayout=function(i)
|
C_EditMode.SetActiveLayout=function(i)
|
||||||
manager.layoutInfo.activeLayout=i
|
manager.layoutInfo.activeLayout=i
|
||||||
for _,s in ipairs(manager:GetActiveLayoutInfo().systems) do
|
for _,s in ipairs(manager:GetActiveLayoutInfo().systems) do
|
||||||
@ -213,10 +225,15 @@ C_EditMode.SetActiveLayout=function(i)
|
|||||||
if s.system==Enum.EditModeSystem.ActionBar and (s.systemIndex or 1)<=8 then
|
if s.system==Enum.EditModeSystem.ActionBar and (s.systemIndex or 1)<=8 then
|
||||||
local rows=setting(s,Enum.EditModeActionBarSetting.NumRows) or 1
|
local rows=setting(s,Enum.EditModeActionBarSetting.NumRows) or 1
|
||||||
f.w=(rows==1 and 495 or 252);f.h=rows*36+(rows-1)*2
|
f.w=(rows==1 and 495 or 252);f.h=rows*36+(rows-1)*2
|
||||||
|
if actualBarGeometry then f.w=(rows==1 and 505.8 or 252);f.h=rows*40.5+(rows-1)*1.8 end
|
||||||
elseif f==PetActionBar then
|
elseif f==PetActionBar then
|
||||||
local scale=(50+10*(setting(s,Enum.EditModeActionBarSetting.IconSize) or 3))/100
|
local scale=(50+10*(setting(s,Enum.EditModeActionBarSetting.IconSize) or 3))/100
|
||||||
-- Native small buttons are 30px; padding is between containers.
|
-- Native small buttons are 30px; padding is between containers.
|
||||||
f.localScale=1;f.w=10*30*scale+9*(2+(setting(s,Enum.EditModeActionBarSetting.IconPadding) or 2));f.h=30*scale
|
f.localScale=1;f.w=10*30*scale+9*(2+(setting(s,Enum.EditModeActionBarSetting.IconPadding) or 2));f.h=30*scale
|
||||||
|
elseif f==ChatFrame1 then
|
||||||
|
local S=Enum.EditModeChatFrameSetting
|
||||||
|
f.w=100*setting(s,S.WidthHundreds)+setting(s,S.WidthTensAndOnes)
|
||||||
|
f.h=100*setting(s,S.HeightHundreds)+setting(s,S.HeightTensAndOnes)
|
||||||
elseif f==MinimapCluster then f.w,f.h=215,256
|
elseif f==MinimapCluster then f.w,f.h=215,256
|
||||||
elseif f==BagsBar then f.w,f.h=315,45;f.localScale=0.8
|
elseif f==BagsBar then f.w,f.h=315,45;f.localScale=0.8
|
||||||
elseif f==MicroMenuContainer then f.w,f.h=241.6,32
|
elseif f==MicroMenuContainer then f.w,f.h=241.6,32
|
||||||
@ -264,6 +281,7 @@ ContainerFrameCombinedBags.shown=false
|
|||||||
ContainerFrameCombinedBags.SetScale=ContainerFrameCombinedBags.SetScaleBase
|
ContainerFrameCombinedBags.SetScale=ContainerFrameCombinedBags.SetScaleBase
|
||||||
|
|
||||||
if bundled then assert(loadfile(root..'AddonPresets.lua'))('RuenUI',P) end
|
if bundled then assert(loadfile(root..'AddonPresets.lua'))('RuenUI',P) end
|
||||||
|
assert(loadfile(root..'LayoutRecovery.lua'))('RuenUI',P)
|
||||||
assert(loadfile(root..'Core.lua'))('RuenUI',P)
|
assert(loadfile(root..'Core.lua'))('RuenUI',P)
|
||||||
RuenUICharacter={original={},version=2,addedBindings={['ALT-F']='INTERACTTARGET'}}
|
RuenUICharacter={original={},version=2,addedBindings={['ALT-F']='INTERACTTARGET'}}
|
||||||
RuenUIDB={original={},reports={},graphicsVersion=P.graphicsVersion}
|
RuenUIDB={original={},reports={},graphicsVersion=P.graphicsVersion}
|
||||||
@ -273,6 +291,7 @@ assert(RuenUICharacter.version==P.version,RuenUICharacter.layoutStatus)
|
|||||||
assert(cvars.graphicsLightMode=='1','UI update reset graphics')
|
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(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(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')
|
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
|
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'}
|
local keys={'Q','W','R','T','A','G','H','Z','X','C','V','B'}
|
||||||
@ -848,6 +867,121 @@ assert(changes==afterGraphics,'graphics upgrade reapplied every login')
|
|||||||
SlashCmdList.RUENUI('apply'); assert(#manager:GetLayouts()==2)
|
SlashCmdList.RUENUI('apply'); assert(#manager:GetLayouts()==2)
|
||||||
combat=true;before=changes;SlashCmdList.RUENUI('apply');assert(changes==before)
|
combat=true;before=changes;SlashCmdList.RUENUI('apply');assert(changes==before)
|
||||||
combat=false
|
combat=false
|
||||||
|
-- Exercise the actual reset commands with enlarged, moved and saved chat.
|
||||||
|
do
|
||||||
|
local function equal(a,b)
|
||||||
|
if type(a)~=type(b) then return false end
|
||||||
|
if type(a)~='table' then return a==b end
|
||||||
|
for k,v in pairs(a)do if not equal(v,b[k])then return false end end
|
||||||
|
for k in pairs(b)do if a[k]==nil then return false end end
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
local originalClass=currentClass
|
||||||
|
local priorKey,priorFPS,priorShadow=bindings.Z,cvars.maxFPS,cvars.graphicsShadowQuality
|
||||||
|
bindings.Z='MY_CUSTOM_BINDING';cvars.maxFPS='37';cvars.graphicsShadowQuality='0'
|
||||||
|
local originalCvars,originalBindings,originalActions=CopyTable(cvars),CopyTable(bindings),CopyTable(actions)
|
||||||
|
local otherLayout=CopyTable(manager.layoutInfo.layouts[1])
|
||||||
|
local function enlargeChat()
|
||||||
|
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.HeightHundreds then v.value=5 end
|
||||||
|
if v.setting==S.HeightTensAndOnes then v.value=50 end
|
||||||
|
end
|
||||||
|
s.anchorInfo.offsetX=60;s.anchorInfo.offsetY=120
|
||||||
|
end
|
||||||
|
end
|
||||||
|
C_EditMode.SetActiveLayout(manager.layoutInfo.activeLayout)
|
||||||
|
end
|
||||||
|
enlargeChat()
|
||||||
|
local shared=manager.layoutInfo;local prior=CopyTable(shared)
|
||||||
|
local function assertChat()
|
||||||
|
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()==32 and ChatFrame1:GetBottom()==45,'chat reset did not restore native-clamped anchor')
|
||||||
|
end
|
||||||
|
SlashCmdList.RUENUI('chat reset');assertChat()
|
||||||
|
assert(equal(shared,prior),'chat reset mutated shared layout data')
|
||||||
|
for i,s in ipairs(prior.layouts[prior.activeLayout].systems)do
|
||||||
|
if s.system~=Enum.EditModeSystem.ChatFrame then
|
||||||
|
assert(equal(s,manager:GetActiveLayoutInfo().systems[i]),'chat reset altered another saved system')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
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()
|
||||||
|
-- Resolution changes must work repeatedly, with the real native chat clamp,
|
||||||
|
-- without another reset/save. Also accept native serialization of the clamp.
|
||||||
|
local originalDisplay={UIParent.w,UIParent.h,UIParent.scale}
|
||||||
|
for _,s in ipairs(manager:GetActiveLayoutInfo().systems)do
|
||||||
|
if s.system==Enum.EditModeSystem.ChatFrame then s.anchorInfo.offsetX=32 end
|
||||||
|
end
|
||||||
|
C_EditMode.SetActiveLayout(manager.layoutInfo.activeLayout);hooks.UpdateSystems()
|
||||||
|
local savedLayout=CopyTable(manager.layoutInfo)
|
||||||
|
for round=1,3 do
|
||||||
|
for _,display in ipairs({{1920,1080,1,570,230},{1280,720,1,344.5,190},
|
||||||
|
{3440,1440,1.875,550,190},{3840,2160,2,570,230},
|
||||||
|
{2560,1440,2,344.5,190},{2133,1200,1,620,260}})do
|
||||||
|
UIParent.w,UIParent.h,UIParent.scale=display[1]/display[3],display[2]/display[3],display[3]
|
||||||
|
UIParent.scripts.OnSizeChanged()
|
||||||
|
assert(math.abs(ChatFrame1:GetWidth()-display[4])<.1 and ChatFrame1:GetHeight()==display[5],
|
||||||
|
'chat did not follow viewport '..table.concat(display,','))
|
||||||
|
assert(ChatFrame1:GetLeft()==32 and ChatFrame1:GetBottom()==45,'native chat margin lost')
|
||||||
|
assert(equal(manager.layoutInfo,savedLayout),'display resize wrote shared native layout state')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local w,h=ChatFrame1:GetSize()
|
||||||
|
combat=true;UIParent.w,UIParent.h=1280,720;UIParent.scripts.OnSizeChanged()
|
||||||
|
assert(ChatFrame1:GetWidth()==w and ChatFrame1:GetHeight()==h,'chat resize ignored combat deferral')
|
||||||
|
combat=false;hooks.UpdateSystems();assert(ChatFrame1:GetHeight()==190,'deferred chat resize lost')
|
||||||
|
UIParent.w,UIParent.h,UIParent.scale=unpack(originalDisplay);hooks.UpdateSystems()
|
||||||
|
-- Routine reflow must not turn a responsive default into a mandatory size.
|
||||||
|
ChatFrame1:SetSize(330,210);ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',60,45)
|
||||||
|
hooks.UpdateSystems();hooks.UpdateSystems()
|
||||||
|
assert(ChatFrame1:GetWidth()==330 and ChatFrame1:GetHeight()==210 and ChatFrame1:GetLeft()==60,
|
||||||
|
'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
|
||||||
|
SlashCmdList.RUENUI('layout reset');assertChat()
|
||||||
|
assert(manager:GetActiveLayoutInfo().systems[1].anchorInfo.offsetY==48,'main bar reset failed for '..class)
|
||||||
|
assert(#manager:GetLayouts()==layoutsBefore and equal(manager.layoutInfo.layouts[1],otherLayout),'reset replaced unrelated layouts')
|
||||||
|
end
|
||||||
|
currentClass=originalClass
|
||||||
|
assert(equal(cvars,originalCvars),'layout reset changed graphics/gameplay CVars')
|
||||||
|
assert(equal(bindings,originalBindings) and equal(actions,originalActions),'layout reset changed keys/actions')
|
||||||
|
bindings.Z=priorKey;cvars.maxFPS=priorFPS;cvars.graphicsShadowQuality=priorShadow
|
||||||
|
for _,guard in ipairs({'combat','edit','override','disabled','other'})do
|
||||||
|
local shown=manager.IsShown;local savedName=manager:GetActiveLayoutInfo().layoutName
|
||||||
|
if guard=='combat'then combat=true
|
||||||
|
elseif guard=='edit'then manager.IsShown=function()return true end
|
||||||
|
elseif guard=='override'then manager.overrideLayoutInfo={}
|
||||||
|
elseif guard=='disabled'then RuenUIDB.disabled=true
|
||||||
|
else manager:GetActiveLayoutInfo().layoutName='Personal Layout' end
|
||||||
|
local prior=CopyTable(manager.layoutInfo);local saves=classSaves
|
||||||
|
SlashCmdList.RUENUI('chat reset');SlashCmdList.RUENUI('layout reset')
|
||||||
|
assert(equal(manager.layoutInfo,prior) and saves==classSaves,'reset ignored guard: '..guard)
|
||||||
|
combat=false;manager.IsShown=shown;manager.overrideLayoutInfo=nil;RuenUIDB.disabled=nil
|
||||||
|
manager:GetActiveLayoutInfo().layoutName=savedName
|
||||||
|
end
|
||||||
|
print('PASS: native-clamped chat resize cycles at six viewport/scales, normalized saved anchors, combat deferral, manual size preservation; saved chat and nine-class layout reset, detached native state, persistence, unrelated layout/CVar/key/action preservation and reset guards')
|
||||||
|
end
|
||||||
bindings.Z='USER_NEW_ACTION';actions[39]={'item',888}
|
bindings.Z='USER_NEW_ACTION';actions[39]={'item',888}
|
||||||
SlashCmdList.RUENUI('restore')
|
SlashCmdList.RUENUI('restore')
|
||||||
for k,a in pairs(initialBindings) do if k~='ALT-F' then assert(bindings[k]==a,'undo mismatch '..k) end end
|
for k,a in pairs(initialBindings) do if k~='ALT-F' then assert(bindings[k]==a,'undo mismatch '..k) end end
|
||||||
@ -1173,7 +1307,7 @@ for _,case in ipairs({{2133,1200,1,2},{1920,1080,1,2},{1920,1080,1.40625,2},{136
|
|||||||
P.MigrateLeftBars();hooks.UpdateSystems();UIParent.scripts.OnSizeChanged()
|
P.MigrateLeftBars();hooks.UpdateSystems();UIParent.scripts.OnSizeChanged()
|
||||||
assert(RuenUIDB.leftBarRows==case[4],'wrong responsive row count')
|
assert(RuenUIDB.leftBarRows==case[4],'wrong responsive row count')
|
||||||
assert(MultiBar6.h==(case[4]==1 and 36 or 74) and MultiBar7.h==MultiBar6.h,'wrong native shape')
|
assert(MultiBar6.h==(case[4]==1 and 36 or 74) and MultiBar7.h==MultiBar6.h,'wrong native shape')
|
||||||
assert(math.abs(MultiBar6:GetLeft()-ChatFrame1:GetLeft())<.01,'left shelf not aligned with chat')
|
assert(math.abs(MultiBar6:GetLeft()-(ChatFrame1:GetLeft()-12))<.01,'left shelf not aligned with the chat layout margin')
|
||||||
assert(math.abs(MultiBar6:GetLeft()-MultiBar7:GetLeft())<.01 and math.abs(MultiBar6:GetRight()-MultiBar7:GetRight())<.01)
|
assert(math.abs(MultiBar6:GetLeft()-MultiBar7:GetLeft())<.01 and math.abs(MultiBar6:GetRight()-MultiBar7:GetRight())<.01)
|
||||||
assert(gap(MultiBar7,MultiBar6)>=5.9,'left row gap')
|
assert(gap(MultiBar7,MultiBar6)>=5.9,'left row gap')
|
||||||
local dockPoint=CopyTable(MultiBar6.point);MultiBar6:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',20,215)
|
local dockPoint=CopyTable(MultiBar6.point);MultiBar6:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',20,215)
|
||||||
@ -1187,9 +1321,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
|
if s.system==Enum.EditModeSystem.ActionBar and (s.systemIndex==7 or s.systemIndex==8)then
|
||||||
assert(setting(s,Enum.EditModeActionBarSetting.NumRows)==case[4])
|
assert(setting(s,Enum.EditModeActionBarSetting.NumRows)==case[4])
|
||||||
assert(s.anchorInfo.relativeTo=='UIParent' and not s.isInDefaultPosition)
|
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
|
||||||
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')
|
saves=classSaves;P.MigrateLeftBars();assert(saves==classSaves,'left migration repeated without width change')
|
||||||
end
|
end
|
||||||
assert(eq(bindings,keysSnapshot) and eq(actions,actionSnapshot),'shelf migration changed keybindings or actions')
|
assert(eq(bindings,keysSnapshot) and eq(actions,actionSnapshot),'shelf migration changed keybindings or actions')
|
||||||
@ -1249,6 +1387,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
|
currentClass='SHAMAN';inside=false;kind='none';CompactRaidFrameContainer.shown=false;PartyFrame.shown=false
|
||||||
for _,n in ipairs(controls)do _G[n].shown=false end
|
for _,n in ipairs(controls)do _G[n].shown=false end
|
||||||
PlayerFrame.shown=true;TargetFrame.shown=true;MultiCastActionBarFrame.shown=true
|
PlayerFrame.shown=true;TargetFrame.shown=true;MultiCastActionBarFrame.shown=true
|
||||||
|
SlashCmdList.RUENUI('chat reset')
|
||||||
nativeSocial();hooks.UpdateSystems();P.RefreshDamageMeters()
|
nativeSocial();hooks.UpdateSystems();P.RefreshDamageMeters()
|
||||||
ContainerFrameCombinedBags.shown=true;ContainerFrameCombinedBags.w,ContainerFrameCombinedBags.h=430,550
|
ContainerFrameCombinedBags.shown=true;ContainerFrameCombinedBags.w,ContainerFrameCombinedBags.h=430,550
|
||||||
ContainerFrameCombinedBags.localScale=1;SlashCmdList.RUENUI('bags')
|
ContainerFrameCombinedBags.localScale=1;SlashCmdList.RUENUI('bags')
|
||||||
@ -1438,10 +1577,14 @@ print('PASS: '..cases..' restricted-aura bag cases (target/focus/bank, 720p-4K,
|
|||||||
end)()
|
end)()
|
||||||
|
|
||||||
-- Reset the prior restricted-aura stress fixture before the base matrix.
|
-- Reset the prior restricted-aura stress fixture before the base matrix.
|
||||||
|
-- Earlier compatibility fixtures use smaller buttons. This full matrix uses
|
||||||
|
-- Forever's measured 90% native geometry: 505.8x40.5 center rows and 252x82.8
|
||||||
|
-- side bars. The compact legacy model understated the vertical HUD footprint.
|
||||||
|
actualBarGeometry=true
|
||||||
TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil
|
TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil
|
||||||
;(function()
|
;(function()
|
||||||
local report=assert(io.open(arg[3] or '/tmp/ruen-audit-matrix.txt','w'))
|
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},{1280,800,1},{1440,900,1},{1600,900,1},{1920,1200,1},{2560,1600,1.5},{3440,1440,1},{3440,1440,1.875},{5120,1440,1.875},{3840,2160,2},{1280,1024,1}}
|
||||||
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 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 seen,issues,cases={},0,0
|
||||||
local function note(text)
|
local function note(text)
|
||||||
@ -1455,7 +1598,11 @@ TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil
|
|||||||
activeAlerts={}
|
activeAlerts={}
|
||||||
for _,f in ipairs({roll,talking,loot1,loot2,achievement,breath,buffs,ContainerFrameCombinedBags,GameTooltip,ShoppingTooltip1,ShoppingTooltip2,unpack(rolls)})do f.shown=false end
|
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
|
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]
|
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
|
for class,names in pairs(scenarios)do if class~='maximum' and class~='possessed' then
|
||||||
currentClass=class:upper()
|
currentClass=class:upper()
|
||||||
for _,env in ipairs(envs)do
|
for _,env in ipairs(envs)do
|
||||||
@ -1467,7 +1614,8 @@ TargetFrame.GetAuraContainer=nil;FocusFrame.GetAuraContainer=nil
|
|||||||
PartyFrame.shown=env[4]==5;PartyFrame.w,PartyFrame.h=102,260
|
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
|
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
|
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
|
for i,n in ipairs(controlsList)do
|
||||||
local f=_G[n]
|
local f=_G[n]
|
||||||
if f and f:IsShown() then
|
if f and f:IsShown() then
|
||||||
@ -1511,7 +1659,7 @@ end)()
|
|||||||
end)()
|
end)()
|
||||||
;(function()
|
;(function()
|
||||||
local report=assert(io.open((arg[3] or '/tmp/ruen-audit-matrix.txt')..'.native','w'))
|
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},{1280,800,1},{1440,900,1},{1600,900,1},{1920,1200,1},{2560,1600,1.5},{3440,1440,1},{3440,1440,1.875},{5120,1440,1.875},{3840,2160,2},{1280,1024,1}}
|
||||||
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 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 seen,issues,cases={},0,0
|
||||||
local function note(text)
|
local function note(text)
|
||||||
@ -1525,7 +1673,9 @@ end)()
|
|||||||
activeAlerts={}
|
activeAlerts={}
|
||||||
for _,f in ipairs({roll,talking,loot1,loot2,achievement,breath,buffs,ContainerFrameCombinedBags,GameTooltip,ShoppingTooltip1,ShoppingTooltip2,unpack(rolls)})do f.shown=false end
|
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
|
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]
|
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
|
for class,names in pairs(scenarios)do if class~='maximum' and class~='possessed' then
|
||||||
currentClass=class:upper()
|
currentClass=class:upper()
|
||||||
for _,env in ipairs(envs)do
|
for _,env in ipairs(envs)do
|
||||||
@ -1540,7 +1690,8 @@ end)()
|
|||||||
PartyFrame.shown=env[4]==5;PartyFrame.w,PartyFrame.h=102,260
|
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
|
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
|
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
|
for i,n in ipairs(controlsList)do
|
||||||
local f=_G[n]
|
local f=_G[n]
|
||||||
if f and f:IsShown() then
|
if f and f:IsShown() then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user