Fixes for outlier GP prices across all items, emphasis on T1 and Dragons, fixes to GP scaling.

Standings list (for members) and other lists (for admins) can now be dismissed with Esc.
Add log window for admins.
Better permission checking, confirmation dialog for some important actions.
Fix Bid detection regex false positives eg.[Elixir of Mongoose].
Remove a bunch of menus and windows for members that they never use.
This commit is contained in:
Road-block
2017-08-11 03:10:26 +03:00
parent fc91116946
commit 457c95e3d3
7 changed files with 673 additions and 520 deletions
+18
View File
@@ -40,12 +40,30 @@ function sepgp_bids:Refresh()
T:Refresh("sepgp_bids")
end
function sepgp_bids:setHideScript()
local detachedFrame, tablet
for i=1,4 do
tablet = getglobal(string.format("Tablet20DetachedFrame%d",1))
if tablet and tablet.owner ~= nil and tablet.owner == "sepgp_bids" then
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
end
end
end
function sepgp_bids:Toggle(forceShow)
if T:IsAttached("sepgp_bids") then
T:Detach("sepgp_bids")
if (T:IsLocked("sepgp_bids")) then
T:ToggleLocked("sepgp_bids")
end
self:setHideScript()
--[[if not (sepgp:IsEventScheduled("shootyepgpBidRefresh")) then
sepgp:ScheduleRepeatingEvent("shootyepgpBidRefresh", self.Refresh, 5, self)
end]]