1040 - Hide recount during pet battles (includes code to do it)
What is the enhancement in mind? How should it look and feel?
Simple addition to hide the display during pet battles because it causes a lot of conflict with my setup.
Please provide any additional information below.
I have tested this code myself and it works just fine. Just put this in the GUI_Main file at the end of the function "Recount:CreateMainWindow()"
Recount:RegisterEvent("PET_BATTLE_OPENING_START", function() Recount.MainWindow:Hide() end)
Recount:RegisterEvent("PET_BATTLE_CLOSE", function() Recount.MainWindow:Show() end
with the surrounding stuff it should look like,
...
--Recount:ResizeMainWindow()
Recount:SetupMainWindowButtons()
Recount.MainWindow.timeid = Recount:ScheduleRepeatingTimer("RefreshMainWindow", 1, true)
if not Recount.db.profile.MainWindowVis then
theFrame:Hide()
end
Recount:RegisterEvent("PET_BATTLE_OPENING_START", function() Recount.MainWindow:Hide() end)
Recount:RegisterEvent("PET_BATTLE_CLOSE", function() Recount.MainWindow:Show() end
end
| User | When | Change |
|---|---|---|
| Zephariahime | Sep 09, 2016 at 07:16 UTC | Create |
Facts
- Reported
- Sep 09, 2016
- Status
- New - Issue has not had initial review yet.
- Type
- Enhancement - A change which is intended to better the project in some way
- Priority
- Medium - Normal priority.
- Votes
- 0
- Component
- Recount