- Added real time compile error while writing a custom script.

- Added protection on compiling a custom script to show in the window, an error text should be printed to chat window.
- Added events: COMM_EVENT_RECEIVED and COMM_EVENT_SENT.
- When options panel is not in the screen, the script will attempt to fix the position.
- While doing a sync on guild statistics, more information about the download is shown.
This commit is contained in:
Tercio
2018-02-09 11:33:02 -02:00
parent 521fee8ba7
commit 0b38e849bc
10 changed files with 211 additions and 88 deletions
+19 -14
View File
@@ -1193,7 +1193,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
end
for _, button in ipairs (BossFrame.AllButtons) do
button:SetTemplate (PhaseButtonTemplate)
button:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
end
BossFrame.DBMBars:Hide()
@@ -1217,7 +1217,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
BossFrame.ShowType = "main"
BossFrame.segmentosDropdown:Enable()
BossFrame.buttonSwitchNormal:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchNormal:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
elseif (to == "spellsauras") then
@@ -1253,7 +1253,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
BossFrame.DBMBars:Refresh()
BossFrame.BigWigsBars:Refresh()
BossFrame.buttonSwitchSpellsAuras:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchSpellsAuras:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
elseif (to == "emotes") then
@@ -1292,7 +1292,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
BossFrame.segmentosDropdown:Disable()
BossFrame.buttonSwitchBossEmotes:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchBossEmotes:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
elseif (to == "phases") then
@@ -1305,7 +1305,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
EncounterDetailsPhaseFrame:Show()
BossFrame.buttonSwitchPhases:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchPhases:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
elseif (to == "graph") then
@@ -1343,10 +1343,10 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
BossFrame.segmentosDropdown:Enable()
BossFrame.buttonSwitchGraphic:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchGraphic:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
end
end
-- ~button ~menu
local BUTTON_WIDTH = 120
@@ -1359,31 +1359,37 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
BossFrame.buttonSwitchNormal = _detalhes.gump:CreateButton (BossFrame, BossFrame.switch, BUTTON_WIDTH, BUTTON_HEIGHT, "Summary", "main")
BossFrame.buttonSwitchNormal:SetPoint ("TOPLEFT", BossFrame, "TOPLEFT", HEADER_MENUBUTTONS_X, HEADER_MENUBUTTONS_Y)
BossFrame.buttonSwitchNormal:SetIcon ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_frame_buttons", 18, 18, "overlay", {0, 0.1015625, 0, 0.505625})
BossFrame.buttonSwitchNormal:SetTemplate (PhaseButtonTemplateSelected)
BossFrame.buttonSwitchNormal:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTONSELECTED_TEMPLATE"))
BossFrame.buttonSwitchNormal:SetWidth (BUTTON_WIDTH)
--chart
BossFrame.buttonSwitchGraphic = _detalhes.gump:CreateButton (BossFrame, BossFrame.switch, BUTTON_WIDTH, BUTTON_HEIGHT, "Charts", "graph")
BossFrame.buttonSwitchGraphic:SetPoint ("left", BossFrame.buttonSwitchNormal, "right", HEADER_MENUBUTTONS_SPACEMENT, 0)
BossFrame.buttonSwitchGraphic:SetIcon ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_frame_buttons", 18, 18, "overlay", {0.1271875, 0.21875, 0, 0.505625})
BossFrame.buttonSwitchGraphic:SetTemplate (PhaseButtonTemplate)
BossFrame.buttonSwitchGraphic:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
BossFrame.buttonSwitchGraphic:SetWidth (BUTTON_WIDTH)
--emotes
BossFrame.buttonSwitchBossEmotes = _detalhes.gump:CreateButton (BossFrame, BossFrame.switch, BUTTON_WIDTH, BUTTON_HEIGHT, "Emotes", "emotes")
BossFrame.buttonSwitchBossEmotes:SetPoint ("left", BossFrame.buttonSwitchGraphic, "right", HEADER_MENUBUTTONS_SPACEMENT, 0)
BossFrame.buttonSwitchBossEmotes:SetIcon ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_frame_buttons", 18, 18, "overlay", {91/256, 116/256, 0, 0.505625})
BossFrame.buttonSwitchBossEmotes:SetTemplate (PhaseButtonTemplate)
BossFrame.buttonSwitchBossEmotes:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
BossFrame.buttonSwitchBossEmotes:SetWidth (BUTTON_WIDTH)
--spells e auras
BossFrame.buttonSwitchSpellsAuras = _detalhes.gump:CreateButton (BossFrame, BossFrame.switch, BUTTON_WIDTH, BUTTON_HEIGHT, "WeakAuras", "spellsauras")
BossFrame.buttonSwitchSpellsAuras:SetPoint ("left", BossFrame.buttonSwitchBossEmotes, "right", HEADER_MENUBUTTONS_SPACEMENT, 0)
BossFrame.buttonSwitchSpellsAuras:SetIcon ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_frame_buttons", 18, 18, "overlay", {121/256, 146/256, 0, 0.505625})
BossFrame.buttonSwitchSpellsAuras:SetTemplate (PhaseButtonTemplate)
BossFrame.buttonSwitchSpellsAuras:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
BossFrame.buttonSwitchSpellsAuras:SetWidth (BUTTON_WIDTH)
--phases
BossFrame.buttonSwitchPhases = _detalhes.gump:CreateButton (BossFrame, BossFrame.switch, BUTTON_WIDTH, BUTTON_HEIGHT, "Phases", "phases")
BossFrame.buttonSwitchPhases:SetPoint ("left", BossFrame.buttonSwitchSpellsAuras, "right", HEADER_MENUBUTTONS_SPACEMENT, 0)
BossFrame.buttonSwitchPhases:SetIcon ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_frame_buttons", 18, 18, "overlay", {151/256, 176/256, 0, 0.505625})
BossFrame.buttonSwitchPhases:SetTemplate (PhaseButtonTemplate)
BossFrame.buttonSwitchPhases:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
BossFrame.buttonSwitchPhases:SetWidth (BUTTON_WIDTH)
BossFrame.AllButtons = {BossFrame.buttonSwitchNormal, BossFrame.buttonSwitchGraphic, BossFrame.buttonSwitchBossEmotes, BossFrame.buttonSwitchSpellsAuras, BossFrame.buttonSwitchPhases}
@@ -2587,9 +2593,8 @@ end
--> options button
local options = DetailsFrameWork:NewButton (frame, nil, "$parentOptionsButton", "OptionsButton", 120, 20, EncounterDetails.OpenOptionsPanel, nil, nil, nil, "Options")
options:SetPoint ("left", segmentos, "right", 10, 0)
options:SetTextColor (1, 0.93, 0.74)
options:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
options:SetIcon ([[Interface\Buttons\UI-OptionsButton]], 14, 14, nil, {0, 1, 0, 1}, nil, 3)
options:SetTemplate (DetailsFrameWork:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE"))
--> Caixa do Dano total tomado pela Raid