- fixed report to whiper target when the target is from another realm.

- all spells schools are now translated.
- major clean up on the options panel.
This commit is contained in:
Tercioo
2016-02-06 20:04:31 -02:00
parent bccff292d4
commit efbe5a9945
7 changed files with 1123 additions and 960 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+5 -1
View File
@@ -3268,7 +3268,11 @@ function _detalhes:envia_relatorio (linhas, custom)
local alvo
if (_UnitExists ("target")) then
if (_UnitIsPlayer ("target")) then
alvo = _UnitName ("target")
local nome, realm = _UnitName ("target")
if (realm and realm ~= "") then
nome = nome.."-"..realm
end
alvo = nome
else
_detalhes:Msg (Loc ["STRING_REPORT_INVALIDTARGET"])
return
+1 -1
View File
@@ -219,7 +219,7 @@
return
end
end
------------------------------------------------------------------------------------------------
--> check if need start an combat
+32 -32
View File
@@ -2663,39 +2663,39 @@ do
end
_detalhes.spells_school = {
[1] = {name = "Physical", formated = "|cFFFFFF00Physical|r", hex = "FFFFFF00", rgb = {255, 255, 0}, decimals = {1.00, 1.00, 0.00}},
[2] = {name = "Holy", formated = "|cFFFFE680Holy|r", hex = "FFFFE680", rgb = {255, 230, 128}, decimals = {1.00, 0.90, 0.50}},
[4] = {name = "Fire", formated = "|cFFFF8000Fire|r", hex = "FFFF8000", rgb = {255, 128, 0}, decimals = {1.00, 0.50, 0.00}},
[8] = {name = "Nature", formated = "|cFFbeffbeNature|r", hex = "FFbeffbe", rgb = {190, 190, 190}, decimals = {0.7451, 1.0000, 0.7451}},
[16] = {name = "Frost", formated = "|cFF80FFFFFrost|r", hex = "FF80FFFF", rgb = {128, 255, 255}, decimals = {0.50, 1.00, 1.00}},
[32] = {name = "Shadow", formated = "|cFF8080FFShadow|r", hex = "FF8080FF", rgb = {128, 128, 255}, decimals = {0.50, 0.50, 1.00}},
[64] = {name = "Arcane", formated = "|cFFFF80FFArcane|r", hex = "FFFF80FF", rgb = {255, 128, 255}, decimals = {1.00, 0.50, 1.00}},
[3] = {name = "Holystrike", formated = "|cFFFFF240Holystrike|r", hex = "FFFFF240", rgb = {255, 64, 64}, decimals = {1.0000, 0.9490, 0.2510}}, --#FFF240
[5] = {name = "Flamestrike", formated = "|cFFFFB900Flamestrike|r", hex = "FFFFB900", rgb = {255, 0, 0}, decimals = {1.0000, 0.7255, 0.0000}}, --#FFB900
[6] = {name = "Holyfire", formated = "|cFFFFD266Holyfire|r", hex = "FFFFD266", rgb = {255, 102, 102}, decimals = {1.0000, 0.8235, 0.4000}}, --#FFD266
[9] = {name = "Stormstrike", formated = "|cFFAFFF23Stormstrike|r", hex = "FFAFFF23", rgb = {175, 35, 35}, decimals = {0.6863, 1.0000, 0.1373}}, --#AFFF23
[10] = {name = "Holystorm", formated = "|cFFC1EF6EHolystorm|r", hex = "FFC1EF6E", rgb = {193, 110, 110}, decimals = {0.7569, 0.9373, 0.4314}}, --#C1EF6E
[12] = {name = "Firestorm", formated = "|cFFAFB923Firestorm|r", hex = "FFAFB923", rgb = {175, 35, 35}, decimals = {0.6863, 0.7255, 0.1373}}, --#AFB923
[17] = {name = "Froststrike", formated = "|cFFB3FF99Froststrike|r", hex = "FFB3FF99", rgb = {179, 153, 153}, decimals = {0.7020, 1.0000, 0.6000}},--#B3FF99
[18] = {name = "Holyfrost", formated = "|cFFCCF0B3Holyfrost|r", hex = "FFCCF0B3", rgb = {204, 179, 179}, decimals = {0.8000, 0.9412, 0.7020}},--#CCF0B3
[20] = {name = "Frostfire", formated = "|cFFC0C080Frostfire|r", hex = "FFC0C080", rgb = {192, 128, 128}, decimals = {0.7529, 0.7529, 0.5020}}, --#C0C080
[24] = {name = "Froststorm", formated = "|cFF69FFAFFroststorm|r", hex = "FF69FFAF", rgb = {105, 175, 175}, decimals = {0.4118, 1.0000, 0.6863}}, --#69FFAF
[33] = {name = "Shadowstrike", formated = "|cFFC6C673Shadowstrike|r", hex = "FFC6C673", rgb = {198, 115, 115}, decimals = {0.7765, 0.7765, 0.4510}},--#C6C673
[34] = {name = "Shadowlight (Twilight)", formated = "|cFFD3C2ACShadowlight (Twilight)|r", hex = "FFD3C2AC", rgb = {211, 172, 172}, decimals = {0.8275, 0.7608, 0.6745}},--#D3C2AC
[36] = {name = "Shadowflame", formated = "|cFFB38099Shadowflame|r", hex = "FFB38099", rgb = {179, 153, 153}, decimals = {0.7020, 0.5020, 0.6000}}, -- #B38099
[40] = {name = "Shadowstorm (Plague)", formated = "|cFF6CB3B8Shadowstorm (Plague)|r", hex = "FF6CB3B8", rgb = {108, 184, 184}, decimals = {0.4235, 0.7020, 0.7216}}, --#6CB3B8
[48] = {name = "Shadowfrost", formated = "|cFF80C6FFShadowfrost|r", hex = "FF80C6FF", rgb = {128, 255, 255}, decimals = {0.5020, 0.7765, 1.0000}},--#80C6FF
[65] = {name = "Spellstrike", formated = "|cFFFFCC66Spellstrike|r", hex = "FFFFCC66", rgb = {255, 102, 102}, decimals = {1.0000, 0.8000, 0.4000}},--#FFCC66
[66] = {name = "Divine", formated = "|cFFFFBDB3Divine|r", hex = "FFFFBDB3", rgb = {255, 179, 179}, decimals = {1.0000, 0.7412, 0.7020}},--#FFBDB3
[68] = {name = "Spellfire", formated = "|cFFFF808CSpellfire|r", hex = "FFFF808C", rgb = {255, 140, 140}, decimals = {1.0000, 0.5020, 0.5490}}, --#FF808C
[72] = {name = "Spellstorm", formated = "|cFFAFB9AFSpellstorm|r", hex = "FFAFB9AF", rgb = {175, 175, 175}, decimals = {0.6863, 0.7255, 0.6863}}, --#AFB9AF
[80] = {name = "Spellfrost", formated = "|cFFC0C0FFSpellfrost|r", hex = "FFC0C0FF", rgb = {192, 255, 255}, decimals = {0.7529, 0.7529, 1.0000}},--#C0C0FF
[96] = {name = "Spellshadow", formated = "|cFFB980FFSpellshadow|r", hex = "FFB980FF", rgb = {185, 255, 255}, decimals = {0.7255, 0.5020, 1.0000}},--#B980FF
[1] = {name = STRING_SCHOOL_PHYSICAL , formated = "|cFFFFFF00" .. STRING_SCHOOL_PHYSICAL .. "|r", hex = "FFFFFF00", rgb = {255, 255, 0}, decimals = {1.00, 1.00, 0.00}},
[2] = {name = STRING_SCHOOL_HOLY , formated = "|cFFFFE680" .. STRING_SCHOOL_HOLY .. "|r", hex = "FFFFE680", rgb = {255, 230, 128}, decimals = {1.00, 0.90, 0.50}},
[4] = {name = STRING_SCHOOL_FIRE , formated = "|cFFFF8000" .. STRING_SCHOOL_FIRE .. "|r", hex = "FFFF8000", rgb = {255, 128, 0}, decimals = {1.00, 0.50, 0.00}},
[8] = {name = STRING_SCHOOL_NATURE , formated = "|cFFbeffbe" .. STRING_SCHOOL_NATURE .. "|r", hex = "FFbeffbe", rgb = {190, 190, 190}, decimals = {0.7451, 1.0000, 0.7451}},
[16] = {name = STRING_SCHOOL_FROST, formated = "|cFF80FFFF" .. STRING_SCHOOL_FROST .. "|r", hex = "FF80FFFF", rgb = {128, 255, 255}, decimals = {0.50, 1.00, 1.00}},
[32] = {name = STRING_SCHOOL_SHADOW, formated = "|cFF8080FF" .. STRING_SCHOOL_SHADOW .. "|r", hex = "FF8080FF", rgb = {128, 128, 255}, decimals = {0.50, 0.50, 1.00}},
[64] = {name = STRING_SCHOOL_ARCANE, formated = "|cFFFF80FF" .. STRING_SCHOOL_ARCANE .. "|r", hex = "FFFF80FF", rgb = {255, 128, 255}, decimals = {1.00, 0.50, 1.00}},
[3] = {name = STRING_SCHOOL_HOLYSTRIKE , formated = "|cFFFFF240" .. STRING_SCHOOL_HOLYSTRIKE .. "|r", hex = "FFFFF240", rgb = {255, 64, 64}, decimals = {1.0000, 0.9490, 0.2510}}, --#FFF240
[5] = {name = STRING_SCHOOL_FLAMESTRIKE, formated = "|cFFFFB900" .. STRING_SCHOOL_FLAMESTRIKE .. "|r", hex = "FFFFB900", rgb = {255, 0, 0}, decimals = {1.0000, 0.7255, 0.0000}}, --#FFB900
[6] = {name = STRING_SCHOOL_HOLYFIRE , formated = "|cFFFFD266" .. STRING_SCHOOL_HOLYFIRE .. "|r", hex = "FFFFD266", rgb = {255, 102, 102}, decimals = {1.0000, 0.8235, 0.4000}}, --#FFD266
[9] = {name = STRING_SCHOOL_STORMSTRIKE, formated = "|cFFAFFF23" .. STRING_SCHOOL_STORMSTRIKE .. "|r", hex = "FFAFFF23", rgb = {175, 35, 35}, decimals = {0.6863, 1.0000, 0.1373}}, --#AFFF23
[10] = {name = STRING_SCHOOL_HOLYSTORM , formated = "|cFFC1EF6E" .. STRING_SCHOOL_HOLYSTORM .. "|r", hex = "FFC1EF6E", rgb = {193, 110, 110}, decimals = {0.7569, 0.9373, 0.4314}}, --#C1EF6E
[12] = {name = STRING_SCHOOL_FIRESTORM, formated = "|cFFAFB923" .. STRING_SCHOOL_FIRESTORM .. "|r", hex = "FFAFB923", rgb = {175, 35, 35}, decimals = {0.6863, 0.7255, 0.1373}}, --#AFB923
[17] = {name = STRING_SCHOOL_FROSTSTRIKE , formated = "|cFFB3FF99" .. STRING_SCHOOL_FROSTSTRIKE .. "|r", hex = "FFB3FF99", rgb = {179, 153, 153}, decimals = {0.7020, 1.0000, 0.6000}},--#B3FF99
[18] = {name = STRING_SCHOOL_HOLYFROST , formated = "|cFFCCF0B3" .. STRING_SCHOOL_HOLYFROST .. "|r", hex = "FFCCF0B3", rgb = {204, 179, 179}, decimals = {0.8000, 0.9412, 0.7020}},--#CCF0B3
[20] = {name = STRING_SCHOOL_FROSTFIRE, formated = "|cFFC0C080" .. STRING_SCHOOL_FROSTFIRE .. "|r", hex = "FFC0C080", rgb = {192, 128, 128}, decimals = {0.7529, 0.7529, 0.5020}}, --#C0C080
[24] = {name = STRING_SCHOOL_FROSTSTORM, formated = "|cFF69FFAF" .. STRING_SCHOOL_FROSTSTORM .. "|r", hex = "FF69FFAF", rgb = {105, 175, 175}, decimals = {0.4118, 1.0000, 0.6863}}, --#69FFAF
[33] = {name = STRING_SCHOOL_SHADOWSTRIKE , formated = "|cFFC6C673" .. STRING_SCHOOL_SHADOWSTRIKE .. "|r", hex = "FFC6C673", rgb = {198, 115, 115}, decimals = {0.7765, 0.7765, 0.4510}},--#C6C673
[34] = {name = STRING_SCHOOL_SHADOWHOLY, formated = "|cFFD3C2AC" .. STRING_SCHOOL_SHADOWHOLY .. "|r", hex = "FFD3C2AC", rgb = {211, 172, 172}, decimals = {0.8275, 0.7608, 0.6745}},--#D3C2AC
[36] = {name = STRING_SCHOOL_SHADOWFLAME , formated = "|cFFB38099" .. STRING_SCHOOL_SHADOWFLAME .. "|r", hex = "FFB38099", rgb = {179, 153, 153}, decimals = {0.7020, 0.5020, 0.6000}}, -- #B38099
[40] = {name = STRING_SCHOOL_SHADOWSTORM, formated = "|cFF6CB3B8" .. STRING_SCHOOL_SHADOWSTORM .. "|r", hex = "FF6CB3B8", rgb = {108, 184, 184}, decimals = {0.4235, 0.7020, 0.7216}}, --#6CB3B8
[48] = {name = STRING_SCHOOL_SHADOWFROST , formated = "|cFF80C6FF" .. STRING_SCHOOL_SHADOWFROST .. "|r", hex = "FF80C6FF", rgb = {128, 255, 255}, decimals = {0.5020, 0.7765, 1.0000}},--#80C6FF
[65] = {name = STRING_SCHOOL_SPELLSTRIKE, formated = "|cFFFFCC66" .. STRING_SCHOOL_SPELLSTRIKE .. "|r", hex = "FFFFCC66", rgb = {255, 102, 102}, decimals = {1.0000, 0.8000, 0.4000}},--#FFCC66
[66] = {name = STRING_SCHOOL_DIVINE, formated = "|cFFFFBDB3" .. STRING_SCHOOL_DIVINE .. "|r", hex = "FFFFBDB3", rgb = {255, 179, 179}, decimals = {1.0000, 0.7412, 0.7020}},--#FFBDB3
[68] = {name = STRING_SCHOOL_SPELLFIRE, formated = "|cFFFF808C" .. STRING_SCHOOL_SPELLFIRE .. "|r", hex = "FFFF808C", rgb = {255, 140, 140}, decimals = {1.0000, 0.5020, 0.5490}}, --#FF808C
[72] = {name = STRING_SCHOOL_SPELLSTORM, formated = "|cFFAFB9AF" .. STRING_SCHOOL_SPELLSTORM .. "|r", hex = "FFAFB9AF", rgb = {175, 175, 175}, decimals = {0.6863, 0.7255, 0.6863}}, --#AFB9AF
[80] = {name = STRING_SCHOOL_SPELLFROST , formated = "|cFFC0C0FF" .. STRING_SCHOOL_SPELLFROST .. "|r", hex = "FFC0C0FF", rgb = {192, 255, 255}, decimals = {0.7529, 0.7529, 1.0000}},--#C0C0FF
[96] = {name = STRING_SCHOOL_SPELLSHADOW, formated = "|cFFB980FF" .. STRING_SCHOOL_SPELLSHADOW .. "|r", hex = "FFB980FF", rgb = {185, 255, 255}, decimals = {0.7255, 0.5020, 1.0000}},--#B980FF
[28] = {name = "Elemental", formated = "|cFF0070DEElemental|r", hex = "FF0070DE", rgb = {0, 222, 222}, decimals = {0.0000, 0.4392, 0.8706}},
[124] = {name = "Chromatic", formated = "|cFFC0C0C0Chromatic|r", hex = "FFC0C0C0", rgb = {192, 192, 192}, decimals = {0.7529, 0.7529, 0.7529}},
[126] = {name = "Magic", formated = "|cFF1111FFMagic|r", hex = "FF1111FF", rgb = {17, 255, 255}, decimals = {0.0667, 0.0667, 1.0000}},
[127] = {name = "Chaos", formated = "|cFFFF1111Chaos|r", hex = "FFFF1111", rgb = {255, 17, 17}, decimals = {1.0000, 0.0667, 0.0667}},
[28] = {name = STRING_SCHOOL_ELEMENTAL, formated = "|cFF0070DE" .. STRING_SCHOOL_ELEMENTAL .. "|r", hex = "FF0070DE", rgb = {0, 222, 222}, decimals = {0.0000, 0.4392, 0.8706}},
[124] = {name = STRING_SCHOOL_CHROMATIC, formated = "|cFFC0C0C0" .. STRING_SCHOOL_CHROMATIC .. "|r", hex = "FFC0C0C0", rgb = {192, 192, 192}, decimals = {0.7529, 0.7529, 0.7529}},
[126] = {name = STRING_SCHOOL_MAGIC , formated = "|cFF1111FF" .. STRING_SCHOOL_MAGIC .. "|r", hex = "FF1111FF", rgb = {17, 255, 255}, decimals = {0.0667, 0.0667, 1.0000}},
[127] = {name = STRING_SCHOOL_CHAOS, formated = "|cFFFF1111" .. STRING_SCHOOL_CHAOS .. "|r", hex = "FFFF1111", rgb = {255, 17, 17}, decimals = {1.0000, 0.0667, 0.0667}},
}
function _detalhes:GetSpellSchoolName (school)
+1009 -907
View File
File diff suppressed because it is too large Load Diff
+10
View File
@@ -2084,6 +2084,11 @@ end
local icon_frame_on_enter = function (self)
local actor = self.row.minha_tabela
if (self.row.icone_classe:GetTexture() ~= "") then
--self.row.icone_classe:SetSize (self.row.icone_classe:GetWidth()+1, self.row.icone_classe:GetWidth()+1)
--self.row.icone_classe:SetBlendMode ("ADD")
end
if (actor) then
if (actor.frags) then
@@ -2201,6 +2206,11 @@ end
local icon_frame_on_leave = function (self)
GameCooltip:Hide()
GameTooltip:Hide()
if (self.row.icone_classe:GetTexture() ~= "") then
--self.row.icone_classe:SetSize (self.row.icone_classe:GetWidth()-1, self.row.icone_classe:GetWidth()-1)
--self.row.icone_classe:SetBlendMode ("BLEND")
end
end
local icon_frame_events = _detalhes:CreateEventListener()
+64 -17
View File
@@ -26,6 +26,13 @@ do
frame:SetBackdropBorderColor (170/255, 170/255, 170/255)
frame:SetBackdropColor (0, 0, 0, .7)
DetailsSwitchPanel.HoverOverBackground = {.6, .6, .6, .2}
frame.hover_over_texture = frame:CreateTexture (nil, "border")
frame.hover_over_texture:SetTexture (unpack (DetailsSwitchPanel.HoverOverBackground))
frame.hover_over_texture:SetSize (130, 18)
frame.hover_over_texture:Hide()
frame:SetFrameStrata ("FULLSCREEN")
frame:SetFrameLevel (16)
@@ -131,7 +138,7 @@ do
end)
---------------------------------------------------------------------------------------------------------------------------
--> ~all
local all_switch = CreateFrame ("frame", "DetailsAllAttributesFrame", UIParent)
all_switch:SetFrameStrata ("tooltip")
all_switch:Hide()
@@ -249,18 +256,41 @@ do
end
end
local hover_over_texture = all_switch:CreateTexture (nil, "border")
hover_over_texture:SetTexture (unpack (DetailsSwitchPanel.HoverOverBackground))
hover_over_texture:SetSize (130, 18)
hover_over_texture:Hide()
local icon_size = 16
local text_color = {.9, .9, .9, 1}
local on_enter_all_switch_button = function (self)
_detalhes:SetFontColor (self.text, "orange")
self.texture:SetBlendMode ("ADD")
all_switch.interacting = true
all_switch.last_up = GetTime()
hover_over_texture:SetSize (130, 18)
hover_over_texture:ClearAllPoints()
hover_over_texture:SetPoint ("topleft", self, "topleft", -2, 1)
hover_over_texture:Show()
--self.texture:SetSize (icon_size+1, icon_size+1)
end
local on_leave_all_switch_button = function (self)
_detalhes:SetFontColor (self.text, "white")
self.texture:SetBlendMode ("BLEND")
_detalhes:SetFontColor (self.text, text_color)
all_switch.interacting = false
all_switch.last_up = GetTime()
hover_over_texture:Hide()
--self.texture:SetSize (icon_size, icon_size)
end
local on_enter_all_switch_button_icon = function (self)
self.MainFrame.texture:SetBlendMode ("ADD")
on_enter_all_switch_button (self.MainFrame)
end
local on_leave_all_switch_button_icon = function (self)
self.MainFrame.texture:SetBlendMode ("BLEND")
on_leave_all_switch_button (self.MainFrame)
end
all_switch.check_text_size = function (font_string)
@@ -275,22 +305,33 @@ do
local create_all_switch_button = function (attribute, sub_attribute, x, y)
local button = CreateFrame ("button", "DetailsAllAttributesFrame" .. attribute .. sub_attribute, all_switch)
button:SetSize (100, 16)
button:SetSize (130, 16)
button.texture = button:CreateTexture (nil, "overlay")
button.texture:SetPoint ("left", 0, 0)
button.texture:SetSize (16, 16)
button.texture:SetSize (icon_size, icon_size)
local texture_highlight_frame = CreateFrame ("button", "DetailsAllAttributesFrame" .. attribute .. sub_attribute .. "IconFrame", button)
texture_highlight_frame:SetSize (icon_size, icon_size)
texture_highlight_frame:SetPoint ("left", 0, 0)
texture_highlight_frame.texture = button.texture
texture_highlight_frame.MainFrame = button
button.text = button:CreateFontString (nil, "overlay", "GameFontNormal")
button.text:SetPoint ("left", button.texture, "right", 2, 0)
button.attribute = attribute
button.sub_attribute = sub_attribute
button:SetPoint ("topleft", x, y)
_detalhes:SetFontSize (button.text, 10)
_detalhes:SetFontColor (button.text, "white")
_detalhes:SetFontColor (button.text, text_color)
button:SetScript ("OnClick", on_click_all_switch_button)
button:SetScript ("OnEnter", on_enter_all_switch_button)
button:SetScript ("OnLeave", on_leave_all_switch_button)
texture_highlight_frame:SetScript ("OnClick", on_click_all_switch_button)
texture_highlight_frame:SetScript ("OnEnter", on_enter_all_switch_button_icon)
texture_highlight_frame:SetScript ("OnLeave", on_leave_all_switch_button_icon)
button:RegisterForClicks ("LeftButtonDown", "RightButtonDown")
return button
@@ -299,7 +340,7 @@ do
all_switch:SetScript ("OnShow", function()
if (not all_switch.already_built) then
local x, y = 5, -5
local x, y = 8, -8
all_switch.higher_counter = 0
for attribute = 1, _detalhes.atributos[0] do
@@ -336,12 +377,12 @@ do
end
x = x + 130
y = -5
y = -8
end
--> prepare for customs
all_switch.x = x
all_switch.y = -5
all_switch.y = -8
all_switch.buttons [_detalhes.atributos[0]+1] = {}
local title_icon = all_switch:CreateTexture (nil, "overlay")
@@ -389,7 +430,7 @@ do
all_switch.higher_counter = #_detalhes.custom
end
all_switch:SetHeight ((all_switch.higher_counter * 17) + 20 + 10)
all_switch:SetHeight ((all_switch.higher_counter * 17) + 20 + 16)
all_switch:SetWidth ((120 * 5) + (5 * 2) + (12*4))
all_switch.last_up = GetTime()
@@ -625,8 +666,8 @@ function _detalhes.switch:ShowMe (instancia)
end
local on_enter = function (self)
self.MyObject.this_background:SetBlendMode ("ADD")
self.MyObject.boss_texture:SetBlendMode ("ADD")
--self.MyObject.this_background:SetBlendMode ("ADD")
--self.MyObject.boss_texture:SetBlendMode ("ADD")
end
local on_leave = function (self)
@@ -1375,8 +1416,14 @@ local onenter = function (self)
end
_detalhes:SetFontColor (self.texto, "orange")
self.border:SetBlendMode ("ADD")
self.button1_icon:SetBlendMode ("ADD")
--self.border:SetBlendMode ("ADD")
--self.button1_icon:SetBlendMode ("ADD")
DetailsSwitchPanel.hover_over_texture:SetSize (self:GetWidth(), self:GetHeight()) --size of button
DetailsSwitchPanel.hover_over_texture:ClearAllPoints()
DetailsSwitchPanel.hover_over_texture:SetPoint ("topleft", self, "topleft", -18, 1)
DetailsSwitchPanel.hover_over_texture:SetPoint ("bottomright", self, "bottomright", 8, -1)
DetailsSwitchPanel.hover_over_texture:Show()
end
@@ -1472,7 +1519,7 @@ function _detalhes.switch:NewSwitchButton (frame, index, x, y, rightButton)
}
--botao dentro da caixa
local button = CreateFrame ("button", "DetailsSwitchPanelButton_1_"..index, frame)
local button = CreateFrame ("button", "DetailsSwitchPanelButton_1_"..index, frame) --botao com o icone
button:SetSize (15, 15)
button:SetPoint ("topleft", frame, "topleft", x, -y)
button:SetScript ("OnMouseDown", left_box_on_click)
@@ -1509,7 +1556,7 @@ function _detalhes.switch:NewSwitchButton (frame, index, x, y, rightButton)
button.line2:SetPoint ("bottomleft", button, "bottomright", fundo_x, fundo_y)
--botao do fundo marrom
local button2 = CreateFrame ("button", "DetailsSwitchPanelButton_2_"..index, button)
local button2 = CreateFrame ("button", "DetailsSwitchPanelButton_2_"..index, button) --botao com o texto
button2:SetSize (1, 1)
button2:SetPoint ("topleft", button, "topright", 1, 0)
button2:SetPoint ("bottomright", button, "bottomright", 90, 0)