framework update; added /dumpt to dump tables
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
local Details = _G.Details
|
||||
local AceLocale = LibStub("AceLocale-3.0")
|
||||
local L = AceLocale:GetLocale("Details")
|
||||
|
||||
function Details.RegisterDragonFlightEditMode()
|
||||
if (EventRegistry and type(EventRegistry) == "table") then
|
||||
local onEnterEditMode = function()
|
||||
|
||||
end
|
||||
|
||||
local onLeaveEditMode = function()
|
||||
|
||||
end
|
||||
EventRegistry:RegisterCallback("EditMode.Enter", onEnterEditMode)
|
||||
EventRegistry:RegisterCallback("EditMode.Edit", onLeaveEditMode)
|
||||
end
|
||||
end
|
||||
@@ -920,10 +920,10 @@ local default_profile = {
|
||||
clear_ungrouped = true,
|
||||
|
||||
--> if clear graphic data when logout
|
||||
clear_graphic = true,
|
||||
clear_graphic = true,
|
||||
|
||||
--> item level tracker
|
||||
track_item_level = true,
|
||||
track_item_level = false,
|
||||
|
||||
--> text settings
|
||||
font_sizes = {menus = 10},
|
||||
|
||||
@@ -11,6 +11,13 @@ local UnitGUID = UnitGUID
|
||||
local tonumber= tonumber
|
||||
local LoggingCombat = LoggingCombat
|
||||
|
||||
SLASH_DUMPTABLE1 = "/dumpt"
|
||||
function SlashCmdList.DUMPTABLE(msg, editbox)
|
||||
local result = "return function() return " .. msg .. " end"
|
||||
local extractValue = loadstring(result)
|
||||
return Details:Dump(extractValue()())
|
||||
end
|
||||
|
||||
SLASH_DETAILS1, SLASH_DETAILS2, SLASH_DETAILS3 = "/details", "/dt", "/de"
|
||||
|
||||
function SlashCmdList.DETAILS (msg, editbox)
|
||||
|
||||
Reference in New Issue
Block a user