Repository navigation
Taschen: Rechtsklick aus den Taschen nach einem Bankbesuch nicht mehr verboten (F24) - #4
Merged
Merged
Conversation
After a visit to the bank every right-click use from the bags was
blocked until a reload ("Forbidden ... ContainerFrame.lua:1611"): the
hearthstone, keys, recipes and putting items into the trade window. A
check in the game found BankFrame.BankPanel.bankType tainted by EldoUI.
ContainerFrameItemButton_OnClick hands that bank type to
UseContainerItem on every right-click, and the bank's OnShow sets it
only after OpenAllBags(self). EldoUI had written what that bag code
reads: its bag window called CloseAllBags() when it closed (which
writes FRAME_THAT_OPENED_BAGS), and its own opens built the game's bag
frames. The vendor's tab was tainted the same way.
While the game's bag frames sit on EldoUI's hidden parent, EldoUI now
closes them by hiding them (they run no scripts there) and opens only
its own window. That window stays open until the player closes it
(close button, Escape, B, a bag block), also through a bank or vendor
visit. The Info Bar's bag blocks and the flight view's Bags button go
through the Bags module. With the game's bags shown, the game's
functions are used as before.
- review/fehler.md: F24 with cause, change and checks in the game.
- tools/bags/test_game_bag_code.lua: the real helpers, CloseWindow,
SyncOpen and the ToggleAllBags hook against a model of the parked
frames, plus a text check for direct calls.
- Entry in both changelogs; UpdateNewItemList in tools/ci/globals.lua.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A window EldoUI opened on its own (the game's bags closed) did not close with the backpack key or button: the first press opened the game's hidden backpack, the second closed it, and the window stayed. The game's CloseAllBags() without a window is the player's close, so it now ends "opened alone" and the window follows the game's frames. The test runs the two hooks at the end of HookBagFrames as they are and checks the backpack key and a bank closing the bags. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nach einem Bankbesuch war jeder Rechtsklick zum Benutzen aus EldoUIs Taschenfenster verboten, bis zum
/reload: Ruhestein, Dietriche, Rezepte und das Hineinlegen ins Handelsfenster. Im Fehlerlog steht das als „Forbidden: EldoUI tried to call the protected function UNKNOWN() at Blizzard_UIPanels_Game/Mainline/ContainerFrame.lua:1611“, 157-mal vom 15.11. bis 21.11. Details stehen inreview/fehler.mdunter F24.Ursache
Eine Prüfung im Spiel, im gesperrten Zustand, fand
BankFrame.BankPanel.bankTypevon EldoUI verunreinigt. Dazu zwei weitere Bank-Werte und den Händler-Tab.ContainerFrameItemButton_OnClickübergibtBankFrame:GetActiveBankType()bei jedem Rechtsklick anUseContainerItem, auch bei geschlossener Bank.BankFrameBaseMixin:OnShow, aber erst nachOpenAllBags(self).CloseAllBags()auf, und das schreibtFRAME_THAT_OPENED_BAGS. Beim Öffnen aus eigenem Code (Infoleiste,/eui find, Tour, Taschen mit Handel, Gildenbank oder Beruf öffnen) baute es Blizzards Taschenrahmen.OpenAllBags(self, true).Gegenstände aus der Bank holen ist nicht geschützt, deshalb fiel es dort nicht auf.
Was sich ändert
Modules/Bags/Core.lua: Solange Blizzards Taschenrahmen auf EldoUIs verstecktem Elternrahmen liegen, ruft EldoUI Blizzards Taschencode nicht mehr selbst auf.M:CloseGameBagsversteckt die Rahmen nur. Dort laufen ohnehin keine Skripte. Die „Neu“-Markierung fällt weg wie bei Blizzard.M:OpenBagsöffnet nur EldoUIs Fenster.M:CloseBagsundM:ToggleBagssind die Gegenstücke.window.eldoOnly): Es bleibt offen, bis der Spieler es schließt, mit X, Escape, B oder einem Taschen-Block. Das gilt auch, wenn eine Bank oder ein Händler die Taschen öffnet und wieder schließt, so wie bisher bei schon offenen Taschen. B schließt es über einen Haken anToggleAllBags.Modules/InfoBar.lua,Modules/QoL/FlightView.lua: Die Taschen-Blöcke (Gold, Taschen, Munition) und der Taschen-Knopf der Flugansicht laufen über das Taschen-Modul.UpdateNewItemListsteht jetzt intools/ci/globals.lua.Was ein Prüfer wissen sollte
Kit.GameButton)./eui findgeöffnete Taschen öffnen Blizzards versteckte Rahmen nicht mehr. Blizzard hält die Taschen dann für geschlossen. B schließt das Fenster gleich. Mit dem Rucksack-Knopf oder der Rucksack-Taste braucht es zwei Drücke: Der erste öffnet nur Blizzards versteckten Rucksack, der zweite schließt alles. Dafür gibt es einen Haken anCloseAllBags()ohne Fenster (zweiter Commit)./reloaderneut gesperrt gewesen. Nach einem Reload ist der Bank-Typ sauber. Ob dazwischen die Bank offen war, ist nicht bekannt.Geprüft
tools/bags/test_game_bag_code.lua, eingetragen incheck_all.sh tests. Er schneidet die echten Helfer,CloseWindow,SyncOpenund die Haken anToggleAllBagsundCloseAllBagsausCore.luaund lässt sie gegen ein Modell laufen. Dazu kommt eine Textprüfung gegen direkte Aufrufe.lua5.1nochluachecknochlupa. Syntax, luacheck, Test und Offline-Start laufen nur in der CI.Im Spiel prüfen
/reload. Taschen mit B öffnen und mit EldoUIs X schließen./eui errorszeigt keinen neuen Eintrag „ContainerFrame.lua:1611“.true.🤖 Generated with Claude Code