Add Clear Logs to log menu and fix a bug with Toggle.

Reorder GP price list by itemID for easier comparison with future changes.
This commit is contained in:
Road-block
2017-08-11 04:08:55 +03:00
parent 457c95e3d3
commit 6b10d1130e
4 changed files with 655 additions and 653 deletions
+5 -3
View File
@@ -22,6 +22,11 @@ function sepgp_logs:OnEnable()
"tooltipText", "Refresh window",
"func", function() sepgp_logs:Refresh() end
)
D:AddLine(
"text", "Clear",
"tooltipText", "Clear Logs.",
"func", function() sepgp_log = {} sepgp_logs:Refresh() end
)
end
)
end
@@ -65,9 +70,6 @@ function sepgp_logs:Toggle(forceShow)
elseif (forceShow) then
else
T:Attach("sepgp_logs")
if GameTooltip:IsOwned(self.tipOwner) and GameTooltip:IsShown() then
GameTooltip:Hide()
end
end
end
+646 -646
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -383,7 +383,7 @@ local T = AceLibrary("Tablet-2.0")
sepgp.defaultMinimapPosition = 180
sepgp.cannotDetachTooltip = true
sepgp.tooltipHidderWhenEmpty = false
sepgp.tooltipHiddenWhenEmpty = false
sepgp.hasIcon = "Interface\\Icons\\INV_Misc_Orb_04"
function sepgp:OnTooltipUpdate()
@@ -1018,8 +1018,8 @@ StaticPopupDialogs["SHOOTY_EPGP_RESERVE_AFKCHECK_RESPONCE"] = {
hideOnEscape = 1
}
StaticPopupDialogs["SHOOTY_EPGP_CONFIRM_RESET_GP"] = {
text = "Are you sure you want to Reset ALL GP?",
button1 = "|cffff0000"..TEXT(OKAY).."|r",
text = "|cffff0000Are you sure you want to Reset ALL GP?|r",
button1 = TEXT(OKAY),
button2 = TEXT(CANCEL),
OnAccept = function()
sepgp:gp_reset()
+1 -1
View File
@@ -3,7 +3,7 @@
## Notes: Effort Points/Gear Points Loot System
## Author: Roadblock
## X-Credits: shooty for original version
## Version: 2.2
## Version: 2.21
## OptionalDeps: Ace2
## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount
## SavedVariablesPerCharacter: sepgp_log