diff --git a/crates/benilla-app/assets/ui/PetStable.xml b/crates/benilla-app/assets/ui/PetStable.xml deleted file mode 100644 index 6c492640..00000000 --- a/crates/benilla-app/assets/ui/PetStable.xml +++ /dev/null @@ -1,715 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - this:RegisterForDrag("LeftButton") - - -- xml l.31-38. Guarded on `this.tooltip` because Update has not necessarily run - -- yet: a hover before the first repaint has nothing to say and says nothing. - if this.tooltip then - GameTooltip:SetOwner(this, "ANCHOR_RIGHT") - GameTooltip:SetText(this.tooltip) - GameTooltip:AddLine(this.tooltipSubtext, "", 1.0, 1.0, 1.0) - GameTooltip:Show() - end - - GameTooltip:Hide() - - if ClickStablePet(this:GetID()) then - PetStable_Update() - end - - PickupStablePet(this:GetID()) - - if ClickStablePet(this:GetID()) then - PetStable_Update() - end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GameTooltip:SetOwner(this, "ANCHOR_RIGHT") - GameTooltip:SetText(this.tooltip) - - GameTooltip:Hide() - - - - - - Model_OnLoad() - Model_OnUpdate(arg1, this) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SmallMoneyFrame_OnLoad() MoneyFrame_SetType("STATIC") - - - - - - - - PetStable_OnLoad() - PlaySound("igCharacterInfoOpen") - ClosePetStables() PlaySound("igCharacterInfoClose") - PetStable_OnEvent() - - - diff --git a/crates/benilla-app/assets/ui/QuestLogFrame.xml b/crates/benilla-app/assets/ui/QuestLogFrame.xml index 1c44086e..6e6aaa93 100644 --- a/crates/benilla-app/assets/ui/QuestLogFrame.xml +++ b/crates/benilla-app/assets/ui/QuestLogFrame.xml @@ -1071,6 +1071,44 @@ -- `doNotScroll` (pin §5's asymmetry, threaded through to `BenillaQuestLogDetail_Update`): -- absent/falsy for a manual call (a row click, the window's own OnShow); `true` from the -- QUEST_LOG_UPDATE event handler below. + -- ── The reference's own two names for what this window already does ───────────────── + -- + -- `QuestTimerFrame.xml` is the reference's own file, on the chain since 1751, and its + -- `QuestTimerButton_OnClick` (QuestTimerFrame.lua:41-45) does exactly three things: + -- ShowUIPanel, `QuestLog_SetSelection(...)`, `QuestLog_Update()`. Neither of the last two + -- existed anywhere in this tree, so clicking a quest timer raised. Defining them here is + -- not a stub of an engine verb (1203) — both are FrameXML functions, and this file is our + -- stand-in for `QuestLogFrame.lua`, which is where the reference defines them. Every other + -- function in this window has the same relationship to its stock twin; these two were + -- simply missed because nothing of ours called them. + -- + -- `QuestLog_SetSelection`'s stock body (QuestLogFrame.lua:317-345) is mostly frame work + -- that only the stock window has — `QuestLogTitle`..id, `QuestLogHighlightFrame`, + -- `QuestLogSkillHighlight`. What survives the re-expression is its LAW: a header never + -- becomes the selection (it folds instead), and a real quest is selected and repainted. + -- That is the same fork `BenillaQuestLogTitle_OnClick` above already implements, so this + -- is the shared body rather than a second copy of it. + function QuestLog_SetSelection(index) + if not index or index == 0 then return end + local _, _, _, isHeader, isCollapsed = GetQuestLogTitle(index) + if isHeader then + if isCollapsed and type(ExpandQuestHeader) == "function" then + ExpandQuestHeader(index) + elseif type(CollapseQuestHeader) == "function" then + CollapseQuestHeader(index) + end + return + end + SelectQuestLogEntry(index) + end + + -- The reference's `QuestLog_Update` (QuestLogFrame.lua:107). Ours has carried this body + -- under a `Benilla` prefix; the stock name is the one the chain calls, and having it here + -- also shrinks the delta when this window itself migrates. + function QuestLog_Update(doNotScroll) + BenillaQuestLogFrame_Update(doNotScroll) + end + function BenillaQuestLogFrame_Update(doNotScroll) QuestLog_SetFirstValidSelection() BenillaQuestLogList_Update() diff --git a/crates/benilla-app/assets/ui/TaxiFrame.xml b/crates/benilla-app/assets/ui/TaxiFrame.xml deleted file mode 100644 index afbebfe3..00000000 --- a/crates/benilla-app/assets/ui/TaxiFrame.xml +++ /dev/null @@ -1,557 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -