Close the window when Escape is pressed
Register the main frame ("AmibisMainFrame") in UISpecialFrames so Escape
hides it and suppresses the game menu while it is open, matching the
default UI panels.
Move the stats-retry timer cleanup into the frame's OnHide script so the
close button, Escape, and /amibis all stop the timer.
Tests: the mock now registers named frames in _G and runs OnHide scripts.
The UI suite simulates FrameXML's CloseSpecialWindows() and asserts the
frame hides and the retry timer is cleared. 108 passing.
This commit is contained in:
1 parent
cc3971fe93
commit
d8fefc947e
6 files changed
+77
-9
No files matched your search
@@ -26,6 +26,7 @@ A World of Warcraft: The Burning Crusade Classic addon that compares your equipp
|
||||
- **Shift+Click** a row to link the BIS item in chat
|
||||
- **Ctrl+Click** a row to open the dress-up preview
|
||||
- **Hover** a row to see the item tooltip
|
||||
- **Press Escape** to close the window (registered in `UISpecialFrames`)
|
||||
- **Click a phase segment** (T4 | T5 | T6 | ZA) to switch the comparison target
|
||||
|
||||
## Adding BIS Lists
|
||||
|
||||
Reference in new issue
Block a user