Resolve some shootyepgp staticpopup issues caused by LazyPig.

Fix a bug with tablets becoming unresponsive when using a combination of clicks and ESC to toggle with multiple tablets open.
More improvements to initial loading logic, to avoid issues with cold login in an existing raid (eg. after crash)
Improve detection of admin status for command-line options as well ensure tablets modified by chat commands update in real time (eg. clear loot, logs)
This commit is contained in:
Road-block
2018-05-21 15:49:19 +03:00
parent 27e8e53eac
commit 0e42d616aa
8 changed files with 101 additions and 92 deletions
+12 -11
View File
@@ -45,14 +45,13 @@ function sepgp_bids:setHideScript()
while (tablet) and i<100 do
if tablet.owner ~= nil and tablet.owner == "sepgp_bids" then
sepgp:make_escable(string.format("Tablet20DetachedFrame%d",i),"add")
if not (tablet:GetScript("OnHide")) then
tablet:SetScript("OnHide",function()
if not T:IsAttached("sepgp_bids") then
T:Attach("sepgp_bids")
this:SetScript("OnHide",nil)
end
end)
end
tablet:SetScript("OnHide",nil)
tablet:SetScript("OnHide",function()
if not T:IsAttached("sepgp_bids") then
T:Attach("sepgp_bids")
this:SetScript("OnHide",nil)
end
end)
break
end
i = i+1
@@ -74,10 +73,12 @@ function sepgp_bids:Toggle(forceShow)
T:ToggleLocked("sepgp_bids")
end
self:setHideScript()
elseif (forceShow) then
sepgp_bids:Refresh()
else
T:Attach("sepgp_bids") -- hide
if (forceShow) then
sepgp_bids:Refresh()
else
T:Attach("sepgp_bids") -- hide
end
end
end