- Fixed the latest raid check update.
- Added NpcID storage.
This commit is contained in:
+86
-4
@@ -2991,7 +2991,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
if (not have_plugins_enabled) then
|
||||
if (not have_plugins_enabled and false) then
|
||||
local nopluginLabel = f:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local nopluginIcon = f:CreateTexture (nil, "overlay")
|
||||
nopluginIcon:SetPoint ("bottomleft", f, "bottomleft", 10, 10)
|
||||
@@ -3595,6 +3595,87 @@
|
||||
}
|
||||
|
||||
|
||||
-----------------------------------------------
|
||||
|
||||
local npc_ids_module = {
|
||||
name = "Npc IDs",
|
||||
desc = "Show a list of known npc IDs",
|
||||
filters_widgets = function()
|
||||
if (not DetailsForgeEncounterNpcIDsFilterPanel) then
|
||||
|
||||
local w = CreateFrame ("frame", "DetailsForgeEncounterNpcIDsFilterPanel", f)
|
||||
w:SetSize (600, 20)
|
||||
w:SetPoint ("topleft", f, "topleft", 164, -40)
|
||||
--npc name filter
|
||||
local label = w:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText ("Npc Name" .. ": ")
|
||||
label:SetPoint ("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeEncounterNpcIDsFilter")
|
||||
entry:SetHook ("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint ("left", label, "right", 2, 0)
|
||||
entry:SetTemplate (_detalhes.gump:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
--
|
||||
end
|
||||
return DetailsForgeEncounterNpcIDsFilterPanel
|
||||
end,
|
||||
search = function()
|
||||
local t = {}
|
||||
|
||||
local filter_name = DetailsForgeEncounterNpcIDsFilter:GetText()
|
||||
local lower_FilterNpcName = lower (filter_name)
|
||||
|
||||
local npcPool = _detalhes.npcid_pool
|
||||
for npcID, npcName in pairs (npcPool) do
|
||||
local can_add = true
|
||||
|
||||
if (lower_FilterNpcName ~= "") then
|
||||
if (not lower (npcName):find (lower_FilterNpcName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
|
||||
if (can_add) then
|
||||
tinsert (t, {npcID, npcName})
|
||||
end
|
||||
|
||||
table.sort (t, DetailsFramework.SortOrder2R)
|
||||
end
|
||||
|
||||
return t
|
||||
end,
|
||||
|
||||
header = {
|
||||
{name = L["STRING_FORGE_HEADER_INDEX"], width = 40, type = "text", func = no_func},
|
||||
{name = "NpcID", width = 100, type = "entry", func = no_func},
|
||||
{name = "Npc Name", width = 200, type = "entry", func = no_func},
|
||||
},
|
||||
|
||||
fill_panel = false,
|
||||
fill_gettotal = function (self) return #self.module.data end,
|
||||
fill_fillrows = function (index, self)
|
||||
local data = self.module.data [index]
|
||||
if (data) then
|
||||
local events = ""
|
||||
if (EncounterSpellEvents and EncounterSpellEvents [data[1]]) then
|
||||
for token, _ in pairs (EncounterSpellEvents [data[1]].token) do
|
||||
token = token:gsub ("SPELL_", "")
|
||||
events = events .. token .. ", "
|
||||
end
|
||||
events = events:sub (1, #events - 3)
|
||||
end
|
||||
|
||||
return {
|
||||
index,
|
||||
data[1],
|
||||
data[2]
|
||||
}
|
||||
else
|
||||
return nothing_to_show
|
||||
end
|
||||
end,
|
||||
fill_name = "DetailsForgeNpcIDsFillPanel",
|
||||
}
|
||||
|
||||
-----------------------------------------------
|
||||
|
||||
local dbm_open_aura_creator = function (row)
|
||||
@@ -3723,7 +3804,6 @@
|
||||
end,
|
||||
fill_name = "DetailsForgeDBMBarsFillPanel",
|
||||
}
|
||||
|
||||
|
||||
-----------------------------------------------
|
||||
|
||||
@@ -3921,6 +4001,8 @@
|
||||
f:InstallModule (encounter_spells_module)
|
||||
f:InstallModule (all_spells_module)
|
||||
|
||||
f:InstallModule (npc_ids_module)
|
||||
|
||||
f:InstallModule (dbm_timers_module)
|
||||
f:InstallModule (bigwigs_timers_module)
|
||||
|
||||
@@ -3929,8 +4011,8 @@
|
||||
f:InstallModule (all_pets_module)
|
||||
|
||||
local brackets = {
|
||||
[3] = true,
|
||||
[5] = true
|
||||
[4] = true,
|
||||
[6] = true
|
||||
}
|
||||
local lastButton
|
||||
|
||||
|
||||
@@ -1312,6 +1312,7 @@ local default_global_data = {
|
||||
},
|
||||
spell_pool = {},
|
||||
encounter_spell_pool = {},
|
||||
npcid_pool = {},
|
||||
|
||||
--> aura creation frame libwindow
|
||||
createauraframe = {},
|
||||
|
||||
+17
-17
@@ -165,8 +165,8 @@ local _
|
||||
["start_after_icon"] = true,
|
||||
["font_face_file"] = "Fonts\\ARIALN.TTF",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["font_size"] = 14,
|
||||
["height"] = 18,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar4",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["textR_bracket"] = "(",
|
||||
@@ -430,8 +430,8 @@ local _
|
||||
["start_after_icon"] = true,
|
||||
["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["font_size"] = 14,
|
||||
["height"] = 17,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\BantoBar",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["textR_bracket"] = "(",
|
||||
@@ -576,8 +576,8 @@ local _
|
||||
["start_after_icon"] = true,
|
||||
["font_face_file"] = "Fonts\\ARIALN.TTF",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["font_size"] = 12,
|
||||
["height"] = 18,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_serenity",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["textR_bracket"] = "(",
|
||||
@@ -863,12 +863,12 @@ local _
|
||||
["lower_alpha"] = 0.1,
|
||||
["upper_enabled"] = false,
|
||||
},
|
||||
["height"] = 20,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_background",
|
||||
["textR_bracket"] = "[",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["icon_grayscale"] = false,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["use_spec_icons"] = true,
|
||||
["texture_custom"] = "",
|
||||
["backdrop"] = {
|
||||
@@ -1248,11 +1248,11 @@ local _
|
||||
["textR_class_colors"] = false,
|
||||
["alpha"] = 1,
|
||||
["no_icon"] = false,
|
||||
["font_size"] = 14,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_background"] = "Details Serenity",
|
||||
["font_face"] = "FORCED SQUARE",
|
||||
["texture_class_colors"] = true,
|
||||
["height"] = 18,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar4",
|
||||
["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight",
|
||||
["percent_type"] = 1,
|
||||
@@ -1546,8 +1546,8 @@ local _
|
||||
["start_after_icon"] = true,
|
||||
["font_face_file"] = "Interface\\Addons\\Details\\fonts\\FORCED SQUARE.ttf",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["font_size"] = 14,
|
||||
["height"] = 18,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar4",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["textR_bracket"] = "[",
|
||||
@@ -1768,11 +1768,11 @@ local _
|
||||
["texture_background"] = "BantoBar",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["no_icon"] = false,
|
||||
["font_size"] = 14,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["textL_class_colors"] = false,
|
||||
["font_face"] = "FORCED SQUARE",
|
||||
["texture_class_colors"] = true,
|
||||
["height"] = 18,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_background",
|
||||
["textL_show_number"] = true,
|
||||
["fixed_texture_color"] = {0.862745098039216,0.862745098039216,0.862745098039216,1},
|
||||
@@ -2044,8 +2044,8 @@ local _
|
||||
["start_after_icon"] = false,
|
||||
["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf",
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["font_size"] = 14,
|
||||
["height"] = 18,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_background",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha",
|
||||
["textR_bracket"] = "(",
|
||||
@@ -2248,8 +2248,8 @@ local _
|
||||
},
|
||||
["texture"] = "Details BarBorder 2",
|
||||
},
|
||||
["font_size"] = 10,
|
||||
["height"] = 14,
|
||||
["font_size"] = 16,
|
||||
["height"] = 21,
|
||||
["texture_file"] = "Interface\\RaidFrame\\Raid-Bar-Hp-Fill",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["textR_bracket"] = "(",
|
||||
|
||||
Reference in New Issue
Block a user