More bug fixes
This commit is contained in:
+13
-13
@@ -100,7 +100,7 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
|
||||
local BaseTexture = DetailsNewDamageRecord:CreateTexture("BaseTextureTexture", "ARTWORK")
|
||||
BaseTexture:SetTexture([[Interface\ACHIEVEMENTFRAME\UI-Achievement-Alert-Background-Mini]])
|
||||
BaseTexture:SetDrawLayer ("ARTWORK", -5)
|
||||
BaseTexture:SetDrawLayer("ARTWORK", -5)
|
||||
BaseTexture:SetPoint("center", DetailsNewDamageRecord, "center", 0, 0)
|
||||
BaseTexture:SetSize(256, 64)
|
||||
BaseTexture:SetVertexColor(0.99999779462814, 0.99999779462814, 0.99999779462814, 0.99999779462814)
|
||||
@@ -128,11 +128,11 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
|
||||
local BigFlash = DetailsNewDamageRecord:CreateTexture("BigFlashTexture", "OVERLAY")
|
||||
BigFlash:SetTexture([[Interface\ACHIEVEMENTFRAME\UI-Achievement-Alert-Glow]])
|
||||
BigFlash:SetDrawLayer ("OVERLAY", 0)
|
||||
BigFlash:SetDrawLayer("OVERLAY", 0)
|
||||
BigFlash:SetPoint("center", DetailsNewDamageRecord, "center", -2, 2)
|
||||
BigFlash:SetSize(314, 100)
|
||||
BigFlash:SetDesaturated(false)
|
||||
BigFlash:SetTexCoord (0.0010000000149012, 0.77400001525879, 0.0010000000149012, 0.65800003051758)
|
||||
BigFlash:SetTexCoord(0.0010000000149012, 0.77400001525879, 0.0010000000149012, 0.65800003051758)
|
||||
if (0 ~= 0) then
|
||||
BigFlash:SetRotation (0)
|
||||
end
|
||||
@@ -163,11 +163,11 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
|
||||
local FlashSwipe = DetailsNewDamageRecord:CreateTexture("FlashSwipeTexture", "OVERLAY")
|
||||
FlashSwipe:SetTexture([[Interface\ACHIEVEMENTFRAME\UI-Achievement-Alert-Glow]])
|
||||
FlashSwipe:SetDrawLayer ("OVERLAY", 7)
|
||||
FlashSwipe:SetDrawLayer("OVERLAY", 7)
|
||||
FlashSwipe:SetPoint("center", DetailsNewDamageRecord, "center", -99, 0)
|
||||
FlashSwipe:SetSize(100, 57)
|
||||
FlashSwipe:SetDesaturated(false)
|
||||
FlashSwipe:SetTexCoord (0.78199996948242, 0.91900001525879, 0.0010000000149012, 0.2760000038147)
|
||||
FlashSwipe:SetTexCoord(0.78199996948242, 0.91900001525879, 0.0010000000149012, 0.2760000038147)
|
||||
if (0 ~= 0) then
|
||||
FlashSwipe:SetRotation (0)
|
||||
end
|
||||
@@ -205,11 +205,11 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
|
||||
local Portrait = DetailsNewDamageRecord:CreateTexture("PortraitTexture", "OVERLAY")
|
||||
Portrait:SetTexture([[Interface\ARCHEOLOGY\ARCH-FLAREEFFECT]])
|
||||
Portrait:SetDrawLayer ("OVERLAY", -5)
|
||||
Portrait:SetDrawLayer("OVERLAY", -5)
|
||||
Portrait:SetPoint("center", DetailsNewDamageRecord, "center", 3, 0)
|
||||
Portrait:SetSize(246, 44)
|
||||
Portrait:SetDesaturated(false)
|
||||
Portrait:SetTexCoord (0.051753740310669, 0.81701484680176, 0.086334381103516, 0.25102617263794)
|
||||
Portrait:SetTexCoord(0.051753740310669, 0.81701484680176, 0.086334381103516, 0.25102617263794)
|
||||
if (0 ~= 0) then
|
||||
Portrait:SetRotation (0)
|
||||
end
|
||||
@@ -256,11 +256,11 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
|
||||
local DamageIcon = DetailsNewDamageRecord:CreateTexture("DamageIconTexture", "OVERLAY")
|
||||
DamageIcon:SetTexture([[Interface\LFGFRAME\UI-LFG-ICON-ROLES]])
|
||||
DamageIcon:SetDrawLayer ("OVERLAY", 2)
|
||||
DamageIcon:SetDrawLayer("OVERLAY", 2)
|
||||
DamageIcon:SetPoint("center", DetailsNewDamageRecord, "center", -97, 1)
|
||||
DamageIcon:SetSize(32, 32)
|
||||
DamageIcon:SetDesaturated(false)
|
||||
DamageIcon:SetTexCoord (0.27200000762939, 0.51899997711182, 0.25837841033936, 0.51399997711182)
|
||||
DamageIcon:SetTexCoord(0.27200000762939, 0.51899997711182, 0.25837841033936, 0.51399997711182)
|
||||
if (0 ~= 0) then
|
||||
DamageIcon:SetRotation (0)
|
||||
end
|
||||
@@ -292,10 +292,10 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
local NewDamageRecord = DetailsNewDamageRecord:CreateFontString("NewDamageRecordFontString", "OVERLAY")
|
||||
NewDamageRecord:SetFont ([=[Fonts\FRIZQT__.TTF]=], 12, "OUTLINE")
|
||||
NewDamageRecord:SetText("Damage Record!")
|
||||
NewDamageRecord:SetDrawLayer ("OVERLAY", 0)
|
||||
NewDamageRecord:SetDrawLayer("OVERLAY", 0)
|
||||
NewDamageRecord:SetPoint("center", DetailsNewDamageRecord, "center", 18, 7)
|
||||
NewDamageRecord:SetSize(181, 20)
|
||||
NewDamageRecord:SetTextColor (1, 1, 1)
|
||||
NewDamageRecord:SetTextColor(1, 1, 1)
|
||||
NewDamageRecord:SetAlpha(1)
|
||||
NewDamageRecord:SetJustifyH("CENTER")
|
||||
|
||||
@@ -331,10 +331,10 @@ function _detalhes.PlayBestDamageOnGuild (damage)
|
||||
local DamageAmount = DetailsNewDamageRecord:CreateFontString("DamageAmountFontString", "OVERLAY")
|
||||
DamageAmount:SetFont ([=[Fonts\FRIZQT__.TTF]=], 12, "THICKOUTLINE")
|
||||
DamageAmount:SetText(_detalhes:comma_value (damage))
|
||||
DamageAmount:SetDrawLayer ("OVERLAY", 0)
|
||||
DamageAmount:SetDrawLayer("OVERLAY", 0)
|
||||
DamageAmount:SetPoint("center", DetailsNewDamageRecord, "center", 18, -7)
|
||||
DamageAmount:SetSize(100, 20)
|
||||
DamageAmount:SetTextColor (1, 1, 1)
|
||||
DamageAmount:SetTextColor(1, 1, 1)
|
||||
DamageAmount:SetAlpha(1)
|
||||
DamageAmount:SetJustifyH("CENTER")
|
||||
|
||||
|
||||
+15
-15
@@ -28,7 +28,7 @@ function gump:NewLabel2 (parent, container, member, text, font, size, color)
|
||||
end
|
||||
|
||||
if (color) then
|
||||
newFontString:SetTextColor (unpack(color))
|
||||
newFontString:SetTextColor(unpack(color))
|
||||
end
|
||||
|
||||
newFontString:SetJustifyH("LEFT")
|
||||
@@ -124,7 +124,7 @@ function gump:NewDetailsButton (parent, container, instancia, func, param1, para
|
||||
end
|
||||
|
||||
if (new_button.texture) then
|
||||
new_button.texture:SetTexCoord (0, 1, 0.5, 0.74609375)
|
||||
new_button.texture:SetTexCoord(0, 1, 0.5, 0.74609375)
|
||||
end
|
||||
|
||||
if (options.OnGrab and options.OnGrab == "PassClick") then
|
||||
@@ -157,9 +157,9 @@ function gump:NewDetailsButton (parent, container, instancia, func, param1, para
|
||||
|
||||
if (new_button.texture) then
|
||||
if (new_button.enter) then
|
||||
new_button.texture:SetTexCoord (0, 1, 0.25, 0.49609375)
|
||||
new_button.texture:SetTexCoord(0, 1, 0.25, 0.49609375)
|
||||
else
|
||||
new_button.texture:SetTexCoord (0, 1, 0, 0.24609375)
|
||||
new_button.texture:SetTexCoord(0, 1, 0, 0.24609375)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -195,7 +195,7 @@ function gump:NewDetailsButton (parent, container, instancia, func, param1, para
|
||||
end
|
||||
|
||||
if (new_button.texture) then
|
||||
new_button.texture:SetTexCoord (0, 1, 0.25+(0.0078125/2), 0.5+(0.0078125/2))
|
||||
new_button.texture:SetTexCoord(0, 1, 0.25+(0.0078125/2), 0.5+(0.0078125/2))
|
||||
end
|
||||
|
||||
if (new_button.MouseOnEnterHook) then
|
||||
@@ -212,7 +212,7 @@ function gump:NewDetailsButton (parent, container, instancia, func, param1, para
|
||||
end
|
||||
|
||||
if (new_button.texture) then
|
||||
new_button.texture:SetTexCoord (0, 1, 0, 0.24609375)
|
||||
new_button.texture:SetTexCoord(0, 1, 0, 0.24609375)
|
||||
end
|
||||
|
||||
if (new_button.MouseOnLeaveHook) then
|
||||
@@ -242,7 +242,7 @@ function gump:NewDetailsButton (parent, container, instancia, func, param1, para
|
||||
new_button.texture:SetPoint("bottomright", new_button, "bottomright", rect.x2, rect.y2)
|
||||
end
|
||||
|
||||
new_button.texture:SetTexCoord (0, 1, 0, 0.24609375)
|
||||
new_button.texture:SetTexCoord(0, 1, 0, 0.24609375)
|
||||
new_button.texture:SetTexture(texture)
|
||||
end
|
||||
|
||||
@@ -264,8 +264,8 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
container [member] = editbox
|
||||
options = options or {}
|
||||
|
||||
editbox:SetAutoFocus (false)
|
||||
editbox:SetFontObject (GameFontHighlightSmall)
|
||||
editbox:SetAutoFocus(false)
|
||||
editbox:SetFontObject(GameFontHighlightSmall)
|
||||
|
||||
editbox:SetWidth(w)
|
||||
editbox:SetHeight(h)
|
||||
@@ -286,7 +286,7 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
|
||||
gump:NewLabel(editbox, editbox, nil, "label", "", "GameFontHighlightSmall")
|
||||
editbox ["label"]: SetPoint ("right", editbox, "left", -2, 0)
|
||||
editbox.label:SetTextColor (.8, .8, .8, 1)
|
||||
editbox.label:SetTextColor(.8, .8, .8, 1)
|
||||
|
||||
function editbox:SetPointAndSpace (MyAnchor, SnapTo, HisAnchor, x, y, Width)
|
||||
|
||||
@@ -348,7 +348,7 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
end
|
||||
end
|
||||
|
||||
function editbox:PressEnter (byScript)
|
||||
function editbox:PressEnter(byScript)
|
||||
EnterPress (byScript)
|
||||
end
|
||||
|
||||
@@ -410,7 +410,7 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
|
||||
editbox:SetScript("OnEditFocusGained", function()
|
||||
if (editbox.label) then
|
||||
editbox.label:SetTextColor (1, 1, 1, 1)
|
||||
editbox.label:SetTextColor(1, 1, 1, 1)
|
||||
end
|
||||
if (editbox.OnFocusGainedHook) then
|
||||
editbox.OnFocusGainedHook()
|
||||
@@ -435,7 +435,7 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
end
|
||||
|
||||
if (editbox.label) then
|
||||
editbox.label:SetTextColor (.8, .8, .8, 1)
|
||||
editbox.label:SetTextColor(.8, .8, .8, 1)
|
||||
end
|
||||
|
||||
if (editbox.OnFocusLostHook) then
|
||||
@@ -472,12 +472,12 @@ function gump:NewTextBox (parent, container, member, func, param1, param2, w, h,
|
||||
editbox.SetLabel = function(_, Label)
|
||||
if (Label) then
|
||||
editbox.label = Label
|
||||
editbox.label:SetTextColor (.8, .8, .8, 1)
|
||||
editbox.label:SetTextColor(.8, .8, .8, 1)
|
||||
end
|
||||
end
|
||||
|
||||
function editbox:Blink()
|
||||
editbox.label:SetTextColor (1, .2, .2, 1)
|
||||
editbox.label:SetTextColor(1, .2, .2, 1)
|
||||
end
|
||||
|
||||
if (options.Label) then
|
||||
|
||||
@@ -67,13 +67,13 @@ function Details:CreateAPI2Frame()
|
||||
parameters = parameters .. parameterInfo.name .. ", "
|
||||
end
|
||||
end
|
||||
parameters = parameters:gsub (", $", "")
|
||||
parameters = parameters:gsub(", $", "")
|
||||
|
||||
local returnValues = "local "
|
||||
for returnIndex, returnInfo in ipairs(apiInfo.returnValues) do
|
||||
returnValues = returnValues .. returnInfo.name .. ", "
|
||||
end
|
||||
returnValues = returnValues:gsub (", $", "")
|
||||
returnValues = returnValues:gsub(", $", "")
|
||||
returnValues = returnValues .. " = "
|
||||
|
||||
if (parameters ~= "") then
|
||||
@@ -82,7 +82,7 @@ function Details:CreateAPI2Frame()
|
||||
Api2Frame.ApiCopy.text = returnValues .. "Details." .. apiName .. "()"
|
||||
end
|
||||
|
||||
Api2Frame.ApiCopy:SetFocus (true)
|
||||
Api2Frame.ApiCopy:SetFocus(true)
|
||||
Api2Frame.ApiCopy:HighlightText()
|
||||
|
||||
--parameters
|
||||
@@ -219,7 +219,7 @@ function Details:CreateAPI2Frame()
|
||||
--api func to copy
|
||||
local apiCopyString = DetailsFramework:CreateLabel(Api2Frame, "Copy String", 12, "orange")
|
||||
apiCopyString:SetPoint("topleft", Api2Frame.ApiFunctionDesc, "bottomleft", 0, -20)
|
||||
Api2Frame.ApiCopy = DetailsFramework:CreateTextEntry (Api2Frame, function() end, infoWidth, 20)
|
||||
Api2Frame.ApiCopy = DetailsFramework:CreateTextEntry(Api2Frame, function() end, infoWidth, 20)
|
||||
Api2Frame.ApiCopy:SetPoint("topleft", apiCopyString, "bottomleft", 0, -2)
|
||||
Api2Frame.ApiCopy:SetTemplate(DetailsFramework:GetTemplate("button", "DETAILS_CUSTOMDISPLAY_CODE_BOX"))
|
||||
|
||||
|
||||
@@ -49,16 +49,16 @@ local libwindow = LibStub("LibWindow-1.1")
|
||||
f.Close:SetNormalTexture(_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetHighlightTexture(_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetPushedTexture(_detalhes.gump.folder .. "icons")
|
||||
f.Close:GetNormalTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetHighlightTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetPushedTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetNormalTexture():SetTexCoord(0, 16/128, 0, 1)
|
||||
f.Close:GetHighlightTexture():SetTexCoord(0, 16/128, 0, 1)
|
||||
f.Close:GetPushedTexture():SetTexCoord(0, 16/128, 0, 1)
|
||||
f.Close:SetAlpha(0.7)
|
||||
f.Close:SetScript("OnClick", function() f:Hide() end)
|
||||
|
||||
--title
|
||||
f.Title = f.TitleBar:CreateFontString("$parentTitle", "overlay", "GameFontNormal")
|
||||
f.Title:SetPoint("center", f.TitleBar, "center")
|
||||
f.Title:SetTextColor (.8, .8, .8, 1)
|
||||
f.Title:SetTextColor(.8, .8, .8, 1)
|
||||
f.Title:SetText("Details! Benchmark")
|
||||
|
||||
DF:InstallTemplate ("font", "DETAILS_BENCHMARK_NORMAL", {color = "white", size = 10, font = "Friz Quadrata TT"})
|
||||
@@ -151,7 +151,7 @@ local libwindow = LibStub("LibWindow-1.1")
|
||||
|
||||
--description string and text entry
|
||||
summaryFrame.DescriptionLabel = DF:CreateLabel(summaryFrame, "Description", normal_text_template)
|
||||
summaryFrame.DescriptionEntry = DF:CreateTextEntry (summaryFrame, function()end, 120, 20, nil, _, nil, options_dropdown_template)
|
||||
summaryFrame.DescriptionEntry = DF:CreateTextEntry(summaryFrame, function()end, 120, 20, nil, _, nil, options_dropdown_template)
|
||||
|
||||
--DPS Amount string
|
||||
summaryFrame.DPSLabel = DF:CreateLabel(summaryFrame, "100K", normal_text_template)
|
||||
|
||||
@@ -213,7 +213,7 @@ function Details:OpenBrokerTextEditor()
|
||||
|
||||
local panel = DetailsWindowOptionsBrokerTextEditor
|
||||
|
||||
local text = Details.data_broker_text:gsub ("||", "|")
|
||||
local text = Details.data_broker_text:gsub("||", "|")
|
||||
panel.default_text = text
|
||||
panel.editbox:SetText(text)
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ do
|
||||
end
|
||||
end)
|
||||
|
||||
DetailsFrameWork:NewImage (panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "overlay", nil, "background", "$parentBackGround")
|
||||
DetailsFrameWork:NewImage(panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "overlay", nil, "background", "$parentBackGround")
|
||||
panel.background:SetPoint(0, -25)
|
||||
|
||||
--title
|
||||
|
||||
@@ -489,11 +489,11 @@ function Details:CreateCurrentDpsFrame(parent, name)
|
||||
yellow_team_color = Details.class_colors.ARENA_YELLOW
|
||||
|
||||
if (f.PlayerTeam == 0) then
|
||||
labelPlayerTeam:SetTextColor (unpack(yellow_team_color))
|
||||
labelYellowTeam:SetTextColor (unpack(green_team_color))
|
||||
labelPlayerTeam:SetTextColor(unpack(yellow_team_color))
|
||||
labelYellowTeam:SetTextColor(unpack(green_team_color))
|
||||
else
|
||||
labelPlayerTeam:SetTextColor (unpack(green_team_color))
|
||||
labelYellowTeam:SetTextColor (unpack(yellow_team_color))
|
||||
labelPlayerTeam:SetTextColor(unpack(green_team_color))
|
||||
labelYellowTeam:SetTextColor(unpack(yellow_team_color))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
+48
-48
@@ -475,7 +475,7 @@
|
||||
object.attribute = DetailsCustomPanel.current_attribute
|
||||
object.source = source
|
||||
object.target = target
|
||||
object.spellid = tonumber (spellid)
|
||||
object.spellid = tonumber(spellid)
|
||||
object.script = false
|
||||
object.tooltip = false
|
||||
|
||||
@@ -502,7 +502,7 @@
|
||||
["attribute"] = DetailsCustomPanel.current_attribute,
|
||||
["source"] = source,
|
||||
["target"] = target,
|
||||
["spellid"] = tonumber (spellid),
|
||||
["spellid"] = tonumber(spellid),
|
||||
["script"] = false,
|
||||
["tooltip"] = false,
|
||||
}
|
||||
@@ -826,7 +826,7 @@
|
||||
if (not custom_window.ExportBox) then
|
||||
local editbox = _detalhes.gump:NewTextEntry(custom_window, nil, "$parentExportBox", "ExportBox", CONST_EDITBOX_WIDTH, 20)
|
||||
editbox:SetPoint("bottomleft", custom_window, "bottomleft", 10, 6)
|
||||
editbox:SetAutoFocus (false)
|
||||
editbox:SetAutoFocus(false)
|
||||
editbox:SetTemplate(CONST_TEXTENTRY_TEMPLATE)
|
||||
editbox:SetHook("OnEditFocusLost", function()
|
||||
editbox:Hide()
|
||||
@@ -836,7 +836,7 @@
|
||||
end)
|
||||
|
||||
local flashTexture = editbox:CreateTexture(nil, "overlay")
|
||||
flashTexture:SetColorTexture (1, 1, 1)
|
||||
flashTexture:SetColorTexture(1, 1, 1)
|
||||
flashTexture:SetAllPoints()
|
||||
flashTexture:SetAlpha(0)
|
||||
|
||||
@@ -873,7 +873,7 @@
|
||||
|
||||
local editbox = _detalhes.gump:NewTextEntry(custom_window, nil, "$parentImportBox", "ImportBox", CONST_EDITBOX_WIDTH - export_string.width - CONST_EDITBOX_BUTTON_WIDTH - 4, 20)
|
||||
editbox:SetPoint("left", export_string, "right", 2, 0)
|
||||
editbox:SetAutoFocus (false)
|
||||
editbox:SetAutoFocus(false)
|
||||
editbox:SetTemplate(CONST_TEXTENTRY_TEMPLATE)
|
||||
|
||||
local import = function()
|
||||
@@ -964,21 +964,21 @@
|
||||
selected_left:SetTexture([[Interface\Store\Store-Main]])
|
||||
selected_left:SetSize(50, 20)
|
||||
selected_left:SetVertexColor(1, .8, 0, 1)
|
||||
selected_left:SetTexCoord (960/1024, 1020/1024, 68/1024, 101/1024)
|
||||
selected_left:SetTexCoord(960/1024, 1020/1024, 68/1024, 101/1024)
|
||||
custom_window.selected_left = selected_left
|
||||
|
||||
local selected_right = attribute_box:CreateTexture(nil, "overlay")
|
||||
selected_right:SetTexture([[Interface\Store\Store-Main]])
|
||||
selected_right:SetSize(31, 20)
|
||||
selected_right:SetVertexColor(1, .8, 0, 1)
|
||||
selected_right:SetTexCoord (270/1024, 311/1024, 873/1024, 906/1024)
|
||||
selected_right:SetTexCoord(270/1024, 311/1024, 873/1024, 906/1024)
|
||||
custom_window.selected_right = selected_right
|
||||
|
||||
local selected_center = attribute_box:CreateTexture(nil, "overlay")
|
||||
selected_center:SetTexture([[Interface\Store\Store-Main]])
|
||||
selected_center:SetSize(49, 20)
|
||||
selected_center:SetVertexColor(1, .8, 0, 1)
|
||||
selected_center:SetTexCoord (956/1024, 1004/1024, 164/1024, 197/1024)
|
||||
selected_center:SetTexCoord(956/1024, 1004/1024, 164/1024, 197/1024)
|
||||
|
||||
selected_center:SetPoint("left", selected_left, "right")
|
||||
selected_center:SetPoint("right", selected_right, "left")
|
||||
@@ -1012,12 +1012,12 @@
|
||||
button.icon:SetPoint("left", button, "left", 6, 0)
|
||||
button.icon:SetSize(22, 22)
|
||||
button.icon:SetTexture([[Interface\AddOns\Details\images\custom_icones]])
|
||||
button.icon:SetTexCoord (p*(i-1), p*(i), 0, 1)
|
||||
button.icon:SetTexCoord(p*(i-1), p*(i), 0, 1)
|
||||
|
||||
button.text = button:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
button.text:SetPoint("left", button.icon, "right", 4, 0)
|
||||
button.text:SetText(attributes [i] and attributes [i].label or "")
|
||||
button.text:SetTextColor (.9, .9, .9, 1)
|
||||
button.text:SetTextColor(.9, .9, .9, 1)
|
||||
|
||||
end
|
||||
end
|
||||
@@ -1071,7 +1071,7 @@
|
||||
local pickicon = function()
|
||||
gump:IconPick (pickicon_callback, true)
|
||||
end
|
||||
local icon_image = gump:NewImage (box0, [[Interface\ICONS\TEMP]], 20, 20, nil, nil, "icontexture", "$parentIconTexture")
|
||||
local icon_image = gump:NewImage(box0, [[Interface\ICONS\TEMP]], 20, 20, nil, nil, "icontexture", "$parentIconTexture")
|
||||
local icon_button = gump:NewButton(box0, nil, "$parentIconButton", "IconButton", 20, 20, pickicon)
|
||||
icon_button:InstallCustomTexture()
|
||||
icon_button:SetPoint("left", icon_label, "left", 64, 0)
|
||||
@@ -1108,7 +1108,7 @@
|
||||
end
|
||||
local enable_source_field = function()
|
||||
box1.sourceentry:Enable()
|
||||
box1.sourceentry:SetFocus (true)
|
||||
box1.sourceentry:SetFocus(true)
|
||||
end
|
||||
|
||||
local source_icon = [[Interface\COMMON\Indicator-Yellow]]
|
||||
@@ -1137,7 +1137,7 @@
|
||||
local adds_boss_image = adds_boss:CreateTexture(nil, "overlay")
|
||||
adds_boss_image:SetPoint("center", adds_boss)
|
||||
adds_boss_image:SetTexture("Interface\\Buttons\\UI-MicroButton-Raid-Up")
|
||||
adds_boss_image:SetTexCoord (0.046875, 0.90625, 0.40625, 0.953125)
|
||||
adds_boss_image:SetTexCoord(0.046875, 0.90625, 0.40625, 0.953125)
|
||||
adds_boss_image:SetWidth(20)
|
||||
adds_boss_image:SetHeight(16)
|
||||
|
||||
@@ -1179,7 +1179,7 @@
|
||||
local buttonMouseOver = function(button)
|
||||
button.MyObject.image:SetBlendMode("ADD")
|
||||
button.MyObject.line:SetBlendMode("ADD")
|
||||
button.MyObject.label:SetTextColor (1, 1, 1, 1)
|
||||
button.MyObject.label:SetTextColor(1, 1, 1, 1)
|
||||
GameTooltip:SetOwner(button, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine(button.MyObject.actor)
|
||||
GameTooltip:Show()
|
||||
@@ -1187,7 +1187,7 @@
|
||||
local name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link = DetailsFramework.EncounterJournal.EJ_GetInstanceInfo (button.MyObject.ej_id)
|
||||
|
||||
modelFrameTexture:SetTexture(bgImage)
|
||||
modelFrameTexture:SetTexCoord (3/512, 370/512, 5/512, 429/512)
|
||||
modelFrameTexture:SetTexCoord(3/512, 370/512, 5/512, 429/512)
|
||||
modelFrame:Show()
|
||||
|
||||
modelFrame:SetDisplayInfo (button.MyObject.model)
|
||||
@@ -1195,7 +1195,7 @@
|
||||
local buttonMouseOut = function(button)
|
||||
button.MyObject.image:SetBlendMode("BLEND")
|
||||
button.MyObject.line:SetBlendMode("BLEND")
|
||||
button.MyObject.label:SetTextColor (.8, .8, .8, .8)
|
||||
button.MyObject.label:SetTextColor(.8, .8, .8, .8)
|
||||
GameTooltip:Hide()
|
||||
modelFrame:Hide()
|
||||
end
|
||||
@@ -1226,7 +1226,7 @@
|
||||
thisButton:SetHook("OnEnter", buttonMouseOver)
|
||||
thisButton:SetHook("OnLeave", buttonMouseOut)
|
||||
|
||||
local t = gump:NewImage (thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomActors2EncounterImageButton"..i)
|
||||
local t = gump:NewImage(thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomActors2EncounterImageButton"..i)
|
||||
t:SetPoint("left", thisButton)
|
||||
t:SetTexture([[Interface\MINIMAP\TRACKING\Target]])
|
||||
t:SetDesaturated(true)
|
||||
@@ -1238,14 +1238,14 @@
|
||||
text:SetWidth(123)
|
||||
text:SetHeight(10)
|
||||
|
||||
local border = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomActors2EncounterBorderButton"..i)
|
||||
border:SetTexCoord (0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer ("background")
|
||||
local border = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomActors2EncounterBorderButton"..i)
|
||||
border:SetTexCoord(0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer("background")
|
||||
border:SetPoint("topleft", thisButton.button, "topleft", -9, 9)
|
||||
|
||||
local line = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 134, 25, nil, nil, "line", "DetailsCustomActors2EncounterLineButton"..i)
|
||||
line:SetTexCoord (0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer ("background")
|
||||
local line = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 134, 25, nil, nil, "line", "DetailsCustomActors2EncounterLineButton"..i)
|
||||
line:SetTexCoord(0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer("background")
|
||||
line:SetPoint("left", thisButton.button, "right", -110, -3)
|
||||
|
||||
table.insert (actorsFrameButtons, #actorsFrameButtons+1, thisButton)
|
||||
@@ -1328,7 +1328,7 @@
|
||||
end
|
||||
local enable_target_field = function()
|
||||
box1.targetentry:Enable()
|
||||
box1.targetentry:SetFocus (true)
|
||||
box1.targetentry:SetFocus(true)
|
||||
end
|
||||
|
||||
local target_icon = [[Interface\COMMON\Indicator-Yellow]]
|
||||
@@ -1359,7 +1359,7 @@
|
||||
local adds_boss_image = adds_boss:CreateTexture(nil, "overlay")
|
||||
adds_boss_image:SetPoint("center", adds_boss)
|
||||
adds_boss_image:SetTexture("Interface\\Buttons\\UI-MicroButton-Raid-Up")
|
||||
adds_boss_image:SetTexCoord (0.046875, 0.90625, 0.40625, 0.953125)
|
||||
adds_boss_image:SetTexCoord(0.046875, 0.90625, 0.40625, 0.953125)
|
||||
adds_boss_image:SetWidth(20)
|
||||
adds_boss_image:SetHeight(16)
|
||||
|
||||
@@ -1387,7 +1387,7 @@
|
||||
local buttonMouseOver = function(button)
|
||||
button.MyObject.image:SetBlendMode("ADD")
|
||||
button.MyObject.line:SetBlendMode("ADD")
|
||||
button.MyObject.label:SetTextColor (1, 1, 1, 1)
|
||||
button.MyObject.label:SetTextColor(1, 1, 1, 1)
|
||||
GameTooltip:SetOwner(button, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine(button.MyObject.actor)
|
||||
GameTooltip:Show()
|
||||
@@ -1395,7 +1395,7 @@
|
||||
local name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link = DetailsFramework.EncounterJournal.EJ_GetInstanceInfo (button.MyObject.ej_id)
|
||||
|
||||
modelFrameTexture:SetTexture(bgImage)
|
||||
modelFrameTexture:SetTexCoord (3/512, 370/512, 5/512, 429/512)
|
||||
modelFrameTexture:SetTexCoord(3/512, 370/512, 5/512, 429/512)
|
||||
modelFrame:Show()
|
||||
|
||||
modelFrame:SetDisplayInfo (button.MyObject.model)
|
||||
@@ -1403,7 +1403,7 @@
|
||||
local buttonMouseOut = function(button)
|
||||
button.MyObject.image:SetBlendMode("BLEND")
|
||||
button.MyObject.line:SetBlendMode("BLEND")
|
||||
button.MyObject.label:SetTextColor (.8, .8, .8, .8)
|
||||
button.MyObject.label:SetTextColor(.8, .8, .8, .8)
|
||||
GameTooltip:Hide()
|
||||
|
||||
modelFrame:Hide()
|
||||
@@ -1434,7 +1434,7 @@
|
||||
thisButton:SetHook("OnEnter", buttonMouseOver)
|
||||
thisButton:SetHook("OnLeave", buttonMouseOut)
|
||||
|
||||
local t = gump:NewImage (thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomActorsEncounterImageButton"..i)
|
||||
local t = gump:NewImage(thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomActorsEncounterImageButton"..i)
|
||||
t:SetPoint("left", thisButton)
|
||||
t:SetTexture([[Interface\MINIMAP\TRACKING\Target]])
|
||||
t:SetDesaturated(true)
|
||||
@@ -1446,14 +1446,14 @@
|
||||
text:SetWidth(123)
|
||||
text:SetHeight(10)
|
||||
|
||||
local border = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomActorsEncounterBorderButton"..i)
|
||||
border:SetTexCoord (0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer ("background")
|
||||
local border = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomActorsEncounterBorderButton"..i)
|
||||
border:SetTexCoord(0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer("background")
|
||||
border:SetPoint("topleft", thisButton.button, "topleft", -9, 9)
|
||||
|
||||
local line = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 84, 25, nil, nil, "line", "DetailsCustomActorsEncounterLineButton"..i)
|
||||
line:SetTexCoord (0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer ("background")
|
||||
local line = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 84, 25, nil, nil, "line", "DetailsCustomActorsEncounterLineButton"..i)
|
||||
line:SetTexCoord(0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer("background")
|
||||
line:SetPoint("left", thisButton.button, "right", -110, -3)
|
||||
|
||||
table.insert (actorsFrameButtons, #actorsFrameButtons+1, thisButton)
|
||||
@@ -1541,7 +1541,7 @@
|
||||
local spell_id_boss_image = spell_id_boss:CreateTexture(nil, "overlay")
|
||||
spell_id_boss_image:SetPoint("center", spell_id_boss)
|
||||
spell_id_boss_image:SetTexture("Interface\\Buttons\\UI-MicroButton-Raid-Up")
|
||||
spell_id_boss_image:SetTexCoord (0.046875, 0.90625, 0.40625, 0.953125)
|
||||
spell_id_boss_image:SetTexCoord(0.046875, 0.90625, 0.40625, 0.953125)
|
||||
spell_id_boss_image:SetWidth(20)
|
||||
spell_id_boss_image:SetHeight(16)
|
||||
|
||||
@@ -1562,7 +1562,7 @@
|
||||
local buttonMouseOver = function(button)
|
||||
button.MyObject.image:SetBlendMode("ADD")
|
||||
button.MyObject.line:SetBlendMode("ADD")
|
||||
button.MyObject.label:SetTextColor (1, 1, 1, 1)
|
||||
button.MyObject.label:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
GameTooltip:SetOwner(button, "ANCHOR_TOPLEFT")
|
||||
_detalhes:GameTooltipSetSpellByID (button.MyObject.spellid)
|
||||
@@ -1571,7 +1571,7 @@
|
||||
local buttonMouseOut = function(button)
|
||||
button.MyObject.image:SetBlendMode("BLEND")
|
||||
button.MyObject.line:SetBlendMode("BLEND")
|
||||
button.MyObject.label:SetTextColor (.8, .8, .8, .8)
|
||||
button.MyObject.label:SetTextColor(.8, .8, .8, .8)
|
||||
GameTooltip:Hide()
|
||||
end
|
||||
|
||||
@@ -1599,7 +1599,7 @@
|
||||
thisButton:SetHook("OnEnter", buttonMouseOver)
|
||||
thisButton:SetHook("OnLeave", buttonMouseOut)
|
||||
|
||||
local t = gump:NewImage (thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomEncounterImageButton"..i)
|
||||
local t = gump:NewImage(thisButton, nil, 20, 20, nil, nil, "image", "DetailsCustomEncounterImageButton"..i)
|
||||
t:SetPoint("left", thisButton)
|
||||
|
||||
local text = gump:NewLabel(thisButton, nil, "DetailsCustomSpellsFrameButton"..i.."Label", "label", "Spell", nil, 9.5, {.8, .8, .8, .8})
|
||||
@@ -1607,14 +1607,14 @@
|
||||
text:SetWidth(73)
|
||||
text:SetHeight(10)
|
||||
|
||||
local border = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomEncounterBorderButton"..i)
|
||||
border:SetTexCoord (0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer ("background")
|
||||
local border = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 40, 38, nil, nil, "border", "DetailsCustomEncounterBorderButton"..i)
|
||||
border:SetTexCoord(0.00390625, 0.27734375, 0.44140625,0.69531250)
|
||||
border:SetDrawLayer("background")
|
||||
border:SetPoint("topleft", thisButton.button, "topleft", -9, 9)
|
||||
|
||||
local line = gump:NewImage (thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 84, 25, nil, nil, "line", "DetailsCustomEncounterLineButton"..i)
|
||||
line:SetTexCoord (0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer ("background")
|
||||
local line = gump:NewImage(thisButton, "Interface\\SPELLBOOK\\Spellbook-Parts", 84, 25, nil, nil, "line", "DetailsCustomEncounterLineButton"..i)
|
||||
line:SetTexCoord(0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
line:SetDrawLayer("background")
|
||||
line:SetPoint("left", thisButton.button, "right", -60, -3)
|
||||
|
||||
table.insert (spellsFrameButtons, #spellsFrameButtons+1, thisButton)
|
||||
@@ -1734,9 +1734,9 @@
|
||||
local func, errortext = loadstring (script)
|
||||
if (not func) then
|
||||
local firstLine = strsplit("\n", script, 2)
|
||||
errortext = errortext:gsub (firstLine, "")
|
||||
errortext = errortext:gsub ("%[string \"", "")
|
||||
errortext = errortext:gsub ("...\"]:", "")
|
||||
errortext = errortext:gsub(firstLine, "")
|
||||
errortext = errortext:gsub("%[string \"", "")
|
||||
errortext = errortext:gsub("...\"]:", "")
|
||||
errortext = "Line " .. errortext
|
||||
DetailsCustomPanel.ErrorString.text = errortext
|
||||
else
|
||||
|
||||
@@ -39,7 +39,7 @@ function Details:Dump (...)
|
||||
text_editor:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
text_editor:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
|
||||
text_editor.__background:SetColorTexture (0.2317647, 0.2317647, 0.2317647)
|
||||
text_editor.__background:SetColorTexture(0.2317647, 0.2317647, 0.2317647)
|
||||
text_editor.__background:SetVertexColor(0.27, 0.27, 0.27)
|
||||
text_editor.__background:SetAlpha(0.8)
|
||||
text_editor.__background:SetVertTile(true)
|
||||
@@ -104,7 +104,7 @@ function _detalhes:ShowImportWindow (defaultText, confirmFunc, titleText)
|
||||
importTextEditor:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
importTextEditor:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
|
||||
importTextEditor.__background:SetColorTexture (0.2317647, 0.2317647, 0.2317647)
|
||||
importTextEditor.__background:SetColorTexture(0.2317647, 0.2317647, 0.2317647)
|
||||
importTextEditor.__background:SetVertexColor(0.27, 0.27, 0.27)
|
||||
importTextEditor.__background:SetAlpha(0.8)
|
||||
importTextEditor.__background:SetVertTile(true)
|
||||
@@ -139,7 +139,7 @@ function _detalhes:ShowImportWindow (defaultText, confirmFunc, titleText)
|
||||
_G.DetailsExportWindow.Title:SetText(titleText)
|
||||
|
||||
C_Timer.After(.2, function()
|
||||
_G.DetailsExportWindow.ImportEditor:SetFocus (true)
|
||||
_G.DetailsExportWindow.ImportEditor:SetFocus(true)
|
||||
_G.DetailsExportWindow.ImportEditor.editbox:HighlightText (0)
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -416,7 +416,7 @@ function Details:CreateEventTrackerFrame(parent, name)
|
||||
local class
|
||||
local spec = _detalhes.cached_specs [serial]
|
||||
if (not spec) then
|
||||
local _, engClass = UnitClass (name)
|
||||
local _, engClass = UnitClass(name)
|
||||
if (engClass) then
|
||||
class = engClass
|
||||
else
|
||||
@@ -519,7 +519,7 @@ function Details:CreateEventTrackerFrame(parent, name)
|
||||
local spec, class = get_spec_or_class (ability [ABILITYTABLE_CASTERSERIAL], ability [ABILITYTABLE_CASTERNAME])
|
||||
local texture, L, R, T, B = get_player_icon (spec, class)
|
||||
line.LeftIcon:SetTexture(texture)
|
||||
line.LeftIcon:SetTexCoord (L, R, T, B)
|
||||
line.LeftIcon:SetTexCoord(L, R, T, B)
|
||||
line.LeftText:SetText(_detalhes:GetOnlyName(ability [ABILITYTABLE_CASTERNAME]))
|
||||
|
||||
if (ability [ABILITYTABLE_ISENEMY]) then
|
||||
@@ -531,7 +531,7 @@ function Details:CreateEventTrackerFrame(parent, name)
|
||||
if (ability [ABILITYTABLE_SPELLTYPE] == SPELLTYPE_COOLDOWN) then
|
||||
local spellName, _, spellIcon = GetSpellInfo(ability [ABILITYTABLE_SPELLID])
|
||||
line.RightIcon:SetTexture(spellIcon)
|
||||
line.RightIcon:SetTexCoord (.06, .94, .06, .94)
|
||||
line.RightIcon:SetTexCoord(.06, .94, .06, .94)
|
||||
|
||||
local targetName = ability [ABILITYTABLE_TARGETNAME]
|
||||
if (targetName) then
|
||||
@@ -542,30 +542,30 @@ function Details:CreateEventTrackerFrame(parent, name)
|
||||
line.RightText:SetText(targetName or spellName)
|
||||
|
||||
line.ActionIcon:SetTexture([[Interface\AddOns\Details\images\event_tracker_icons]])
|
||||
line.ActionIcon:SetTexCoord (0, 0.125, 0, 1)
|
||||
line.ActionIcon:SetTexCoord(0, 0.125, 0, 1)
|
||||
|
||||
elseif (ability [ABILITYTABLE_SPELLTYPE] == SPELLTYPE_OFFENSIVE) then
|
||||
local spellName, _, spellIcon = GetSpellInfo(ability [ABILITYTABLE_SPELLID])
|
||||
line.RightIcon:SetTexture(spellIcon)
|
||||
line.RightIcon:SetTexCoord (.06, .94, .06, .94)
|
||||
line.RightIcon:SetTexCoord(.06, .94, .06, .94)
|
||||
line.RightText:SetText(spellName)
|
||||
|
||||
line.ActionIcon:SetTexture([[Interface\AddOns\Details\images\event_tracker_icons]])
|
||||
line.ActionIcon:SetTexCoord (0.127, 0.25, 0, 1)
|
||||
line.ActionIcon:SetTexCoord(0.127, 0.25, 0, 1)
|
||||
|
||||
elseif (ability [ABILITYTABLE_SPELLTYPE] == SPELLTYPE_INTERRUPT) then
|
||||
local spellNameInterrupted, _, spellIconInterrupted = GetSpellInfo(ability [ABILITYTABLE_EXTRASPELLID])
|
||||
line.RightIcon:SetTexture(spellIconInterrupted)
|
||||
line.RightIcon:SetTexCoord (.06, .94, .06, .94)
|
||||
line.RightIcon:SetTexCoord(.06, .94, .06, .94)
|
||||
line.RightText:SetText(spellNameInterrupted)
|
||||
|
||||
line.ActionIcon:SetTexture([[Interface\AddOns\Details\images\event_tracker_icons]])
|
||||
line.ActionIcon:SetTexCoord (0.251, 0.375, 0, 1)
|
||||
line.ActionIcon:SetTexCoord(0.251, 0.375, 0, 1)
|
||||
|
||||
elseif (ability [ABILITYTABLE_SPELLTYPE] == SPELLTYPE_CROWDCONTROL) then
|
||||
local spellName, _, spellIcon = GetSpellInfo(ability [ABILITYTABLE_SPELLID])
|
||||
line.RightIcon:SetTexture(spellIcon)
|
||||
line.RightIcon:SetTexCoord (.06, .94, .06, .94)
|
||||
line.RightIcon:SetTexCoord(.06, .94, .06, .94)
|
||||
|
||||
local targetName = ability [ABILITYTABLE_TARGETNAME]
|
||||
if (targetName) then
|
||||
@@ -576,7 +576,7 @@ function Details:CreateEventTrackerFrame(parent, name)
|
||||
line.RightText:SetText(targetName or "unknown target")
|
||||
|
||||
line.ActionIcon:SetTexture([[Interface\AddOns\Details\images\event_tracker_icons]])
|
||||
line.ActionIcon:SetTexCoord (0.376, 0.5, 0, 1)
|
||||
line.ActionIcon:SetTexCoord(0.376, 0.5, 0, 1)
|
||||
|
||||
end
|
||||
|
||||
|
||||
+39
-39
@@ -49,7 +49,7 @@ function Details:OpenForge()
|
||||
f:SetFrameStrata("HIGH")
|
||||
f:SetToplevel (true)
|
||||
f:SetMovable(true)
|
||||
f.Title:SetTextColor (1, .8, .2)
|
||||
f.Title:SetTextColor(1, .8, .2)
|
||||
|
||||
local have_plugins_enabled
|
||||
|
||||
@@ -88,7 +88,7 @@ function Details:OpenForge()
|
||||
tutorialFrame.Desc:SetPoint("topleft", tutorialFrame, "topleft", 10, -45)
|
||||
tutorialFrame.Example:SetPoint("topleft", tutorialFrame, "topleft", 10, -110)
|
||||
|
||||
local editBox = Details.gump:CreateTextEntry (tutorialFrame, function()end, 375, 20, nil, nil, nil, entry_template, label_template)
|
||||
local editBox = Details.gump:CreateTextEntry(tutorialFrame, function()end, 375, 20, nil, nil, nil, entry_template, label_template)
|
||||
editBox:SetPoint("topleft", tutorialFrame.Example, "bottomleft", 0, -10)
|
||||
editBox:SetText([[https://www.youtube.com/watch?v=om0k1Yj2pEw]])
|
||||
editBox:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -167,7 +167,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_PLAYERNAME"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllPlayersNameFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllPlayersNameFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -182,7 +182,7 @@ function Details:OpenForge()
|
||||
if (filter ~= "") then
|
||||
filter = lower (filter)
|
||||
local actor_name = lower (actor:name())
|
||||
if (actor_name:find (filter)) then
|
||||
if (actor_name:find(filter)) then
|
||||
t [#t+1] = actor
|
||||
end
|
||||
else
|
||||
@@ -231,7 +231,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_PETNAME"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllPetsNameFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllPetsNameFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -239,7 +239,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_OWNERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllPetsOwnerFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllPetsOwnerFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -256,14 +256,14 @@ function Details:OpenForge()
|
||||
if (filter_petname ~= "") then
|
||||
filter_petname = lower (filter_petname)
|
||||
local actor_name = lower (actor:name())
|
||||
if (not actor_name:find (filter_petname)) then
|
||||
if (not actor_name:find(filter_petname)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
if (filter_ownername ~= "") then
|
||||
filter_ownername = lower (filter_ownername)
|
||||
local actor_name = lower (actor.ownerName)
|
||||
if (not actor_name:find (filter_ownername)) then
|
||||
if (not actor_name:find(filter_ownername)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -289,7 +289,7 @@ function Details:OpenForge()
|
||||
if (data) then
|
||||
return {
|
||||
index,
|
||||
data:name():gsub ("(<).*(>)", "") or "",
|
||||
data:name():gsub("(<).*(>)", "") or "",
|
||||
data.ownerName or "",
|
||||
Details:GetNpcIdFromGuid (data.serial),
|
||||
data.serial or "",
|
||||
@@ -318,7 +318,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_ENEMYNAME"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllEnemiesNameFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllEnemiesNameFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -333,7 +333,7 @@ function Details:OpenForge()
|
||||
if (filter ~= "") then
|
||||
filter = lower (filter)
|
||||
local actor_name = lower (actor:name())
|
||||
if (actor_name:find (filter)) then
|
||||
if (actor_name:find(filter)) then
|
||||
t [#t+1] = actor
|
||||
end
|
||||
else
|
||||
@@ -415,7 +415,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_SPELLNAME"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllSpellsNameFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllSpellsNameFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -423,7 +423,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_CASTERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeAllSpellsCasterFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeAllSpellsCasterFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -455,7 +455,7 @@ function Details:OpenForge()
|
||||
className = lower (className)
|
||||
end
|
||||
|
||||
if (not className:find (lower_FilterCaster)) then
|
||||
if (not className:find(lower_FilterCaster)) then
|
||||
can_add = false
|
||||
else
|
||||
className = classNameOriginal
|
||||
@@ -467,7 +467,7 @@ function Details:OpenForge()
|
||||
local spellName = GetSpellInfo(spellID)
|
||||
if (spellName) then
|
||||
spellName = lower (spellName)
|
||||
if (not spellName:find (lower_FilterSpellName)) then
|
||||
if (not spellName:find(lower_FilterSpellName)) then
|
||||
can_add = false
|
||||
end
|
||||
else
|
||||
@@ -504,7 +504,7 @@ function Details:OpenForge()
|
||||
local events = ""
|
||||
if (EncounterSpellEvents and EncounterSpellEvents [data[1]]) then
|
||||
for token, _ in pairs(EncounterSpellEvents [data[1]].token) do
|
||||
token = token:gsub ("SPELL_", "")
|
||||
token = token:gsub("SPELL_", "")
|
||||
events = events .. token .. ", "
|
||||
end
|
||||
events = events:sub (1, #events - 3)
|
||||
@@ -545,7 +545,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_SPELLNAME"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsNameFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsNameFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -553,7 +553,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_CASTERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsCasterFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsCasterFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -561,7 +561,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_ENCOUNTERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsEncounterFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeEncounterSpellsEncounterFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -592,7 +592,7 @@ function Details:OpenForge()
|
||||
local can_add = true
|
||||
|
||||
if (lower_FilterCaster ~= "") then
|
||||
if (not lower (enemyName):find (lower_FilterCaster)) then
|
||||
if (not lower (enemyName):find(lower_FilterCaster)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -602,7 +602,7 @@ function Details:OpenForge()
|
||||
local spellName = GetSpellInfo(spellID)
|
||||
if (spellName) then
|
||||
spellName = lower (spellName)
|
||||
if (not spellName:find (lower_FilterSpellName)) then
|
||||
if (not spellName:find(lower_FilterSpellName)) then
|
||||
can_add = false
|
||||
end
|
||||
else
|
||||
@@ -615,7 +615,7 @@ function Details:OpenForge()
|
||||
local encounterName = bossDetails.boss
|
||||
if (filter_encounter ~= "" and encounterName and encounterName ~= "") then
|
||||
encounterName = lower (encounterName)
|
||||
if (not encounterName:find (lower_FilterEncounterName)) then
|
||||
if (not encounterName:find(lower_FilterEncounterName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -651,7 +651,7 @@ function Details:OpenForge()
|
||||
local events = ""
|
||||
if (EncounterSpellEvents and EncounterSpellEvents [data[1]]) then
|
||||
for token, _ in pairs(EncounterSpellEvents [data[1]].token) do
|
||||
token = token:gsub ("SPELL_", "")
|
||||
token = token:gsub("SPELL_", "")
|
||||
events = events .. token .. ", "
|
||||
end
|
||||
events = events:sub (1, #events - 3)
|
||||
@@ -776,8 +776,8 @@ function Details:OpenForge()
|
||||
spellname, _, spellicon = GetSpellInfo(data [7])
|
||||
else
|
||||
if (data [7]) then
|
||||
local spellid = data[7]:gsub ("ej", "")
|
||||
spellid = tonumber (spellid)
|
||||
local spellid = data[7]:gsub("ej", "")
|
||||
spellid = tonumber(spellid)
|
||||
local title, description, depth, abilityIcon, displayInfo, siblingID, nextSectionID, filteredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = DetailsFramework.EncounterJournal.EJ_GetSectionInfo (spellid)
|
||||
spellname, spellicon = title, abilityIcon
|
||||
else
|
||||
@@ -800,7 +800,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_BARTEXT"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeDBMBarsTextFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeDBMBarsTextFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -808,7 +808,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_ENCOUNTERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeDBMBarsEncounterFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeDBMBarsEncounterFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -828,7 +828,7 @@ function Details:OpenForge()
|
||||
for key, timer in pairs(source) do
|
||||
local can_add = true
|
||||
if (lower_FilterBarName ~= "") then
|
||||
if (not lower (timer [3]):find (lower_FilterBarName)) then
|
||||
if (not lower (timer [3]):find(lower_FilterBarName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -837,7 +837,7 @@ function Details:OpenForge()
|
||||
local encounterName = bossDetails and bossDetails.boss
|
||||
if (encounterName and encounterName ~= "") then
|
||||
encounterName = lower (encounterName)
|
||||
if (not encounterName:find (lower_FilterEncounterName)) then
|
||||
if (not encounterName:find(lower_FilterEncounterName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -870,7 +870,7 @@ function Details:OpenForge()
|
||||
local bossDetails, bossIndex = Details:GetBossEncounterDetailsFromEncounterId (nil, data.id)
|
||||
local bossName = bossDetails and bossDetails.boss or "--x--x--"
|
||||
|
||||
local abilityID = tonumber (data [7])
|
||||
local abilityID = tonumber(data [7])
|
||||
local spellName, _, spellIcon
|
||||
if (abilityID) then
|
||||
if (abilityID > 0) then
|
||||
@@ -885,7 +885,7 @@ function Details:OpenForge()
|
||||
data[2] or "",
|
||||
data[7] or "",
|
||||
data[4] or "0",
|
||||
tostring (encounter_id) or "0",
|
||||
tostring(encounter_id) or "0",
|
||||
bossName,
|
||||
}
|
||||
else
|
||||
@@ -902,7 +902,7 @@ function Details:OpenForge()
|
||||
local data = all_modules [5].data [row]
|
||||
|
||||
local spellname, spellicon, _
|
||||
local spellid = tonumber (data [2])
|
||||
local spellid = tonumber(data [2])
|
||||
|
||||
if (type(spellid) == "number") then
|
||||
if (spellid < 0) then
|
||||
@@ -931,7 +931,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_BARTEXT"] .. ": ")
|
||||
label:SetPoint("left", w, "left", 5, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeBigWigsBarsTextFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeBigWigsBarsTextFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -939,7 +939,7 @@ function Details:OpenForge()
|
||||
local label = w:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
label:SetText(L["STRING_FORGE_FILTER_ENCOUNTERNAME"] .. ": ")
|
||||
label:SetPoint("left", entry.widget, "right", 20, 0)
|
||||
local entry = fw:CreateTextEntry (w, nil, 120, 20, "entry", "DetailsForgeBWBarsEncounterFilter")
|
||||
local entry = fw:CreateTextEntry(w, nil, 120, 20, "entry", "DetailsForgeBWBarsEncounterFilter")
|
||||
entry:SetHook("OnTextChanged", function() f:refresh() end)
|
||||
entry:SetPoint("left", label, "right", 2, 0)
|
||||
entry:SetTemplate(Details.gump:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
|
||||
@@ -961,7 +961,7 @@ function Details:OpenForge()
|
||||
for key, timer in pairs(source) do
|
||||
local can_add = true
|
||||
if (lower_FilterBarName ~= "") then
|
||||
if (not lower (timer [3]):find (lower_FilterBarName)) then
|
||||
if (not lower (timer [3]):find(lower_FilterBarName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -970,7 +970,7 @@ function Details:OpenForge()
|
||||
local encounterName = bossDetails and bossDetails.boss
|
||||
if (encounterName and encounterName ~= "") then
|
||||
encounterName = lower (encounterName)
|
||||
if (not encounterName:find (lower_FilterEncounterName)) then
|
||||
if (not encounterName:find(lower_FilterEncounterName)) then
|
||||
can_add = false
|
||||
end
|
||||
end
|
||||
@@ -1001,7 +1001,7 @@ function Details:OpenForge()
|
||||
local bossDetails, bossIndex = Details:GetBossEncounterDetailsFromEncounterId (nil, data.id)
|
||||
local bossName = bossDetails and bossDetails.boss or "--x--x--"
|
||||
|
||||
local abilityID = tonumber (data[2])
|
||||
local abilityID = tonumber(data[2])
|
||||
local spellName, _, spellIcon
|
||||
if (abilityID) then
|
||||
if (abilityID > 0) then
|
||||
@@ -1015,7 +1015,7 @@ function Details:OpenForge()
|
||||
{text = data[3] or "", id = abilityID and abilityID > 0 and abilityID or 0},
|
||||
data[2] or "",
|
||||
data[4] or "",
|
||||
tostring (encounter_id) or "0",
|
||||
tostring(encounter_id) or "0",
|
||||
bossName
|
||||
}
|
||||
else
|
||||
@@ -1058,7 +1058,7 @@ function Details:OpenForge()
|
||||
|
||||
local background = fillpanel:CreateTexture(nil, "background")
|
||||
background:SetAllPoints()
|
||||
background:SetColorTexture (0, 0, 0, 0.2)
|
||||
background:SetColorTexture(0, 0, 0, 0.2)
|
||||
|
||||
module.fill_panel = fillpanel
|
||||
end
|
||||
|
||||
@@ -102,15 +102,15 @@ function Details.OpenMacrosWindow()
|
||||
descLabel.textsize = 12
|
||||
|
||||
local options_dropdown_template = DF:GetTemplate("dropdown", "OPTIONS_DROPDOWN_TEMPLATE")
|
||||
options_dropdown_template = DF.table.copy ({}, options_dropdown_template)
|
||||
options_dropdown_template = DF.table.copy({}, options_dropdown_template)
|
||||
options_dropdown_template.backdropcolor = {.51, .51, .51, .3}
|
||||
options_dropdown_template.onenterbordercolor = {.51, .51, .51, .2}
|
||||
|
||||
local textEntry = DF:CreateTextEntry (line, function()end, scrollbox_size[1] - 10, 40, "MacroTextEntry", _, _, options_dropdown_template)
|
||||
local textEntry = DF:CreateTextEntry(line, function()end, scrollbox_size[1] - 10, 40, "MacroTextEntry", _, _, options_dropdown_template)
|
||||
textEntry:SetHook("OnEditFocusGained", textEntryOnFocusGained)
|
||||
textEntry:SetHook("OnEditFocusLost", textEntryOnFocusLost)
|
||||
textEntry:SetJustifyH("left")
|
||||
textEntry:SetTextInsets (8, 8, 0, 0)
|
||||
textEntry:SetTextInsets(8, 8, 0, 0)
|
||||
|
||||
titleLabel:SetPoint("topleft", line, "topleft", 5, -5)
|
||||
descLabel:SetPoint("topleft", titleLabel, "bottomleft", 0, -2)
|
||||
|
||||
+13
-13
@@ -1973,7 +1973,7 @@ local lineScript_Onmouseup = function(self, button)
|
||||
if (custom and custom.on_shift_click) then
|
||||
local func = loadstring (custom.on_shift_click)
|
||||
if (func) then
|
||||
local successful, errortext = pcall (func, self, self.minha_tabela, self._instance)
|
||||
local successful, errortext = pcall(func, self, self.minha_tabela, self._instance)
|
||||
if (not successful) then
|
||||
Details:Msg("error occurred custom script shift+click:", errortext)
|
||||
end
|
||||
@@ -2519,7 +2519,7 @@ function Details:ReportSingleLine (instancia, barra)
|
||||
local GameCooltip = GameCooltip
|
||||
if (GameCooltipFrame1:IsShown()) then
|
||||
local actor_name = barra.lineText1:GetText() or ""
|
||||
actor_name = actor_name:gsub ((".*%."), "")
|
||||
actor_name = actor_name:gsub((".*%."), "")
|
||||
|
||||
if (instancia.segmento == -1) then --overall
|
||||
reportar = {"Details!: " .. Loc["STRING_OVERALL"] .. " " .. instancia.customName .. ": " .. actor_name .. " " .. Loc["STRING_CUSTOM_REPORT"]}
|
||||
@@ -3081,7 +3081,7 @@ end
|
||||
|
||||
local alert_on_click = function(self, button)
|
||||
if (self.func) then
|
||||
local okey, errortext = pcall (self.func, unpack(self.func_param))
|
||||
local okey, errortext = pcall(self.func, unpack(self.func_param))
|
||||
if (not okey) then
|
||||
Details:Msg("error on alert function:", errortext)
|
||||
end
|
||||
@@ -5687,7 +5687,7 @@ function Details:ToolbarMenuSetButtons(_mode, _segment, _attributes, _report, _r
|
||||
self.menu_icons[5] = _reset
|
||||
self.menu_icons[6] = _close
|
||||
|
||||
table.wipe (tbuttons)
|
||||
table.wipe(tbuttons)
|
||||
|
||||
tbuttons[1] = self.baseframe.cabecalho.modo_selecao
|
||||
tbuttons[2] = self.baseframe.cabecalho.segmento
|
||||
@@ -6748,7 +6748,7 @@ local buildSegmentTooltip = function(self, deltaTime)
|
||||
local thisCombat = Details.tabela_vigente
|
||||
local encounter_name = thisCombat.is_boss.encounter
|
||||
local instanceID = thisCombat.is_boss.ej_instance_id
|
||||
instanceID = tonumber (instanceID)
|
||||
instanceID = tonumber(instanceID)
|
||||
if (encounter_name and instanceID and instanceID ~= 0) then
|
||||
local index, name, description, encounterID, rootSectionID, link = Details:GetEncounterInfoFromEncounterName (instanceID, encounter_name)
|
||||
if (index and name and encounterID) then
|
||||
@@ -6950,11 +6950,11 @@ end
|
||||
|
||||
function Details:SetUserCustomSkinFile (file)
|
||||
if (type(file) ~= "string") then
|
||||
error ("SetUserCustomSkinFile() file must be a string.")
|
||||
error("SetUserCustomSkinFile() file must be a string.")
|
||||
end
|
||||
|
||||
if (file:find ("\\") or file:find ("/")) then
|
||||
error ("SetUserCustomSkinFile() file must be only the file name (with out up folders) and slashes.")
|
||||
if (file:find("\\") or file:find("/")) then
|
||||
error("SetUserCustomSkinFile() file must be only the file name (with out up folders) and slashes.")
|
||||
end
|
||||
|
||||
self.skin_custom = file
|
||||
@@ -7287,7 +7287,7 @@ function Details:ChangeSkin(skin_name)
|
||||
local callbackFunc = this_skin.callback
|
||||
if (callbackFunc) then
|
||||
DetailsFramework:SetEnvironment(callbackFunc)
|
||||
local okey, result = pcall (callbackFunc, this_skin, self, just_updating)
|
||||
local okey, result = pcall(callbackFunc, this_skin, self, just_updating)
|
||||
if (not okey) then
|
||||
Details:Msg("|cFFFF9900error on skin callback function|r:", result)
|
||||
end
|
||||
@@ -7297,7 +7297,7 @@ function Details:ChangeSkin(skin_name)
|
||||
local onStartScript = this_skin.control_script_on_start
|
||||
if (onStartScript) then
|
||||
DetailsFramework:SetEnvironment(onStartScript)
|
||||
local okey, result = pcall (onStartScript, this_skin, self)
|
||||
local okey, result = pcall(onStartScript, this_skin, self)
|
||||
if (not okey) then
|
||||
Details:Msg("|cFFFF9900error on skin control on start function|r:", result)
|
||||
end
|
||||
@@ -8038,7 +8038,7 @@ function Details:AttributeMenu (enabled, pos_x, pos_y, font, size, color, side,
|
||||
end
|
||||
|
||||
--protection against failed clean up framework table
|
||||
if (self.menu_attribute_string and not getmetatable (self.menu_attribute_string)) then
|
||||
if (self.menu_attribute_string and not getmetatable(self.menu_attribute_string)) then
|
||||
self.menu_attribute_string = nil
|
||||
end
|
||||
|
||||
@@ -8549,7 +8549,7 @@ function Details:StretchButtonAnchor (side)
|
||||
side = self.stretch_button_side
|
||||
end
|
||||
|
||||
if (side == 1 or string.lower (side) == "top") then
|
||||
if (side == 1 or string.lower(side) == "top") then
|
||||
self.baseframe.button_stretch:ClearAllPoints()
|
||||
|
||||
local y = 0
|
||||
@@ -8562,7 +8562,7 @@ function Details:StretchButtonAnchor (side)
|
||||
self.baseframe.button_stretch.texture:SetTexCoord(unpack(COORDS_STRETCH))
|
||||
self.stretch_button_side = 1
|
||||
|
||||
elseif (side == 2 or string.lower (side) == "bottom") then
|
||||
elseif (side == 2 or string.lower(side) == "bottom") then
|
||||
self.baseframe.button_stretch:ClearAllPoints()
|
||||
|
||||
local y = 0
|
||||
|
||||
@@ -755,7 +755,7 @@ do
|
||||
local buildSkinMenu = function()
|
||||
local skinOptions = {}
|
||||
for skin_name, skin_table in pairs(_detalhes.skins) do
|
||||
local file = skin_table.file:gsub ([[Interface\AddOns\Details\images\skins\]], "")
|
||||
local file = skin_table.file:gsub([[Interface\AddOns\Details\images\skins\]], "")
|
||||
local desc = "Author: |cFFFFFFFF" .. skin_table.author .. "|r\nVersion: |cFFFFFFFF" .. skin_table.version .. "|r\nSite: |cFFFFFFFF" .. skin_table.site .. "|r\n\nDesc: |cFFFFFFFF" .. skin_table.desc .. "|r\n\nFile: |cFFFFFFFF" .. file .. ".tga|r"
|
||||
skinOptions [#skinOptions+1] = {value = skin_name, label = skin_name, onclick = onSelectSkin, icon = "Interface\\GossipFrame\\TabardGossipIcon", desc = desc}
|
||||
end
|
||||
@@ -1044,7 +1044,7 @@ do
|
||||
|
||||
{--chat tab width offset
|
||||
type = "range",
|
||||
get = function() return tonumber (_detalhes.chat_tab_embed.x_offset) end,
|
||||
get = function() return tonumber(_detalhes.chat_tab_embed.x_offset) end,
|
||||
set = function(self, fixedparam, value)
|
||||
_detalhes.chat_tab_embed.x_offset = value
|
||||
if (_detalhes.chat_embed.enabled) then
|
||||
@@ -1061,7 +1061,7 @@ do
|
||||
|
||||
{--chat tab height offset
|
||||
type = "range",
|
||||
get = function() return tonumber (_detalhes.chat_tab_embed.y_offset) end,
|
||||
get = function() return tonumber(_detalhes.chat_tab_embed.y_offset) end,
|
||||
set = function(self, fixedparam, value)
|
||||
_detalhes.chat_tab_embed.y_offset = value
|
||||
if (_detalhes.chat_embed.enabled) then
|
||||
@@ -1220,7 +1220,7 @@ do
|
||||
local sectionOptions = {
|
||||
{--line height
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.height) end,
|
||||
get = function() return tonumber(currentInstance.row_info.height) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarSettings", value)
|
||||
afterUpdate()
|
||||
@@ -1234,7 +1234,7 @@ do
|
||||
|
||||
{--padding
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.space.between) end,
|
||||
get = function() return tonumber(currentInstance.row_info.space.between) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarSettings", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
afterUpdate()
|
||||
@@ -1470,7 +1470,7 @@ do
|
||||
return default
|
||||
end,
|
||||
func = function(self, _, text)
|
||||
if (text:find ("spec_")) then
|
||||
if (text:find("spec_")) then
|
||||
editInstanceSetting(currentInstance, "SetBarSpecIconSettings", true, text, true)
|
||||
else
|
||||
if (currentInstance.row_info.use_spec_icons) then
|
||||
@@ -1499,7 +1499,7 @@ do
|
||||
|
||||
{--icon size offset
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.icon_size_offset) end,
|
||||
get = function() return tonumber(currentInstance.row_info.icon_size_offset) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarSettings", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
afterUpdate()
|
||||
@@ -1528,7 +1528,7 @@ do
|
||||
|
||||
{--faction icon size offset
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.faction_icon_size_offset) end,
|
||||
get = function() return tonumber(currentInstance.row_info.faction_icon_size_offset) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarFactionIconSettings", nil, value)
|
||||
afterUpdate()
|
||||
@@ -1557,7 +1557,7 @@ do
|
||||
|
||||
{--role icon size offset
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.arena_role_icon_size_offset) end,
|
||||
get = function() return tonumber(currentInstance.row_info.arena_role_icon_size_offset) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarArenaRoleIconSettings", nil, value)
|
||||
afterUpdate()
|
||||
@@ -1621,7 +1621,7 @@ do
|
||||
|
||||
{--lineText2 (left, usuali is the 'done' amount)
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.fontstrings_text2_anchor) end,
|
||||
get = function() return tonumber(currentInstance.fontstrings_text2_anchor) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "fontstrings_text2_anchor", value)
|
||||
editInstanceSetting(currentInstance, "InstanceRefreshRows")
|
||||
@@ -1636,7 +1636,7 @@ do
|
||||
|
||||
{--lineText3 (in the middle)
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.fontstrings_text3_anchor) end,
|
||||
get = function() return tonumber(currentInstance.fontstrings_text3_anchor) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "fontstrings_text3_anchor", value)
|
||||
editInstanceSetting(currentInstance, "InstanceRefreshRows")
|
||||
@@ -1651,7 +1651,7 @@ do
|
||||
|
||||
{--lineText4 (closest to the right)
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.fontstrings_text4_anchor) end,
|
||||
get = function() return tonumber(currentInstance.fontstrings_text4_anchor) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "fontstrings_text4_anchor", value)
|
||||
editInstanceSetting(currentInstance, "InstanceRefreshRows")
|
||||
@@ -1766,7 +1766,7 @@ do
|
||||
|
||||
{--border size
|
||||
type = "range",
|
||||
get = function() return tonumber (currentInstance.row_info.backdrop.size) end,
|
||||
get = function() return tonumber(currentInstance.row_info.backdrop.size) end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarBackdropSettings", nil, value)
|
||||
afterUpdate()
|
||||
@@ -3520,7 +3520,7 @@ do
|
||||
bframe.plugin = pluginObject
|
||||
bframe.id = i
|
||||
|
||||
DF:NewImage (bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
DF:NewImage(bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
bframe ["toolbarPluginsIcon"..i]:SetPoint("topleft", anchorFrame, "topleft", 10, y)
|
||||
|
||||
DF:NewLabel(bframe, _, "$parentToolbarPluginsLabel"..i, "toolbarPluginsLabel"..i, pluginObject.__name)
|
||||
@@ -3552,7 +3552,7 @@ do
|
||||
if (pluginObject.OpenOptionsPanel) then
|
||||
DF:NewButton(bframe, nil, "$parentOptionsButton"..i, "OptionsButton"..i, 120, 20, pluginObject.OpenOptionsPanel, nil, nil, nil, Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], nil, options_button_template)
|
||||
bframe ["OptionsButton"..i]:SetPoint("topleft", anchorFrame, "topleft", 510, y-0)
|
||||
bframe ["OptionsButton"..i]:SetTextColor (button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetTextColor(button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetIcon ([[Interface\Buttons\UI-OptionsButton]], 14, 14, nil, {0, 1, 0, 1}, nil, 3)
|
||||
end
|
||||
|
||||
@@ -3590,7 +3590,7 @@ do
|
||||
bframe.id = i
|
||||
bframe.hasDesc = allExistentToolbarPlugins [o] [4]
|
||||
|
||||
DF:NewImage (bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
DF:NewImage(bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
bframe ["toolbarPluginsIcon"..i]:SetPoint("topleft", anchorFrame, "topleft", 10, y)
|
||||
|
||||
DF:NewLabel(bframe, _, "$parentToolbarPluginsLabel"..i, "toolbarPluginsLabel"..i, pluginObject.__name)
|
||||
@@ -3655,7 +3655,7 @@ do
|
||||
bframe.plugin = pluginObject
|
||||
bframe.id = i
|
||||
|
||||
DF:NewImage (bframe, pluginObject.__icon, 18, 18, nil, nil, "raidPluginsIcon"..i, "$parentRaidPluginsIcon"..i)
|
||||
DF:NewImage(bframe, pluginObject.__icon, 18, 18, nil, nil, "raidPluginsIcon"..i, "$parentRaidPluginsIcon"..i)
|
||||
bframe ["raidPluginsIcon"..i]:SetPoint("topleft", anchorFrame, "topleft", 10, y)
|
||||
|
||||
DF:NewLabel(bframe, _, "$parentRaidPluginsLabel"..i, "raidPluginsLabel"..i, pluginObject.__name)
|
||||
@@ -3693,7 +3693,7 @@ do
|
||||
if (pluginObject.OpenOptionsPanel) then
|
||||
DF:NewButton(bframe, nil, "$parentOptionsButton"..i, "OptionsButton"..i, 86, 18, pluginObject.OpenOptionsPanel, nil, nil, nil, Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], nil, options_button_template)
|
||||
bframe ["OptionsButton"..i]:SetPoint("topleft", anchorFrame, "topleft", 510, y-0)
|
||||
bframe ["OptionsButton"..i]:SetTextColor (button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetTextColor(button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetIcon ([[Interface\Buttons\UI-OptionsButton]], 14, 14, nil, {0, 1, 0, 1}, nil, 3)
|
||||
end
|
||||
|
||||
@@ -3728,7 +3728,7 @@ do
|
||||
bframe.id = i
|
||||
bframe.hasDesc = allExistentRaidPlugins [o] [4]
|
||||
|
||||
DF:NewImage (bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
DF:NewImage(bframe, pluginObject.__icon, 18, 18, nil, nil, "toolbarPluginsIcon"..i, "$parentToolbarPluginsIcon"..i)
|
||||
bframe ["toolbarPluginsIcon"..i]:SetPoint("topleft", anchorFrame, "topleft", 10, y)
|
||||
|
||||
DF:NewLabel(bframe, _, "$parentToolbarPluginsLabel"..i, "toolbarPluginsLabel"..i, pluginObject.__name)
|
||||
@@ -3793,7 +3793,7 @@ do
|
||||
bframe.plugin = pluginObject
|
||||
bframe.id = i
|
||||
|
||||
DF:NewImage (bframe, pluginObject.__icon, 18, 18, nil, nil, "soloPluginsIcon"..i, "$parentSoloPluginsIcon"..i)
|
||||
DF:NewImage(bframe, pluginObject.__icon, 18, 18, nil, nil, "soloPluginsIcon"..i, "$parentSoloPluginsIcon"..i)
|
||||
bframe ["soloPluginsIcon"..i]:SetPoint("topleft", anchorFrame, "topleft", 10, y)
|
||||
|
||||
DF:NewLabel(bframe, _, "$parentSoloPluginsLabel"..i, "soloPluginsLabel"..i, pluginObject.__name)
|
||||
@@ -3827,7 +3827,7 @@ do
|
||||
if (pluginObject.OpenOptionsPanel) then
|
||||
DF:NewButton(bframe, nil, "$parentOptionsButton"..i, "OptionsButton"..i, 86, 18, pluginObject.OpenOptionsPanel, nil, nil, nil, Loc ["STRING_OPTIONS_PLUGINS_OPTIONS"], nil, options_button_template)
|
||||
bframe ["OptionsButton"..i]:SetPoint("topleft", anchorFrame, "topleft", 510, y-0)
|
||||
bframe ["OptionsButton"..i]:SetTextColor (button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetTextColor(button_color_rgb)
|
||||
bframe ["OptionsButton"..i]:SetIcon ([[Interface\Buttons\UI-OptionsButton]], 14, 14, nil, {0, 1, 0, 1}, nil, 3)
|
||||
end
|
||||
|
||||
@@ -4632,7 +4632,7 @@ do
|
||||
local textureOptions = sectionFrame.wallpaperOptions
|
||||
local selectedTextureOption = texturePath
|
||||
|
||||
if (texturePath:find ("TALENTFRAME")) then
|
||||
if (texturePath:find("TALENTFRAME")) then
|
||||
editInstanceSetting(currentInstance, "InstanceWallpaper", texturePath, nil, nil, {0, 1, 0, 0.703125}, nil, nil, {1, 1, 1, 1})
|
||||
afterUpdate()
|
||||
|
||||
@@ -4724,7 +4724,7 @@ do
|
||||
local previewX, previewY = 460, -60
|
||||
|
||||
local preview = sectionFrame:CreateTexture(nil, "overlay")
|
||||
preview:SetDrawLayer ("artwork", 3)
|
||||
preview:SetDrawLayer("artwork", 3)
|
||||
preview:SetSize(256, 128)
|
||||
preview:SetPoint("topleft", sectionFrame, "topleft", previewX, previewY)
|
||||
|
||||
@@ -4736,29 +4736,29 @@ do
|
||||
whiteBackground:SetColorTexture(1, 1, 1, 1)
|
||||
|
||||
--background grid
|
||||
local icon1 = DF:NewImage (sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon1")
|
||||
local icon1 = DF:NewImage(sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon1")
|
||||
icon1:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
icon1:SetPoint("topleft", sectionFrame, "topleft", previewX, previewY)
|
||||
icon1:SetDrawLayer ("artwork", 1)
|
||||
icon1:SetTexCoord (0.337890625, 0.5859375, 0.59375, 0.716796875-0.0009765625) --173 304 300 367
|
||||
icon1:SetDrawLayer("artwork", 1)
|
||||
icon1:SetTexCoord(0.337890625, 0.5859375, 0.59375, 0.716796875-0.0009765625) --173 304 300 367
|
||||
|
||||
local icon2 = DF:NewImage (sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon2")
|
||||
local icon2 = DF:NewImage(sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon2")
|
||||
icon2:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
icon2:SetPoint("left", icon1.widget, "right", -1, 0)
|
||||
icon2:SetDrawLayer ("artwork", 1)
|
||||
icon2:SetTexCoord (0.337890625, 0.5859375, 0.59375, 0.716796875-0.0009765625) --173 304 300 367
|
||||
icon2:SetDrawLayer("artwork", 1)
|
||||
icon2:SetTexCoord(0.337890625, 0.5859375, 0.59375, 0.716796875-0.0009765625) --173 304 300 367
|
||||
|
||||
local icon3 = DF:NewImage (sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon3")
|
||||
local icon3 = DF:NewImage(sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon3")
|
||||
icon3:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
icon3:SetPoint("top", icon1.widget, "bottom")
|
||||
icon3:SetDrawLayer ("artwork", 1)
|
||||
icon3:SetTexCoord (0.337890625, 0.5859375, 0.59375+0.0009765625, 0.716796875) --173 304 300 367
|
||||
icon3:SetDrawLayer("artwork", 1)
|
||||
icon3:SetTexCoord(0.337890625, 0.5859375, 0.59375+0.0009765625, 0.716796875) --173 304 300 367
|
||||
|
||||
local icon4 = DF:NewImage (sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon4")
|
||||
local icon4 = DF:NewImage(sectionFrame, nil, 128, 64, "artwork", nil, nil, "$parentIcon4")
|
||||
icon4:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
icon4:SetPoint("left", icon3.widget, "right", -1, 0)
|
||||
icon4:SetDrawLayer ("artwork", 1)
|
||||
icon4:SetTexCoord (0.337890625, 0.5859375, 0.59375+0.0009765625, 0.716796875) --173 304 300 367
|
||||
icon4:SetDrawLayer("artwork", 1)
|
||||
icon4:SetTexCoord(0.337890625, 0.5859375, 0.59375+0.0009765625, 0.716796875) --173 304 300 367
|
||||
|
||||
icon1:SetVertexColor(.15, .15, .15, 1)
|
||||
icon2:SetVertexColor(.15, .15, .15, 1)
|
||||
@@ -4771,33 +4771,33 @@ do
|
||||
local L1 = sectionFrame:CreateTexture(nil, "overlay")
|
||||
L1:SetPoint("topleft", preview, "topleft")
|
||||
L1:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
L1:SetTexCoord (0.13671875+0.0009765625, 0.234375, 0.29296875, 0.1953125+0.0009765625)
|
||||
L1:SetTexCoord(0.13671875+0.0009765625, 0.234375, 0.29296875, 0.1953125+0.0009765625)
|
||||
L1:SetSize(w, h)
|
||||
L1:SetDrawLayer ("overlay", 2)
|
||||
L1:SetDrawLayer("overlay", 2)
|
||||
L1:SetVertexColor(1, 1, 1, .8)
|
||||
|
||||
local L2 = sectionFrame:CreateTexture(nil, "overlay")
|
||||
L2:SetPoint("bottomleft", preview, "bottomleft")
|
||||
L2:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
L2:SetTexCoord (0.13671875+0.0009765625, 0.234375, 0.1953125+0.0009765625, 0.29296875)
|
||||
L2:SetTexCoord(0.13671875+0.0009765625, 0.234375, 0.1953125+0.0009765625, 0.29296875)
|
||||
L2:SetSize(w, h)
|
||||
L2:SetDrawLayer ("overlay", 2)
|
||||
L2:SetDrawLayer("overlay", 2)
|
||||
L2:SetVertexColor(1, 1, 1, .8)
|
||||
|
||||
local L3 = sectionFrame:CreateTexture(nil, "overlay")
|
||||
L3:SetPoint("bottomright", preview, "bottomright", 0, 0)
|
||||
L3:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
L3:SetTexCoord (0.234375, 0.13671875-0.0009765625, 0.1953125+0.0009765625, 0.29296875)
|
||||
L3:SetTexCoord(0.234375, 0.13671875-0.0009765625, 0.1953125+0.0009765625, 0.29296875)
|
||||
L3:SetSize(w, h)
|
||||
L3:SetDrawLayer ("overlay", 5)
|
||||
L3:SetDrawLayer("overlay", 5)
|
||||
L3:SetVertexColor(1, 1, 1, .8)
|
||||
|
||||
local L4 = sectionFrame:CreateTexture(nil, "overlay")
|
||||
L4:SetPoint("topright", preview, "topright", 0, 0)
|
||||
L4:SetTexture("Interface\\AddOns\\Details\\images\\icons")
|
||||
L4:SetTexCoord (0.234375, 0.13671875-0.0009765625, 0.29296875, 0.1953125+0.0009765625)
|
||||
L4:SetTexCoord(0.234375, 0.13671875-0.0009765625, 0.29296875, 0.1953125+0.0009765625)
|
||||
L4:SetSize(w, h)
|
||||
L4:SetDrawLayer ("overlay", 5)
|
||||
L4:SetDrawLayer("overlay", 5)
|
||||
L4:SetVertexColor(1, 1, 1, .8)
|
||||
|
||||
--update preview
|
||||
@@ -4805,7 +4805,7 @@ do
|
||||
local wallpaper = currentInstance.wallpaper
|
||||
|
||||
preview:SetTexture(wallpaper.texture)
|
||||
preview:SetTexCoord (unpack(wallpaper.texcoord))
|
||||
preview:SetTexCoord(unpack(wallpaper.texcoord))
|
||||
preview:SetVertexColor(unpack(wallpaper.overlay))
|
||||
preview:SetAlpha(wallpaper.alpha)
|
||||
end
|
||||
@@ -4841,7 +4841,7 @@ do
|
||||
|
||||
local wallpaper = currentInstance.wallpaper
|
||||
|
||||
if (wallpaper.texture:find ("TALENTFRAME")) then
|
||||
if (wallpaper.texture:find("TALENTFRAME")) then
|
||||
if (wallpaper.anchor == "all") then
|
||||
DF:ImageEditor (callmeback, wallpaper.texture, wallpaper.texcoord, wallpaper.overlay, currentInstance.baseframe.wallpaper:GetWidth(), currentInstance.baseframe.wallpaper:GetHeight(), nil, wallpaper.alpha, true)
|
||||
else
|
||||
@@ -6305,7 +6305,7 @@ do
|
||||
addframe.spellIconButton.icon.texture = texture
|
||||
end
|
||||
local icon_button = DF:NewButton(addframe, nil, "$parentSpellIconButton", "spellIconButton", 20, 20, function() DF:IconPick (icon_button_func, true) end)
|
||||
local icon_button_icon = DF:NewImage (icon_button, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentSpellIcon")
|
||||
local icon_button_icon = DF:NewImage(icon_button, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentSpellIcon")
|
||||
icon_button_icon:SetPoint(0, 0)
|
||||
icon_button:InstallCustomTexture()
|
||||
icon_button:SetPoint("left", spellicon, "right", 2, 0)
|
||||
@@ -6325,7 +6325,7 @@ do
|
||||
end
|
||||
local icon = addframe.spellIconButton.icon.texture
|
||||
|
||||
id = tonumber (id)
|
||||
id = tonumber(id)
|
||||
if (not id) then
|
||||
return _detalhes:Msg(Loc ["STRING_OPTIONS_SPELL_IDERROR"])
|
||||
end
|
||||
@@ -6404,7 +6404,7 @@ do
|
||||
--warning
|
||||
if (not _detalhes:GetPlugin ("DETAILS_PLUGIN_CHART_VIEWER")) then
|
||||
local label = DF:NewLabel(sectionFrame, _, "$parentPluginWarningLabel", "PluginWarningLabel", Loc ["STRING_OPTIONS_CHART_PLUGINWARNING"], "GameFontNormal")
|
||||
local image = DF:NewImage (sectionFrame, [[Interface\DialogFrame\UI-Dialog-Icon-AlertNew]])
|
||||
local image = DF:NewImage(sectionFrame, [[Interface\DialogFrame\UI-Dialog-Icon-AlertNew]])
|
||||
label:SetPoint("topright", sectionFrame, "topright", -42, -10)
|
||||
label:SetJustifyH("left")
|
||||
label:SetWidth(160)
|
||||
@@ -6517,7 +6517,7 @@ do
|
||||
|
||||
big_code_editor2:Show()
|
||||
big_code_editor2.editbox:HighlightText()
|
||||
big_code_editor2.editbox:SetFocus (true)
|
||||
big_code_editor2.editbox:SetFocus(true)
|
||||
else
|
||||
Details:Msg("error exporting the time capture.") --localize-me
|
||||
end
|
||||
@@ -6716,7 +6716,7 @@ do
|
||||
local import = function()
|
||||
importframe:Show()
|
||||
importframe:SetText("")
|
||||
importframe:SetFocus (true)
|
||||
importframe:SetFocus(true)
|
||||
addframe:Hide()
|
||||
big_code_editor:ClearFocus()
|
||||
big_code_editor:Hide()
|
||||
|
||||
+156
-156
File diff suppressed because it is too large
Load Diff
@@ -257,7 +257,7 @@
|
||||
if (playerObject:IsPlayer()) then
|
||||
local unitClassID = classIds [playerObject:Class()] or 13
|
||||
local unitName = playerObject:Name()
|
||||
local playerPosition = (((unitClassID or 0) + 128) ^ 4) + tonumber (string.byte(unitName, 1) .. "" .. string.byte(unitName, 2))
|
||||
local playerPosition = (((unitClassID or 0) + 128) ^ 4) + tonumber(string.byte(unitName, 1) .. "" .. string.byte(unitName, 2))
|
||||
tinsert(playerTable, {playerObject, playerPosition, playerObject.total})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -766,12 +766,12 @@ local createDropdown = function(thisFrame)
|
||||
window.recently_report_buttons = {}
|
||||
|
||||
local historyBlockBackground = window:CreateTexture(nil, "background")
|
||||
historyBlockBackground:SetColorTexture (0, 0, 0, .3)
|
||||
historyBlockBackground:SetColorTexture(0, 0, 0, .3)
|
||||
historyBlockBackground:SetSize(160, 158)
|
||||
historyBlockBackground:SetPoint("topleft", window, "topleft", 3, -25)
|
||||
|
||||
local separator = window:CreateTexture(nil, "border")
|
||||
separator:SetColorTexture (0, 0, 0, .6)
|
||||
separator:SetColorTexture(0, 0, 0, .6)
|
||||
separator:SetSize(2, 158)
|
||||
separator:SetPoint("topleft", historyBlockBackground, "topright", 0, 0)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ function panel:Open (text, callback, host, default)
|
||||
panel:SetPoint("center", host, "center")
|
||||
end
|
||||
|
||||
text = text:gsub ("||", "|")
|
||||
text = text:gsub("||", "|")
|
||||
panel.default_text = text
|
||||
panel.editbox:SetText(text)
|
||||
panel.callback = callback
|
||||
|
||||
@@ -51,7 +51,7 @@ function Details.OpenRunCodeWindow()
|
||||
code_editor:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
code_editor:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
|
||||
code_editor.__background:SetColorTexture (0.2317647, 0.2317647, 0.2317647)
|
||||
code_editor.__background:SetColorTexture(0.2317647, 0.2317647, 0.2317647)
|
||||
code_editor.__background:SetVertexColor(0.27, 0.27, 0.27)
|
||||
code_editor.__background:SetAlpha(0.8)
|
||||
code_editor.__background:SetVertTile(true)
|
||||
@@ -82,10 +82,10 @@ function Details.OpenRunCodeWindow()
|
||||
local func, errortext = loadstring (script, "Q")
|
||||
if (not func) then
|
||||
local firstLine = strsplit("\n", script, 2)
|
||||
errortext = errortext:gsub (firstLine, "")
|
||||
errortext = errortext:gsub ("%[string \"", "")
|
||||
errortext = errortext:gsub ("...\"]:", "")
|
||||
errortext = errortext:gsub ("Q\"]:", "")
|
||||
errortext = errortext:gsub(firstLine, "")
|
||||
errortext = errortext:gsub("%[string \"", "")
|
||||
errortext = errortext:gsub("...\"]:", "")
|
||||
errortext = errortext:gsub("Q\"]:", "")
|
||||
errortext = "Line " .. errortext
|
||||
errortext_label.text = errortext
|
||||
else
|
||||
|
||||
@@ -239,7 +239,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
f.DownloadedSize = f.DownloadedSize + length
|
||||
local downloadSpeed = f.DownloadedSize / (time() - f.SyncStartTime)
|
||||
|
||||
f.SyncText:SetText("working [downloading " .. f.DownloadedAmount .. "/" .. f.RequestedAmount .. ", " .. format ("%.2f", downloadSpeed/1024) .. "Kbps]")
|
||||
f.SyncText:SetText("working [downloading " .. f.DownloadedAmount .. "/" .. f.RequestedAmount .. ", " .. format("%.2f", downloadSpeed/1024) .. "Kbps]")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -273,9 +273,9 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
for i = 1, AmtLines do
|
||||
if (f.LatestResourceTable[i]) then
|
||||
local playerName = f.LatestResourceTable[i][1]
|
||||
playerName = playerName:gsub ("%|c%x%x%x%x%x%x%x%x", "")
|
||||
playerName = playerName:gsub ("%|r", "")
|
||||
playerName = playerName:gsub (".*%s", "")
|
||||
playerName = playerName:gsub("%|c%x%x%x%x%x%x%x%x", "")
|
||||
playerName = playerName:gsub("%|r", "")
|
||||
playerName = playerName:gsub(".*%s", "")
|
||||
tinsert(result, {playerName, f.LatestResourceTable[i][2]})
|
||||
else
|
||||
break
|
||||
@@ -290,7 +290,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
end
|
||||
end
|
||||
|
||||
local ReportButton = DF:CreateButton(f, f.BuildReport, 130, 20, Loc ["STRING_OPTIONS_REPORT_ANCHOR"]:gsub (":", ""), nil, nil, nil, "ReportButton", nil, nil, options_button_template, options_text_template)
|
||||
local ReportButton = DF:CreateButton(f, f.BuildReport, 130, 20, Loc ["STRING_OPTIONS_REPORT_ANCHOR"]:gsub(":", ""), nil, nil, nil, "ReportButton", nil, nil, options_button_template, options_text_template)
|
||||
ReportButton:SetPoint("right", GuildSyncButton, "left", -2, 0)
|
||||
ReportButton:SetIcon ([[Interface\GLUES\CharacterSelect\RestoreButton]], 12, 12, "overlay", {0.2, .8, 0.2, .8}, nil, 4)
|
||||
|
||||
@@ -674,7 +674,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
local roleTable = encounter [role]
|
||||
|
||||
local date = encounter.date
|
||||
date = date:gsub (".*%s", "")
|
||||
date = date:gsub(".*%s", "")
|
||||
date = date:sub (1, -4)
|
||||
|
||||
local player = roleTable [playerName]
|
||||
@@ -698,7 +698,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
GameCooltip:AddLine("Total Done:", Details:ToK2 (self.data.value), 1, "white")
|
||||
GameCooltip:AddLine("Dps:", Details:ToK2 (self.data.value / self.data.elapsed), 1, "white")
|
||||
GameCooltip:AddLine("Item Level:", floor(self.data.data [2]), 1, "white")
|
||||
GameCooltip:AddLine("Date:", self.data.fulldate:gsub (".*%s", ""), 1, "white")
|
||||
GameCooltip:AddLine("Date:", self.data.fulldate:gsub(".*%s", ""), 1, "white")
|
||||
|
||||
GameCooltip:SetOwner(self.ball.tooltip_anchor)
|
||||
GameCooltip:Show()
|
||||
@@ -734,7 +734,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
local roleTable = encounter [role]
|
||||
|
||||
local date = encounter.date
|
||||
date = date:gsub (".*%s", "")
|
||||
date = date:gsub(".*%s", "")
|
||||
date = date:sub (1, -4)
|
||||
|
||||
for playerName, playerTable in pairs(roleTable) do
|
||||
@@ -821,7 +821,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
local roleTable = encounter [role]
|
||||
|
||||
local date = encounter.date
|
||||
date = date:gsub (".*%s", "")
|
||||
date = date:gsub(".*%s", "")
|
||||
date = date:sub (1, -4)
|
||||
amt_encounters = amt_encounters + 1
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ do
|
||||
title_icon:SetPoint("topleft", x, y)
|
||||
local texture, l, r, t, b = Details:GetAttributeIcon (attribute)
|
||||
title_icon:SetTexture(texture)
|
||||
title_icon:SetTexCoord (l, r, t, b)
|
||||
title_icon:SetTexCoord(l, r, t, b)
|
||||
title_icon:SetSize(18, 18)
|
||||
local title_str = allDisplaysFrame:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
title_str:SetPoint("left", title_icon, "right", 2, 0)
|
||||
@@ -242,7 +242,7 @@ do
|
||||
|
||||
allDisplaysFrame.check_text_size (button.text)
|
||||
button.texture:SetTexture(Details.sub_atributos [attribute].icones [i] [1])
|
||||
button.texture:SetTexCoord (unpack(Details.sub_atributos [attribute].icones [i] [2]))
|
||||
button.texture:SetTexCoord(unpack(Details.sub_atributos [attribute].icones [i] [2]))
|
||||
tinsert(allDisplaysFrame.buttons [attribute], button)
|
||||
y = y - 17
|
||||
end
|
||||
@@ -280,7 +280,7 @@ do
|
||||
allDisplaysFrame.buttons[6] = {}
|
||||
local title_icon = allDisplaysFrame:CreateTexture(nil, "overlay")
|
||||
title_icon:SetTexture([[Interface\AddOns\Details\images\modo_icones]])
|
||||
title_icon:SetTexCoord (32/256*3, 32/256*4, 0, 1)
|
||||
title_icon:SetTexCoord(32/256*3, 32/256*4, 0, 1)
|
||||
title_icon:SetSize(16, 16)
|
||||
|
||||
local title_str = allDisplaysFrame:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
@@ -311,7 +311,7 @@ do
|
||||
|
||||
allDisplaysFrame.check_text_size (button.text)
|
||||
button.texture:SetTexture(custom.icon)
|
||||
button.texture:SetTexCoord (0.078125, 0.921875, 0.078125, 0.921875)
|
||||
button.texture:SetTexCoord(0.078125, 0.921875, 0.078125, 0.921875)
|
||||
button:Show()
|
||||
|
||||
button_index = button_index + 1
|
||||
@@ -354,7 +354,7 @@ do
|
||||
|
||||
allDisplaysFrame.check_text_size(button.text)
|
||||
button.texture:SetTexture(ptable[2])
|
||||
button.texture:SetTexCoord (0.078125, 0.921875, 0.078125, 0.921875)
|
||||
button.texture:SetTexCoord(0.078125, 0.921875, 0.078125, 0.921875)
|
||||
button:Show()
|
||||
|
||||
button_index = button_index + 1
|
||||
@@ -542,7 +542,7 @@ function Details.switch:ShowMe(instancia)
|
||||
|
||||
local background = button:CreateTexture(nil, "background")
|
||||
background:SetTexture("Interface\\SPELLBOOK\\Spellbook-Parts")
|
||||
background:SetTexCoord (0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
background:SetTexCoord(0.31250000, 0.96484375, 0.37109375, 0.52343750)
|
||||
background:SetWidth(85)
|
||||
background:SetPoint("topleft", s.widget, "topleft", -16, 3)
|
||||
background:SetPoint("bottomright", s.widget, "bottomright", -3, -5)
|
||||
@@ -623,12 +623,12 @@ function Details.switch:ShowMe(instancia)
|
||||
local block1 = Details.switch:GetSegmentBlock (1)
|
||||
block1:SetText(Loc["STRING_CURRENTFIGHT"])
|
||||
block1.texture:SetTexture([[Interface\Scenarios\ScenariosParts]])
|
||||
block1.texture:SetTexCoord (55/512, 81/512, 368/512, 401/512)
|
||||
block1.texture:SetTexCoord(55/512, 81/512, 368/512, 401/512)
|
||||
|
||||
local block2 = Details.switch:GetSegmentBlock (2)
|
||||
block2:SetText(Loc["STRING_SEGMENT_OVERALL"])
|
||||
block2.texture:SetTexture([[Interface\Scenarios\ScenariosParts]])
|
||||
block2.texture:SetTexCoord (55/512, 81/512, 368/512, 401/512)
|
||||
block2.texture:SetTexCoord(55/512, 81/512, 368/512, 401/512)
|
||||
end
|
||||
|
||||
Details.switch:ClearSegmentBlocks()
|
||||
@@ -648,7 +648,7 @@ function Details.switch:ShowMe(instancia)
|
||||
local L, R, T, B, Texture = Details:GetBossIcon (combat.is_boss.mapid, combat.is_boss.index)
|
||||
if (L) then
|
||||
block.texture:SetTexture(Texture)
|
||||
block.texture:SetTexCoord (L, R, T, B)
|
||||
block.texture:SetTexCoord(L, R, T, B)
|
||||
else
|
||||
block.texture:SetTexture([[Interface\Scenarios\ScenarioIcon-Boss]])
|
||||
end
|
||||
|
||||
+78
-78
@@ -68,7 +68,7 @@ local text_dispell_prototype = {
|
||||
["events"] = "COMBAT_LOG_EVENT_UNFILTERED, ENCOUNTER_START",
|
||||
["use_spellName"] = false,
|
||||
["use_spellId"] = false,
|
||||
["custom"] = "function(event, time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)\n if (event == \"COMBAT_LOG_EVENT_UNFILTERED\") then\n \n if ((token == \"SPELL_DISPEL\" or token == \"SPELL_STOLEN\") and extraSpellID == 159947) then\n aura_env.dispelled = aura_env.dispelled + 1\n aura_env.dispels_by [who_name] = (aura_env.dispels_by [who_name] or 0) + 1\n \n aura_env.text = aura_env.text .. \"|cffd2e8ff\" .. who_name .. \" (\" .. aura_env.dispels_by [who_name] .. \") \".. \"|r\\n\"\n \n if (select(2, aura_env.text:gsub (\"\\n\", \"\")) == 9) then\n aura_env.text = aura_env.text:gsub (\".-\\n\", \"\", 1)\n end\n return true\n end \n else\n aura_env.text = \"\"\n aura_env.success = 0\n aura_env.dispelled = 0\n wipe (aura_env.dispels_by)\n return true \n end\nend",
|
||||
["custom"] = "function(event, time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)\n if (event == \"COMBAT_LOG_EVENT_UNFILTERED\") then\n \n if ((token == \"SPELL_DISPEL\" or token == \"SPELL_STOLEN\") and extraSpellID == 159947) then\n aura_env.dispelled = aura_env.dispelled + 1\n aura_env.dispels_by [who_name] = (aura_env.dispels_by [who_name] or 0) + 1\n \n aura_env.text = aura_env.text .. \"|cffd2e8ff\" .. who_name .. \" (\" .. aura_env.dispels_by [who_name] .. \") \".. \"|r\\n\"\n \n if (select(2, aura_env.text:gsub(\"\\n\", \"\")) == 9) then\n aura_env.text = aura_env.text:gsub(\".-\\n\", \"\", 1)\n end\n return true\n end \n else\n aura_env.text = \"\"\n aura_env.success = 0\n aura_env.dispelled = 0\n wipe (aura_env.dispels_by)\n return true \n end\nend",
|
||||
["spellIds"] = {
|
||||
},
|
||||
["use_message"] = true,
|
||||
@@ -827,7 +827,7 @@ local text_dbm_timerbar_prototype = {
|
||||
["fontSize"] = 60,
|
||||
["color"] = {0.8, 1, 0.8, 1},
|
||||
["displayText"] = "%c\n",
|
||||
["customText"] = "function()\n local at = aura_env.untrigger_at\n if (at) then\n return \"\" .. aura_env.ability_text .. \"\\n==> \" .. format (\"%.1f\", at - GetTime()) .. \" <==\"\n else\n return \"\"\n end \n \nend\n",
|
||||
["customText"] = "function()\n local at = aura_env.untrigger_at\n if (at) then\n return \"\" .. aura_env.ability_text .. \"\\n==> \" .. format(\"%.1f\", at - GetTime()) .. \" <==\"\n else\n return \"\"\n end \n \nend\n",
|
||||
["yOffset"] = 157.554321289063,
|
||||
["anchorPoint"] = "CENTER",
|
||||
["customTextUpdate"] = "update",
|
||||
@@ -1429,12 +1429,12 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
--check if there is a group for our auras
|
||||
--[=[
|
||||
if (not WeakAurasSaved.displays ["Details! Aura Group"]) then
|
||||
local group = _detalhes.table.copy ({}, group_prototype)
|
||||
local group = _detalhes.table.copy({}, group_prototype)
|
||||
WeakAuras.Add (group)
|
||||
end
|
||||
|
||||
if (not WeakAurasSaved.displays ["Details! Boss Mods Group"]) then
|
||||
local group = _detalhes.table.copy ({}, group_prototype_boss_mods)
|
||||
local group = _detalhes.table.copy({}, group_prototype_boss_mods)
|
||||
WeakAuras.Add (group)
|
||||
end
|
||||
--]=]
|
||||
@@ -1454,7 +1454,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
icon_glow = nil
|
||||
group = nil
|
||||
|
||||
new_aura = _detalhes.table.copy ({}, text_interrupt_prototype)
|
||||
new_aura = _detalhes.table.copy({}, text_interrupt_prototype)
|
||||
|
||||
new_aura.trigger.custom = [[
|
||||
function(event, time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)
|
||||
@@ -1466,8 +1466,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
aura_env.interrupted = aura_env.interrupted + 1
|
||||
aura_env.text = aura_env.text .. "|cffc5ffc5" .. who_name .. " (" .. aura_env.interrupted .. ") ".. "|r\n"
|
||||
end
|
||||
if (select(2, aura_env.text:gsub ("\n", "")) == 9) then
|
||||
aura_env.text = aura_env.text:gsub (".-\n", "", 1)
|
||||
if (select(2, aura_env.text:gsub("\n", "")) == 9) then
|
||||
aura_env.text = aura_env.text:gsub(".-\n", "", 1)
|
||||
end
|
||||
return true
|
||||
else
|
||||
@@ -1479,8 +1479,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
end
|
||||
]]
|
||||
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub ("@spellid", spellid)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub ("@spell_casted", icon_text)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub("@spellid", spellid)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub("@spell_casted", icon_text)
|
||||
|
||||
--size
|
||||
new_aura.fontSize = min (icon_size, 24)
|
||||
@@ -1499,7 +1499,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
icon_glow = nil
|
||||
group = nil
|
||||
|
||||
new_aura = _detalhes.table.copy ({}, text_dispell_prototype)
|
||||
new_aura = _detalhes.table.copy({}, text_dispell_prototype)
|
||||
|
||||
new_aura.trigger.custom = [[
|
||||
function(event, time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)
|
||||
@@ -1509,8 +1509,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
aura_env.dispels_by [who_name] = (aura_env.dispels_by [who_name] or 0) + 1
|
||||
aura_env.text = aura_env.text .. "|cffd2e8ff" .. who_name .. " (" .. aura_env.dispels_by [who_name] .. ") ".. "|r\n"
|
||||
|
||||
if (select(2, aura_env.text:gsub ("\n", "")) == 11) then
|
||||
aura_env.text = aura_env.text:gsub (".-\n", "", 2)
|
||||
if (select(2, aura_env.text:gsub("\n", "")) == 11) then
|
||||
aura_env.text = aura_env.text:gsub(".-\n", "", 2)
|
||||
aura_env.text = "@title\n" .. aura_env.text
|
||||
end
|
||||
return true
|
||||
@@ -1525,8 +1525,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
end
|
||||
]]
|
||||
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub ("@spellid", spellid)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub ("@title", icon_text)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub("@spellid", spellid)
|
||||
new_aura.trigger.custom = new_aura.trigger.custom:gsub("@title", icon_text)
|
||||
|
||||
--size
|
||||
new_aura.fontSize = min (icon_size, 24)
|
||||
@@ -1542,18 +1542,18 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
|
||||
--create the default aura table
|
||||
if (aura_type == "icon") then
|
||||
new_aura = _detalhes.table.copy ({}, icon_dbm_timerbar_prototype)
|
||||
new_aura = _detalhes.table.copy({}, icon_dbm_timerbar_prototype)
|
||||
elseif (aura_type == "aurabar") then
|
||||
new_aura = _detalhes.table.copy ({}, bar_dbm_timerbar_prototype)
|
||||
new_aura = _detalhes.table.copy({}, bar_dbm_timerbar_prototype)
|
||||
elseif (aura_type == "text") then
|
||||
new_aura = _detalhes.table.copy ({}, text_dbm_timerbar_prototype)
|
||||
new_aura = _detalhes.table.copy({}, text_dbm_timerbar_prototype)
|
||||
end
|
||||
|
||||
--text and icon
|
||||
if (aura_type == "aurabar") then
|
||||
icon_text = icon_text:gsub ("= ", "")
|
||||
icon_text = icon_text:gsub (" =", "")
|
||||
icon_text = icon_text:gsub ("=", "")
|
||||
icon_text = icon_text:gsub("= ", "")
|
||||
icon_text = icon_text:gsub(" =", "")
|
||||
icon_text = icon_text:gsub("=", "")
|
||||
new_aura.displayTextLeft = icon_text
|
||||
new_aura.displayIcon = icon_texture
|
||||
elseif (aura_type == "icon") then
|
||||
@@ -1579,25 +1579,25 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
aura_env.remaining_trigger = @countdown
|
||||
]]
|
||||
|
||||
init_start = init_start:gsub ("@text", icon_text)
|
||||
init_start = init_start:gsub ("@countdown", floor(stacksize))
|
||||
new_aura.trigger.remaining = tostring (floor(stacksize))
|
||||
init_start = init_start:gsub("@text", icon_text)
|
||||
init_start = init_start:gsub("@countdown", floor(stacksize))
|
||||
new_aura.trigger.remaining = tostring(floor(stacksize))
|
||||
new_aura.actions.init.custom = init_start
|
||||
|
||||
if (other_values.dbm_timer_id) then
|
||||
new_aura.trigger.event = "DBM Timer"
|
||||
local timerId = tostring (other_values.dbm_timer_id)
|
||||
local timerId = tostring(other_values.dbm_timer_id)
|
||||
|
||||
--print("timerId:", other_values.dbm_timer_id, type(other_values.dbm_timer_id), timerId:find ("%s"))
|
||||
--print("timerId:", other_values.dbm_timer_id, type(other_values.dbm_timer_id), timerId:find("%s"))
|
||||
--other_values.spellid
|
||||
|
||||
--if (timerId:find ("%s")) then
|
||||
--if (timerId:find("%s")) then
|
||||
--spellid timers
|
||||
new_aura.trigger.id = ""
|
||||
new_aura.trigger.use_id = false
|
||||
new_aura.trigger.spellId_operator = "=="
|
||||
new_aura.trigger.use_spellId = true
|
||||
new_aura.trigger.spellId = tostring (other_values.spellid)
|
||||
new_aura.trigger.spellId = tostring(other_values.spellid)
|
||||
--else
|
||||
--ej timers
|
||||
-- new_aura.trigger.id = timerId
|
||||
@@ -1607,7 +1607,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
new_aura.trigger.use_id = false
|
||||
new_aura.trigger.spellId_operator = "=="
|
||||
new_aura.trigger.use_spellId = true
|
||||
new_aura.trigger.spellId = tostring (other_values.bw_timer_id)
|
||||
new_aura.trigger.spellId = tostring(other_values.bw_timer_id)
|
||||
new_aura.trigger.event = "BigWigs Timer"
|
||||
end
|
||||
|
||||
@@ -1617,17 +1617,17 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
local init_start = [[
|
||||
aura_env.reimaningTime = @countdown
|
||||
]]
|
||||
init_start = init_start:gsub ("@countdown", floor(stacksize))
|
||||
trigger.remaining = tostring (floor(stacksize))
|
||||
init_start = init_start:gsub("@countdown", floor(stacksize))
|
||||
trigger.remaining = tostring(floor(stacksize))
|
||||
new_aura.actions.init.custom = init_start
|
||||
|
||||
if (other_values.dbm_timer_id) then
|
||||
trigger.event = "DBM Timer"
|
||||
trigger.spellId = tostring (other_values.spellid)
|
||||
trigger.spellId = tostring(other_values.spellid)
|
||||
|
||||
elseif (other_values.bw_timer_id) then
|
||||
trigger.event = "BigWigs Timer"
|
||||
trigger.spellId = tostring (other_values.bw_timer_id)
|
||||
trigger.spellId = tostring(other_values.bw_timer_id)
|
||||
trigger.spellId_operator = "=="
|
||||
end
|
||||
end
|
||||
@@ -1635,18 +1635,18 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
else
|
||||
|
||||
if (aura_type == "icon") then
|
||||
new_aura = _detalhes.table.copy ({}, icon_prototype)
|
||||
new_aura = _detalhes.table.copy({}, icon_prototype)
|
||||
elseif (aura_type == "aurabar") then
|
||||
new_aura = _detalhes.table.copy ({}, aurabar_prototype)
|
||||
new_aura = _detalhes.table.copy({}, aurabar_prototype)
|
||||
elseif (aura_type == "text") then
|
||||
new_aura = _detalhes.table.copy ({}, text_prototype)
|
||||
new_aura = _detalhes.table.copy({}, text_prototype)
|
||||
new_aura.displayText = spellname
|
||||
end
|
||||
|
||||
if (target) then
|
||||
if (target == 1) then --Debuff on Player
|
||||
local add = _detalhes.table.copy ({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellIds[1] = "" --spellid
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.auranames = {tostring(spellid)}
|
||||
@@ -1663,8 +1663,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 2) then --Debuff on Target
|
||||
local add = _detalhes.table.copy ({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellIds[1] = "" --spellid
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.auranames = {tostring(spellid)}
|
||||
@@ -1683,8 +1683,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 3) then --Debuff on Focus
|
||||
local add = _detalhes.table.copy ({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, debuff_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellIds[1] = "" --spellid
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.auranames = {tostring(spellid)}
|
||||
@@ -1700,7 +1700,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 11) then --Buff on Player
|
||||
local add = _detalhes.table.copy ({}, buff_prototype)
|
||||
local add = _detalhes.table.copy({}, buff_prototype)
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.unit = "player"
|
||||
add.trigger.useName = true
|
||||
@@ -1714,8 +1714,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 12) then --Buff on Target
|
||||
local add = _detalhes.table.copy ({}, buff_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, buff_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellIds[1] = "" --spellid
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.unit = "target"
|
||||
@@ -1729,8 +1729,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 13) then --Buff on Focus
|
||||
local add = _detalhes.table.copy ({}, buff_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, buff_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellIds[1] = "" --spellid
|
||||
add.trigger.names = nil --spellname
|
||||
add.trigger.auranames = {tostring(spellid)}
|
||||
@@ -1746,8 +1746,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 21) then --Spell Cast Started
|
||||
local add = _detalhes.table.copy ({}, cast_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, cast_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellName = spellname
|
||||
add.trigger.subeventSuffix = "_CAST_START"
|
||||
add.trigger.duration = stacksize
|
||||
@@ -1758,8 +1758,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (target == 22) then --Spell Cast Successful
|
||||
local add = _detalhes.table.copy ({}, cast_prototype)
|
||||
add.trigger.spellId = tostring (spellid)
|
||||
local add = _detalhes.table.copy({}, cast_prototype)
|
||||
add.trigger.spellId = tostring(spellid)
|
||||
add.trigger.spellName = spellname
|
||||
if (not use_spellid) then
|
||||
add.trigger.use_spellName = true
|
||||
@@ -1777,7 +1777,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
end
|
||||
|
||||
else
|
||||
new_aura.trigger.spellId = tostring (spellid)
|
||||
new_aura.trigger.spellId = tostring(spellid)
|
||||
new_aura.trigger.name = spellname
|
||||
tinsert(new_aura.trigger.spellIds, spellid)
|
||||
end
|
||||
@@ -1796,8 +1796,8 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
--check stack size
|
||||
if (stacksize and stacksize >= 1) then
|
||||
stacksize = floor(stacksize)
|
||||
local add = _detalhes.table.copy ({}, stack_prototype)
|
||||
add.trigger.count = tostring (stacksize)
|
||||
local add = _detalhes.table.copy({}, stack_prototype)
|
||||
add.trigger.count = tostring(stacksize)
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
end
|
||||
|
||||
@@ -1806,7 +1806,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
if (aura_type == "text") then
|
||||
new_aura.displayText = icon_text
|
||||
else
|
||||
local add = _detalhes.table.copy ({}, widget_text_prototype)
|
||||
local add = _detalhes.table.copy({}, widget_text_prototype)
|
||||
add.displayStacks = icon_text
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
end
|
||||
@@ -1831,25 +1831,25 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
if (encounter_id) then
|
||||
new_aura.load = new_aura.load or {}
|
||||
new_aura.load.use_encounterid = true
|
||||
new_aura.load.encounterid = tostring (encounter_id)
|
||||
new_aura.load.encounterid = tostring(encounter_id)
|
||||
end
|
||||
|
||||
--using sound
|
||||
if (sound and type(sound) == "table") then
|
||||
local add = _detalhes.table.copy ({}, sound_prototype_custom)
|
||||
local add = _detalhes.table.copy({}, sound_prototype_custom)
|
||||
add.actions.start.sound_path = sound.sound_path
|
||||
add.actions.start.sound_channel = sound.sound_channel or "Master"
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
|
||||
elseif (sound and sound ~= "" and not sound:find ("Quiet.ogg")) then
|
||||
local add = _detalhes.table.copy ({}, sound_prototype)
|
||||
elseif (sound and sound ~= "" and not sound:find("Quiet.ogg")) then
|
||||
local add = _detalhes.table.copy({}, sound_prototype)
|
||||
add.actions.start.sound = sound
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
end
|
||||
|
||||
--chat message
|
||||
if (chat and chat ~= "") then
|
||||
local add = _detalhes.table.copy ({}, chat_prototype)
|
||||
local add = _detalhes.table.copy({}, chat_prototype)
|
||||
add.actions.start.message = chat
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
end
|
||||
@@ -1866,7 +1866,7 @@ function _detalhes:CreateWeakAura (aura_type, spellid, use_spellid, spellname, n
|
||||
|
||||
--check is is using glow effect
|
||||
if (icon_glow) then
|
||||
local add = _detalhes.table.copy ({}, glow_prototype)
|
||||
local add = _detalhes.table.copy({}, glow_prototype)
|
||||
add.actions.start.glow_frame = "WeakAuras:" .. new_aura.id
|
||||
_detalhes.table.overwrite (new_aura, add)
|
||||
end
|
||||
@@ -1971,11 +1971,11 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
--check if there is a group for our auras
|
||||
if (WeakAuras and WeakAurasSaved) then
|
||||
if (not WeakAurasSaved.displays ["Details! Aura Group"]) then
|
||||
local group = _detalhes.table.copy ({}, group_prototype)
|
||||
local group = _detalhes.table.copy({}, group_prototype)
|
||||
WeakAuras.Add (group)
|
||||
end
|
||||
if (not WeakAurasSaved.displays ["Details! Boss Mods Group"]) then
|
||||
local group = _detalhes.table.copy ({}, group_prototype_boss_mods)
|
||||
local group = _detalhes.table.copy({}, group_prototype_boss_mods)
|
||||
WeakAuras.Add (group)
|
||||
end
|
||||
end
|
||||
@@ -2053,7 +2053,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
--aura name
|
||||
local name_label = fw:CreateLabel(f, "Aura Name: ", nil, nil, "GameFontNormal")
|
||||
local name_textentry = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "AuraName", "$parentAuraName")
|
||||
local name_textentry = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "AuraName", "$parentAuraName")
|
||||
name_textentry:SetTemplate(slider_template)
|
||||
name_textentry:SetPoint("left", name_label, "right", 2, 0)
|
||||
f.name = name_textentry
|
||||
@@ -2129,7 +2129,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
f.OnSelectAuraType = OnSelectAuraType
|
||||
|
||||
local AuraTypeBackground = f:CreateTexture(nil, "border")
|
||||
AuraTypeBackground:SetColorTexture (.4, .4, .4, .1)
|
||||
AuraTypeBackground:SetColorTexture(.4, .4, .4, .1)
|
||||
AuraTypeBackground:SetHeight(64)
|
||||
AuraTypeBackground:SetPoint("topleft", f, "topleft", 10, -79)
|
||||
AuraTypeBackground:SetPoint("topright", f, "topright", -10, -79)
|
||||
@@ -2244,7 +2244,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
--spellname
|
||||
local spellname_label = fw:CreateLabel(f, "Spell Name: ", nil, nil, "GameFontNormal")
|
||||
local spellname_textentry = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "SpellName", "$parentSpellName")
|
||||
local spellname_textentry = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "SpellName", "$parentSpellName")
|
||||
spellname_textentry:SetTemplate(slider_template)
|
||||
spellname_textentry:SetPoint("left", spellname_label, "right", 2, 0)
|
||||
f.spellname = spellname_textentry
|
||||
@@ -2252,7 +2252,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
--spellid
|
||||
local auraid_label = fw:CreateLabel(f, "Spell Id: ", nil, nil, "GameFontNormal")
|
||||
local auraid_textentry = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "AuraSpellId", "$parentAuraSpellId")
|
||||
local auraid_textentry = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "AuraSpellId", "$parentAuraSpellId")
|
||||
auraid_textentry:SetTemplate(slider_template)
|
||||
auraid_textentry:Disable()
|
||||
auraid_textentry:SetPoint("left", auraid_label, "right", 2, 0)
|
||||
@@ -2280,7 +2280,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
f.IconButton.icon.texture = texture
|
||||
end
|
||||
local icon_pick_button = fw:NewButton(f, nil, "$parentIconButton", "IconButton", 20, 20, function() fw:IconPick (icon_button_func, true) end)
|
||||
local icon_button_icon = fw:NewImage (icon_pick_button, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
local icon_button_icon = fw:NewImage(icon_pick_button, [[Interface\ICONS\TEMP]], 19, 19, "background", nil, "icon", "$parentIcon")
|
||||
icon_pick_button:InstallCustomTexture()
|
||||
|
||||
icon_pick_button:SetPoint("left", icon_label, "right", 2, 0)
|
||||
@@ -2359,7 +2359,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
local already_added = {}
|
||||
|
||||
for name, soundFile in pairs(game_sounds) do
|
||||
name = name:gsub ("(%a)([%w_']*)", titlecase)
|
||||
name = name:gsub("(%a)([%w_']*)", titlecase)
|
||||
if (not already_added [name]) then
|
||||
sounds [#sounds+1] = {name = name, file = soundFile, gamesound = true}
|
||||
already_added [name] = true
|
||||
@@ -2367,7 +2367,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
end
|
||||
|
||||
for name, soundFile in pairs(LibStub:GetLibrary("LibSharedMedia-3.0"):HashTable ("sound")) do
|
||||
name = name:gsub ("(%a)([%w_']*)", titlecase)
|
||||
name = name:gsub("(%a)([%w_']*)", titlecase)
|
||||
if (not already_added [name]) then
|
||||
sounds [#sounds+1] = {name = name, file = soundFile}
|
||||
already_added [name] = true
|
||||
@@ -2376,7 +2376,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
if (WeakAuras and WeakAuras.sound_types) then
|
||||
for soundFile, name in pairs(WeakAuras.sound_types) do
|
||||
name = name:gsub ("(%a)([%w_']*)", titlecase)
|
||||
name = name:gsub("(%a)([%w_']*)", titlecase)
|
||||
if (not already_added [name]) then
|
||||
sounds [#sounds+1] = {name = name, file = soundFile}
|
||||
end
|
||||
@@ -2386,7 +2386,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
table.sort (sounds, sort)
|
||||
|
||||
for _, sound in ipairs(sounds) do
|
||||
if (sound.name:find ("D_")) then --details sound
|
||||
if (sound.name:find("D_")) then --details sound
|
||||
tinsert(t, {color = "orange", label = sound.name, value = sound.file, icon = [[Interface\Buttons\UI-GuildButton-MOTD-Up]], onclick = play_sound, iconsize = iconsize})
|
||||
elseif (sound.gamesound) then --game sound
|
||||
tinsert(t, {color = "yellow", label = sound.name, value = {sound_path = sound.file}, icon = [[Interface\Buttons\UI-GuildButton-MOTD-Up]], onclick = play_sound, iconsize = iconsize})
|
||||
@@ -2404,14 +2404,14 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
--say something
|
||||
local say_something_label = fw:CreateLabel(f, "/Say on Trigger: ", nil, nil, "GameFontNormal")
|
||||
local say_something = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "SaySomething", "$parentSaySomething")
|
||||
local say_something = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "SaySomething", "$parentSaySomething")
|
||||
say_something:SetTemplate(slider_template)
|
||||
say_something:SetPoint("left", say_something_label, "right", 2, 0)
|
||||
say_something.tooltip = "Your character /say this phrase when the aura triggers."
|
||||
|
||||
--aura text
|
||||
local aura_text_label = fw:CreateLabel(f, "Aura Text: ", nil, nil, "GameFontNormal")
|
||||
local aura_text = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "AuraText", "$parentAuraText")
|
||||
local aura_text = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "AuraText", "$parentAuraText")
|
||||
aura_text:SetTemplate(slider_template)
|
||||
aura_text:SetPoint("left", aura_text_label, "right", 2, 0)
|
||||
aura_text.tooltip = "Text shown at aura's icon right side."
|
||||
@@ -2442,7 +2442,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
--encounter id
|
||||
local encounterid_label = fw:CreateLabel(f, "Encounter ID: ", nil, nil, "GameFontNormal")
|
||||
local encounterid = fw:CreateTextEntry (f, _detalhes.empty_function, 150, 20, "EncounterIdText", "$parentEncounterIdText")
|
||||
local encounterid = fw:CreateTextEntry(f, _detalhes.empty_function, 150, 20, "EncounterIdText", "$parentEncounterIdText")
|
||||
encounterid:SetTemplate(slider_template)
|
||||
encounterid:SetPoint("left", encounterid_label, "right", 2, 0)
|
||||
encounterid.tooltip = "Only load this aura for this raid encounter."
|
||||
@@ -2517,7 +2517,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
end
|
||||
|
||||
--make a copy of the prototype
|
||||
local newGroup = _detalhes.table.copy ({}, group_prototype)
|
||||
local newGroup = _detalhes.table.copy({}, group_prototype)
|
||||
|
||||
--set group settings
|
||||
newGroup.id = groupName
|
||||
@@ -2537,7 +2537,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
end
|
||||
|
||||
local weakauras_newgroup_label = fw:CreateLabel(f, "New WeakAuras Group: ", nil, nil, "GameFontNormal")
|
||||
local weakauras_newgroup_textentry = fw:CreateTextEntry (f, create_wa_group, 150, 20, "NewWeakaurasGroupTextEntry", "$parentNewWeakaurasGroup")
|
||||
local weakauras_newgroup_textentry = fw:CreateTextEntry(f, create_wa_group, 150, 20, "NewWeakaurasGroupTextEntry", "$parentNewWeakaurasGroup")
|
||||
weakauras_newgroup_textentry:SetTemplate(slider_template)
|
||||
weakauras_newgroup_textentry:SetPoint("left", weakauras_newgroup_label, "right", 2, 0)
|
||||
f.weakauras_newgroup = weakauras_newgroup_textentry
|
||||
@@ -2710,7 +2710,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
f.AuraText:SetText("=Not Interrupted!=")
|
||||
aura_text_label.text = "Not Interrupted: "
|
||||
elseif (trigger == 42) then
|
||||
f.AuraText:SetText(DetailsAuraPanel.name.text:gsub ("%(d!%)", "") .. "Dispells")
|
||||
f.AuraText:SetText(DetailsAuraPanel.name.text:gsub("%(d!%)", "") .. "Dispells")
|
||||
aura_text_label.text = "Title Text: "
|
||||
end
|
||||
end
|
||||
@@ -2750,7 +2750,7 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
|
||||
DetailsAuraPanel.name.text = spellname .. " (d!)"
|
||||
DetailsAuraPanel.spellname.text = spellname
|
||||
DetailsAuraPanel.AuraSpellId.text = tostring (spellid)
|
||||
DetailsAuraPanel.AuraSpellId.text = tostring(spellid)
|
||||
DetailsAuraPanel.icon.texture = spellicon
|
||||
|
||||
DetailsAuraPanel.UseGlow.glow_test.animIn:Stop()
|
||||
|
||||
+54
-54
@@ -49,7 +49,7 @@ function _detalhes:OpenWelcomeWindow()
|
||||
local logotipo = window:CreateTexture(nil, "overlay")
|
||||
logotipo:SetPoint("topleft", window, "topleft", 16, -20)
|
||||
logotipo:SetTexture([[Interface\Addons\Details\images\logotipo]])
|
||||
logotipo:SetTexCoord (0.07421875, 0.73828125, 0.51953125, 0.890625)
|
||||
logotipo:SetTexCoord(0.07421875, 0.73828125, 0.51953125, 0.890625)
|
||||
logotipo:SetWidth(186)
|
||||
logotipo:SetHeight(50)
|
||||
|
||||
@@ -66,7 +66,7 @@ function _detalhes:OpenWelcomeWindow()
|
||||
cancel:Disable()
|
||||
|
||||
local cancelText = cancel:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
cancelText:SetTextColor (1, 1, 1)
|
||||
cancelText:SetTextColor(1, 1, 1)
|
||||
cancelText:SetPoint("left", cancel, "right", 2, 0)
|
||||
cancelText:SetText(Loc ["STRING_WELCOME_69"])
|
||||
|
||||
@@ -238,7 +238,7 @@ local window_openned_at = time()
|
||||
local angel = window:CreateTexture(nil, "border")
|
||||
angel:SetPoint("bottomright", window, "bottomright")
|
||||
angel:SetTexture([[Interface\TUTORIALFRAME\UI-TUTORIALFRAME-SPIRITREZ]])
|
||||
angel:SetTexCoord (0.162109375, 0.591796875, 0, 1)
|
||||
angel:SetTexCoord(0.162109375, 0.591796875, 0, 1)
|
||||
angel:SetWidth(442)
|
||||
angel:SetHeight(256)
|
||||
angel:SetAlpha(.2)
|
||||
@@ -263,7 +263,7 @@ local window_openned_at = time()
|
||||
bg55:SetHeight(125*3)
|
||||
bg55:SetWidth(89*3)
|
||||
bg55:SetAlpha(.05)
|
||||
bg55:SetTexCoord (1, 0, 0, 1)
|
||||
bg55:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto55 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto55:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -271,7 +271,7 @@ local window_openned_at = time()
|
||||
|
||||
local texto555 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto555:SetText(Loc ["STRING_WELCOME_45"])
|
||||
texto555:SetTextColor (1, 1, 1, 1)
|
||||
texto555:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local changemind = g:NewLabel(window, _, "$parentChangeMind55Label", "changemind55Label", Loc ["STRING_WELCOME_2"], "GameFontNormal", 9, "orange")
|
||||
window.changemind55Label:SetPoint("center", window, "center")
|
||||
@@ -285,14 +285,14 @@ local window_openned_at = time()
|
||||
texto_appearance:SetHeight(100)
|
||||
texto_appearance:SetJustifyH("left")
|
||||
texto_appearance:SetJustifyV ("top")
|
||||
texto_appearance:SetTextColor (1, 1, 1, 1)
|
||||
texto_appearance:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local skins_image = window:CreateTexture(nil, "overlay")
|
||||
skins_image:SetTexture([[Interface\Addons\Details\images\icons2]])
|
||||
skins_image:SetPoint("topright", window, "topright", -50, -24)
|
||||
skins_image:SetWidth(214*0.7)
|
||||
skins_image:SetHeight(133*0.7)
|
||||
skins_image:SetTexCoord (0, 0.41796875, 0, 0.259765625) --0, 0, 214 133
|
||||
skins_image:SetTexCoord(0, 0.41796875, 0, 0.259765625) --0, 0, 214 133
|
||||
|
||||
--skin
|
||||
local onSelectSkin = function(_, _, skin_name)
|
||||
@@ -334,7 +334,7 @@ local window_openned_at = time()
|
||||
texto_alphabet:SetText(Loc ["STRING_WELCOME_73"]) --"Select the Alphabet or Region:"
|
||||
texto_alphabet:SetJustifyH("left")
|
||||
texto_alphabet:SetJustifyV ("top")
|
||||
texto_alphabet:SetTextColor (1, 1, 1)
|
||||
texto_alphabet:SetTextColor(1, 1, 1)
|
||||
texto_alphabet:SetPoint("topleft", skin_label.widget, "bottomleft", 0, -20)
|
||||
|
||||
local allAlphabetCheckBoxes = {}
|
||||
@@ -697,7 +697,7 @@ local window_openned_at = time()
|
||||
numeral_image:SetHeight(125*3)--125
|
||||
numeral_image:SetWidth(89*3)--82
|
||||
numeral_image:SetAlpha(.05)
|
||||
numeral_image:SetTexCoord (1, 0, 0, 1)
|
||||
numeral_image:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
g:NewLabel(window, _, "$parentChangeMindNumeralLabel", "changemindNumeralLabel", Loc ["STRING_WELCOME_2"], "GameFontNormal", 9, "orange")
|
||||
window.changemindNumeralLabel:SetPoint("center", window, "center")
|
||||
@@ -746,16 +746,16 @@ local window_openned_at = time()
|
||||
sword_icon2:SetTexture([[Interface\Addons\Details\images\icons2]])
|
||||
sword_icon2:SetPoint("topright", window, "topright", -30, -10)
|
||||
sword_icon2:SetSize(128*1.4, 64*1.4)
|
||||
sword_icon2:SetTexCoord (330/512, 509/512, 437/512, 509/512)
|
||||
sword_icon2:SetDrawLayer ("overlay", 2)
|
||||
sword_icon2:SetTexCoord(330/512, 509/512, 437/512, 509/512)
|
||||
sword_icon2:SetDrawLayer("overlay", 2)
|
||||
|
||||
local thedude2 = window:CreateTexture(nil, "overlay")
|
||||
--thedude2:SetTexture([[Interface\TUTORIALFRAME\UI-TutorialFrame-TheDude]])
|
||||
thedude2:SetPoint("bottomright", sword_icon, "bottomleft", 70, 19)
|
||||
thedude2:SetWidth(128*1.0)
|
||||
thedude2:SetHeight(128*1.0)
|
||||
thedude2:SetTexCoord (0, 1, 0, 1)
|
||||
thedude2:SetDrawLayer ("overlay", 3)
|
||||
thedude2:SetTexCoord(0, 1, 0, 1)
|
||||
thedude2:SetDrawLayer("overlay", 3)
|
||||
|
||||
local NumeralType1_text = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
NumeralType1_text:SetText("1K = 1.000 |cFFFFCC00| |r10K = 10.000 |cFFFFCC00| |r100K = 100.000 |cFFFFCC00| |r1M = 1.000.000")
|
||||
@@ -763,7 +763,7 @@ local window_openned_at = time()
|
||||
NumeralType1_text:SetHeight(40)
|
||||
NumeralType1_text:SetJustifyH("left")
|
||||
NumeralType1_text:SetJustifyV ("top")
|
||||
NumeralType1_text:SetTextColor (.8, .8, .8, 1)
|
||||
NumeralType1_text:SetTextColor(.8, .8, .8, 1)
|
||||
NumeralType1_text:SetPoint("topleft", window, "topleft", 40, -150)
|
||||
|
||||
local NumeralType2_text = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
@@ -775,7 +775,7 @@ local window_openned_at = time()
|
||||
--if region is western it'll be using Korean symbols, set a font on the dropdown so it won't show ?????
|
||||
local clientRegion = _detalhes.gump:GetClientRegion()
|
||||
if (clientRegion == "western" or clientRegion == "russia") then
|
||||
_detalhes.gump:SetFontFace (NumeralType2_text, _detalhes.gump:GetBestFontForLanguage ("koKR"))
|
||||
_detalhes.gump:SetFontFace (NumeralType2_text, _detalhes.gump:GetBestFontForLanguage("koKR"))
|
||||
|
||||
else
|
||||
_detalhes.gump:SetFontFace (NumeralType2_text, _detalhes.gump:GetBestFontForLanguage())
|
||||
@@ -788,7 +788,7 @@ local window_openned_at = time()
|
||||
NumeralType2_text:SetHeight(80)
|
||||
NumeralType2_text:SetJustifyH("left")
|
||||
NumeralType2_text:SetJustifyV ("top")
|
||||
NumeralType2_text:SetTextColor (.8, .8, .8, 1)
|
||||
NumeralType2_text:SetTextColor(.8, .8, .8, 1)
|
||||
NumeralType2_text:SetPoint("topleft", window, "topleft", 40, -220)
|
||||
|
||||
if (_detalhes.numerical_system == 1) then --west
|
||||
@@ -816,7 +816,7 @@ local window_openned_at = time()
|
||||
ampulheta:SetHeight(125*3)--125
|
||||
ampulheta:SetWidth(89*3)--82
|
||||
ampulheta:SetAlpha(.05)
|
||||
ampulheta:SetTexCoord (1, 0, 0, 1)
|
||||
ampulheta:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
g:NewLabel(window, _, "$parentChangeMind2Label", "changemind2Label", Loc ["STRING_WELCOME_2"], "GameFontNormal", 9, "orange")
|
||||
window.changemind2Label:SetPoint("center", window, "center")
|
||||
@@ -865,16 +865,16 @@ local window_openned_at = time()
|
||||
sword_icon:SetPoint("topright", window, "topright", -15, -30)
|
||||
sword_icon:SetWidth(64*1.4)
|
||||
sword_icon:SetHeight(64*1.4)
|
||||
sword_icon:SetTexCoord (1, 0, 0, 1)
|
||||
sword_icon:SetDrawLayer ("overlay", 2)
|
||||
sword_icon:SetTexCoord(1, 0, 0, 1)
|
||||
sword_icon:SetDrawLayer("overlay", 2)
|
||||
|
||||
local thedude = window:CreateTexture(nil, "overlay")
|
||||
thedude:SetTexture([[Interface\TUTORIALFRAME\UI-TutorialFrame-TheDude]])
|
||||
thedude:SetPoint("bottomright", sword_icon, "bottomleft", 70, 19)
|
||||
thedude:SetWidth(128*1.0)
|
||||
thedude:SetHeight(128*1.0)
|
||||
thedude:SetTexCoord (0, 1, 0, 1)
|
||||
thedude:SetDrawLayer ("overlay", 3)
|
||||
thedude:SetTexCoord(0, 1, 0, 1)
|
||||
thedude:SetDrawLayer("overlay", 3)
|
||||
|
||||
local chronometer_text = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
chronometer_text:SetText(Loc ["STRING_WELCOME_6"])
|
||||
@@ -882,7 +882,7 @@ local window_openned_at = time()
|
||||
chronometer_text:SetHeight(40)
|
||||
chronometer_text:SetJustifyH("left")
|
||||
chronometer_text:SetJustifyV ("top")
|
||||
chronometer_text:SetTextColor (.8, .8, .8, 1)
|
||||
chronometer_text:SetTextColor(.8, .8, .8, 1)
|
||||
chronometer_text:SetPoint("topleft", window.ChronometerLabel.widget, "topright", 20, 0)
|
||||
|
||||
local continuous_text = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
@@ -891,7 +891,7 @@ local window_openned_at = time()
|
||||
continuous_text:SetHeight(40)
|
||||
continuous_text:SetJustifyH("left")
|
||||
continuous_text:SetJustifyV ("top")
|
||||
continuous_text:SetTextColor (.8, .8, .8, 1)
|
||||
continuous_text:SetTextColor(.8, .8, .8, 1)
|
||||
continuous_text:SetPoint("topleft", window.ContinuousLabel.widget, "topright", 20, 0)
|
||||
|
||||
if (_detalhes.time_type == 1) then --chronometer
|
||||
@@ -956,7 +956,7 @@ local window_openned_at = time()
|
||||
bg:SetHeight(125*3)--125
|
||||
bg:SetWidth(89*3)--82
|
||||
bg:SetAlpha(.05)
|
||||
bg:SetTexCoord (1, 0, 0, 1)
|
||||
bg:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
g:NewLabel(window, _, "$parentChangeMind4Label", "changemind4Label", Loc ["STRING_WELCOME_11"], "GameFontNormal", 9, "orange")
|
||||
window.changemind4Label:SetPoint("center", window, "center")
|
||||
@@ -973,7 +973,7 @@ local window_openned_at = time()
|
||||
interval_text:SetHeight(40)
|
||||
interval_text:SetJustifyH("left")
|
||||
interval_text:SetJustifyV ("top")
|
||||
interval_text:SetTextColor (1, 1, 1, .9)
|
||||
interval_text:SetTextColor(1, 1, 1, .9)
|
||||
interval_text:SetPoint("topleft", window, "topleft", 30, -110)
|
||||
|
||||
local dance_text = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
@@ -982,7 +982,7 @@ local window_openned_at = time()
|
||||
dance_text:SetHeight(40)
|
||||
dance_text:SetJustifyH("left")
|
||||
dance_text:SetJustifyV ("top")
|
||||
dance_text:SetTextColor (1, 1, 1, 1)
|
||||
dance_text:SetTextColor(1, 1, 1, 1)
|
||||
dance_text:SetPoint("topleft", window, "topleft", 30, -175)
|
||||
|
||||
--------------- Update Speed
|
||||
@@ -997,11 +997,11 @@ local window_openned_at = time()
|
||||
window.updatespeedSlider.useDecimals = true
|
||||
local updateColor = function(slider, value)
|
||||
if (value < 1) then
|
||||
slider.amt:SetTextColor (1, value, 0)
|
||||
slider.amt:SetTextColor(1, value, 0)
|
||||
elseif (value > 1) then
|
||||
slider.amt:SetTextColor (-(value-3), 1, 0)
|
||||
slider.amt:SetTextColor(-(value-3), 1, 0)
|
||||
else
|
||||
slider.amt:SetTextColor (1, 1, 0)
|
||||
slider.amt:SetTextColor(1, 1, 0)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1072,8 +1072,8 @@ local window_openned_at = time()
|
||||
mech_icon2:SetWidth(128*1.0)
|
||||
mech_icon2:SetHeight(128*0.6)
|
||||
mech_icon2:SetAlpha(0.6)
|
||||
mech_icon2:SetTexCoord (0, 1, 40/128, 1)
|
||||
mech_icon2:SetDrawLayer ("overlay", 2)
|
||||
mech_icon2:SetTexCoord(0, 1, 40/128, 1)
|
||||
mech_icon2:SetDrawLayer("overlay", 2)
|
||||
|
||||
local update_frame_alert = CreateFrame("frame", nil, window)
|
||||
update_frame_alert:SetScript("OnShow", function()
|
||||
@@ -1123,7 +1123,7 @@ local window_openned_at = time()
|
||||
bg6:SetHeight(125*3)--125
|
||||
bg6:SetWidth(89*3)--82
|
||||
bg6:SetAlpha(.1)
|
||||
bg6:SetTexCoord (1, 0, 0, 1)
|
||||
bg6:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto5 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto5:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1136,14 +1136,14 @@ local window_openned_at = time()
|
||||
texto_stretch:SetHeight(100)
|
||||
texto_stretch:SetJustifyH("left")
|
||||
texto_stretch:SetJustifyV ("top")
|
||||
texto_stretch:SetTextColor (1, 1, 1, 1)
|
||||
texto_stretch:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local stretch_image = window:CreateTexture(nil, "overlay")
|
||||
stretch_image:SetTexture([[Interface\Addons\Details\images\icons]])
|
||||
stretch_image:SetPoint("right", texto_stretch, "left", -12, 0)
|
||||
stretch_image:SetWidth(144)
|
||||
stretch_image:SetHeight(61)
|
||||
stretch_image:SetTexCoord (0.716796875, 1, 0.876953125, 1)
|
||||
stretch_image:SetTexCoord(0.716796875, 1, 0.876953125, 1)
|
||||
|
||||
local stretch_frame_alert = CreateFrame("frame", nil, window)
|
||||
stretch_frame_alert:SetScript("OnHide", function()
|
||||
@@ -1181,7 +1181,7 @@ local window_openned_at = time()
|
||||
bg6:SetHeight(125*3)--125
|
||||
bg6:SetWidth(89*3)--82
|
||||
bg6:SetAlpha(.1)
|
||||
bg6:SetTexCoord (1, 0, 0, 1)
|
||||
bg6:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto6 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto6:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1194,14 +1194,14 @@ local window_openned_at = time()
|
||||
texto_instance_button:SetHeight(100)
|
||||
texto_instance_button:SetJustifyH("left")
|
||||
texto_instance_button:SetJustifyV ("top")
|
||||
texto_instance_button:SetTextColor (1, 1, 1, 1)
|
||||
texto_instance_button:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local instance_button_image = window:CreateTexture(nil, "overlay")
|
||||
instance_button_image:SetTexture([[Interface\Addons\Details\images\icons]])
|
||||
instance_button_image:SetPoint("topright", window, "topright", -16, -70)
|
||||
instance_button_image:SetWidth(198)
|
||||
instance_button_image:SetHeight(141)
|
||||
instance_button_image:SetTexCoord (0.328125, 0.71484375, 0.724609375, 1)
|
||||
instance_button_image:SetTexCoord(0.328125, 0.71484375, 0.724609375, 1)
|
||||
|
||||
local instance_frame_alert = CreateFrame("frame", nil, window)
|
||||
instance_frame_alert:SetScript("OnHide", function()
|
||||
@@ -1237,7 +1237,7 @@ local window_openned_at = time()
|
||||
bg7:SetHeight(125*3)--125
|
||||
bg7:SetWidth(89*3)--82
|
||||
bg7:SetAlpha(.1)
|
||||
bg7:SetTexCoord (1, 0, 0, 1)
|
||||
bg7:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto7 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto7:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1250,14 +1250,14 @@ local window_openned_at = time()
|
||||
texto_shortcut:SetHeight(160)
|
||||
texto_shortcut:SetJustifyH("left")
|
||||
texto_shortcut:SetJustifyV ("top")
|
||||
texto_shortcut:SetTextColor (1, 1, 1, 1)
|
||||
texto_shortcut:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local shortcut_image2 = window:CreateTexture(nil, "overlay")
|
||||
shortcut_image2:SetTexture([[Interface\Addons\Details\images\icons]])
|
||||
shortcut_image2:SetPoint("topright", window, "topright", -22, -87)
|
||||
shortcut_image2:SetWidth(165)
|
||||
shortcut_image2:SetHeight(119)
|
||||
shortcut_image2:SetTexCoord (2/512, 167/512, 306/512, 425/512)
|
||||
shortcut_image2:SetTexCoord(2/512, 167/512, 306/512, 425/512)
|
||||
|
||||
|
||||
local instance1 = _detalhes:GetInstance(1)
|
||||
@@ -1268,17 +1268,17 @@ local window_openned_at = time()
|
||||
bookmark_frame:SetBackdrop({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 64})
|
||||
bookmark_frame:SetBackdropColor(0, 0, 0, 0.8)
|
||||
|
||||
local desc_anchor_topleft = _detalhes.gump:NewImage (bookmark_frame, [[Interface\AddOns\Details\images\options_window]], 75, 106, "artwork", {0.19921875, 0.2724609375, 0.6796875, 0.783203125}, "descAnchorBottomLeftImage", "$parentDescAnchorBottomLeftImage") --204 696 279 802
|
||||
local desc_anchor_topleft = _detalhes.gump:NewImage(bookmark_frame, [[Interface\AddOns\Details\images\options_window]], 75, 106, "artwork", {0.19921875, 0.2724609375, 0.6796875, 0.783203125}, "descAnchorBottomLeftImage", "$parentDescAnchorBottomLeftImage") --204 696 279 802
|
||||
desc_anchor_topleft:SetPoint("topleft", bookmark_frame, "topleft", -5, 5)
|
||||
|
||||
local desc_anchor_bottomleft = _detalhes.gump:NewImage (bookmark_frame, [[Interface\AddOns\Details\images\options_window]], 75, 106, "artwork", {0.2724609375, 0.19921875, 0.783203125, 0.6796875}, "descAnchorTopLeftImage", "$parentDescAnchorTopLeftImage") --204 696 279 802
|
||||
local desc_anchor_bottomleft = _detalhes.gump:NewImage(bookmark_frame, [[Interface\AddOns\Details\images\options_window]], 75, 106, "artwork", {0.2724609375, 0.19921875, 0.783203125, 0.6796875}, "descAnchorTopLeftImage", "$parentDescAnchorTopLeftImage") --204 696 279 802
|
||||
desc_anchor_bottomleft:SetPoint("bottomright", bookmark_frame, "bottomright", 5, -5)
|
||||
|
||||
local bmf_string = bookmark_frame:CreateFontString("overlay", nil, "GameFontNormal")
|
||||
bmf_string:SetPoint("center", bookmark_frame, "center")
|
||||
bmf_string:SetText(Loc ["STRING_WELCOME_65"])
|
||||
|
||||
local bg_string = _detalhes.gump:NewImage (bookmark_frame, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-RecentHeader]], 256, 32, "border", {0, 1, 0, 23/32})
|
||||
local bg_string = _detalhes.gump:NewImage(bookmark_frame, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-RecentHeader]], 256, 32, "border", {0, 1, 0, 23/32})
|
||||
bg_string:SetPoint("left", bookmark_frame, "left", 0, 0)
|
||||
bg_string:SetPoint("right", bookmark_frame, "right", 0, 0)
|
||||
bg_string:SetPoint("center", bmf_string, "center", 0, 0)
|
||||
@@ -1306,7 +1306,7 @@ local window_openned_at = time()
|
||||
bg77:SetHeight(125*3)--125
|
||||
bg77:SetWidth(89*3)--82
|
||||
bg77:SetAlpha(.1)
|
||||
bg77:SetTexCoord (1, 0, 0, 1)
|
||||
bg77:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto77 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto77:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1319,7 +1319,7 @@ local window_openned_at = time()
|
||||
texto_snap:SetHeight(110)
|
||||
texto_snap:SetJustifyH("left")
|
||||
texto_snap:SetJustifyV ("top")
|
||||
texto_snap:SetTextColor (1, 1, 1, 1)
|
||||
texto_snap:SetTextColor(1, 1, 1, 1)
|
||||
local fonte, _, flags = texto_snap:GetFont()
|
||||
texto_snap:SetFont (fonte, 11, flags)
|
||||
|
||||
@@ -1328,7 +1328,7 @@ local window_openned_at = time()
|
||||
snap_image1:SetPoint("topright", window, "topright", -12, -95)
|
||||
snap_image1:SetWidth(310)
|
||||
snap_image1:SetHeight(102)
|
||||
snap_image1:SetTexCoord (0, 0.60546875, 191/512, 293/512)
|
||||
snap_image1:SetTexCoord(0, 0.60546875, 191/512, 293/512)
|
||||
|
||||
local group_frame_alert = CreateFrame("frame", nil, window)
|
||||
group_frame_alert:SetScript("OnShow", function()
|
||||
@@ -1352,7 +1352,7 @@ local window_openned_at = time()
|
||||
bg88:SetHeight(125*3)--125
|
||||
bg88:SetWidth(89*3)--82
|
||||
bg88:SetAlpha(.1)
|
||||
bg88:SetTexCoord (1, 0, 0, 1)
|
||||
bg88:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto88 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto88:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1365,14 +1365,14 @@ local window_openned_at = time()
|
||||
texto_micro_display:SetHeight(110)
|
||||
texto_micro_display:SetJustifyH("left")
|
||||
texto_micro_display:SetJustifyV ("top")
|
||||
texto_micro_display:SetTextColor (1, 1, 1, 1)
|
||||
texto_micro_display:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local micro_image1 = window:CreateTexture(nil, "overlay")
|
||||
micro_image1:SetTexture([[Interface\Addons\Details\images\icons]])
|
||||
micro_image1:SetPoint("topright", window, "topright", -15, -70)
|
||||
micro_image1:SetWidth(186)
|
||||
micro_image1:SetHeight(100)
|
||||
micro_image1:SetTexCoord (326/512, 1, 85/512, 185/512)
|
||||
micro_image1:SetTexCoord(326/512, 1, 85/512, 185/512)
|
||||
|
||||
local tooltip_frame = CreateFrame("frame", nil, window)
|
||||
tooltip_frame:SetScript("OnShow", function(self)
|
||||
@@ -1475,7 +1475,7 @@ local window_openned_at = time()
|
||||
bg11:SetHeight(125*3)--125
|
||||
bg11:SetWidth(89*3)--82
|
||||
bg11:SetAlpha(.1)
|
||||
bg11:SetTexCoord (1, 0, 0, 1)
|
||||
bg11:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto11 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto11:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1488,7 +1488,7 @@ local window_openned_at = time()
|
||||
texto_plugins:SetHeight(110)
|
||||
texto_plugins:SetJustifyH("left")
|
||||
texto_plugins:SetJustifyV ("top")
|
||||
texto_plugins:SetTextColor (1, 1, 1, 1)
|
||||
texto_plugins:SetTextColor(1, 1, 1, 1)
|
||||
--local fonte, _, flags = texto_plugins:GetFont()
|
||||
--texto_plugins:SetFont (fonte, 11, flags)
|
||||
|
||||
@@ -1497,7 +1497,7 @@ local window_openned_at = time()
|
||||
plugins_image1:SetPoint("topright", window, "topright", -12, -90)
|
||||
plugins_image1:SetWidth(281)
|
||||
plugins_image1:SetHeight(81)
|
||||
plugins_image1:SetTexCoord (216/512, 497/512, 6/512, 95/512)
|
||||
plugins_image1:SetTexCoord(216/512, 497/512, 6/512, 95/512)
|
||||
|
||||
pages [#pages+1] = {bg11, texto11, plugins_image1, texto_plugins}
|
||||
|
||||
@@ -1514,7 +1514,7 @@ local window_openned_at = time()
|
||||
bg8:SetHeight(125*3)--125
|
||||
bg8:SetWidth(89*3)--82
|
||||
bg8:SetAlpha(.1)
|
||||
bg8:SetTexCoord (1, 0, 0, 1)
|
||||
bg8:SetTexCoord(1, 0, 0, 1)
|
||||
|
||||
local texto8 = window:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
texto8:SetPoint("topleft", window, "topleft", 20, -80)
|
||||
@@ -1527,7 +1527,7 @@ local window_openned_at = time()
|
||||
texto:SetHeight(90)
|
||||
texto:SetJustifyH("left")
|
||||
texto:SetJustifyV ("top")
|
||||
texto:SetTextColor (1, 1, 1, 1)
|
||||
texto:SetTextColor(1, 1, 1, 1)
|
||||
|
||||
local final_frame = CreateFrame("frame", nil, window)
|
||||
final_frame:SetSize(1, 1)
|
||||
|
||||
Reference in New Issue
Block a user