User
Pass
2FA
 
 

Recount - Pet battles cause recount to open

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Addons - Help / Support
Author Message394
Zaranthos

[Mentally Stable]



Status: Offline
(since 18-09-2023 21:28)
Joined: 10 Jan 2019
Posts: 80, Topics: 51
Location: United States

Reputation: 52.7

 
Post Posted: 10-01-2019, 06:03:56 | Translate post to: ... (Click for more languages)

Modify GUI_Main.lua to prevent recount opening when starting and finishing a pet battle.

Add this code:
Code:

    Recount:RegisterEvent("PET_BATTLE_OPENING_START", function() Recount.MainWindow:Hide(); end)
    Recount:RegisterEvent("PET_BATTLE_CLOSE", function() Recount.MainWindow:Show(); end


So this section looks like this. This will just suppress recount windows pop-ups during and after pet battles.
Code:

    --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


Source:
https://www.wowace.com/projects/recount/issues/1040

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Addons - Help / Support  


The time now is 03-12-2024, 07:09:15
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password