- Updated Details! Framework.
- Added an option to make the menus on title bar work with clicks instead of hovering over them.
This commit is contained in:
@@ -273,7 +273,6 @@ local function CreatePluginFrames (data)
|
||||
--> background da badge e titulo
|
||||
local bg1 = DetailsFrameWork:NewPanel (DmgRankFrame, _, "DetailsDmgRankBadgeBackground", _, 280, 75)
|
||||
bg1:SetPoint ("topleft", DmgRankFrame, 10, -10)
|
||||
bg1:DisableGradient()
|
||||
|
||||
local GlowFrame = CreateFrame ("frame", "DetailsRankUpGlowFrame", bg1.widget, "DetailsAlertRankUpTemplate")
|
||||
GlowFrame:SetPoint ("topleft", bg1.widget)
|
||||
|
||||
@@ -1004,7 +1004,7 @@ do
|
||||
|
||||
--> revisar
|
||||
BossFrame.Reset = function()
|
||||
BossFrame.switch ("main")
|
||||
BossFrame.switch (nil, nil, "main")
|
||||
if (_G.DetailsRaidDpsGraph) then
|
||||
_G.DetailsRaidDpsGraph:ResetData()
|
||||
end
|
||||
@@ -1021,7 +1021,18 @@ do
|
||||
local emote_segment = 1
|
||||
local searching
|
||||
|
||||
BossFrame.switch = function (to)
|
||||
BossFrame.switch = function (to, _, to2)
|
||||
if (type (to) == "string") then
|
||||
to = to
|
||||
elseif (type (to2) == "string") then
|
||||
to = to2
|
||||
end
|
||||
|
||||
BossFrame.DBMBars:Hide()
|
||||
BossFrame.BigWigsBars:Hide()
|
||||
BossFrame.label_dbm_bars:Hide()
|
||||
BossFrame.label_bw_bars:Hide()
|
||||
|
||||
if (to == "main") then
|
||||
|
||||
local bg_texture = BossFrame.bg_main
|
||||
@@ -1107,6 +1118,11 @@ do
|
||||
|
||||
BossFrame.segmentosDropdown:Enable()
|
||||
|
||||
BossFrame.DBMBars:Show()
|
||||
BossFrame.BigWigsBars:Show()
|
||||
BossFrame.label_dbm_bars:Show()
|
||||
BossFrame.label_bw_bars:Show()
|
||||
|
||||
BossFrame.DBMBars:Refresh()
|
||||
BossFrame.BigWigsBars:Refresh()
|
||||
|
||||
@@ -1680,7 +1696,7 @@ do
|
||||
GameTooltip:Hide()
|
||||
end
|
||||
|
||||
local create_aura_func = function (spellid, encounter_id, self)
|
||||
local create_aura_func = function (self, button, spellid, encounter_id)
|
||||
local name, _, icon = EncounterDetails.getspellinfo (spellid)
|
||||
EncounterDetails:OpenAuraPanel (spellid, name, self and self.MyObject._icon.texture, encounter_id)
|
||||
end
|
||||
@@ -1914,6 +1930,9 @@ do
|
||||
local label_bw_bars = DetailsFrameWork:CreateLabel (BossFrame, "Big Wigs Bars:", 11, nil, "GameFontHighlightSmall")
|
||||
label_bw_bars:SetPoint ("topleft", BossFrame, "topleft", 25, -205)
|
||||
|
||||
BossFrame.label_dbm_bars = label_dbm_bars
|
||||
BossFrame.label_bw_bars = label_bw_bars
|
||||
|
||||
local on_select_dbm_bar = function (_, _, timer_id)
|
||||
local timer_table = EncounterDetails.db.encounter_timers_dbm [timer_id]
|
||||
local spell = tonumber (timer_id:match ("(%d+)"))
|
||||
@@ -2007,6 +2026,11 @@ do
|
||||
local dropdown_bw_bars = DetailsFrameWork:NewDropDown (BossFrame, _, "$parentBigWigsBarsDropdown", "BigWigsBars", 160, 20, build_bigwigs_bars, 1)
|
||||
dropdown_bw_bars:SetPoint ("topleft", label_bw_bars, "bottomleft", -1, -2)
|
||||
|
||||
dropdown_dbm_bars:Hide()
|
||||
dropdown_bw_bars:Hide()
|
||||
label_dbm_bars:Hide()
|
||||
label_bw_bars:Hide()
|
||||
|
||||
--
|
||||
|
||||
tinsert (BossFrame.EnemySpellsWidgets, EnemyActorSpells_label)
|
||||
|
||||
@@ -179,7 +179,6 @@ local function CreatePluginFrames()
|
||||
bg1:SetBackdropColor ({.95, .95, .95, .6})
|
||||
bg1:SetPoint ("center", TimeAttackFrame, 0, 50)
|
||||
--> default panel options come with enabled gradiens, we want to disable this
|
||||
bg1:DisableGradient()
|
||||
|
||||
--> this is the main table wich will hold the times and labels also is a class
|
||||
local HistoryPanelObject = {
|
||||
@@ -194,7 +193,7 @@ local function CreatePluginFrames()
|
||||
--> build the button to switch between recent times and saved times
|
||||
local displayTipes = {Loc ["STRING_RECENTLY"], Loc ["STRING_SAVED"]}
|
||||
local switchButton
|
||||
local function changedisplay (param)
|
||||
local function changedisplay (self, button, param)
|
||||
HistoryPanelObject.NowShowing = param
|
||||
HistoryPanelObject:Refresh()
|
||||
--HistoryPanelObject.NowShowing = math.abs (HistoryPanelObject.NowShowing-3)
|
||||
@@ -221,7 +220,7 @@ local function CreatePluginFrames()
|
||||
--> select realm history type
|
||||
local on_select_historytype = function (_, _, type)
|
||||
TimeAttack.db.realm_last_shown = type
|
||||
changedisplay (3)
|
||||
changedisplay (_, _, 3)
|
||||
end
|
||||
local menu = {
|
||||
{value = 40, icon = icon, iconcolor = "orange", texcoord = textcoord, label = "40 seconds", onclick = on_select_historytype},
|
||||
@@ -362,7 +361,7 @@ local function CreatePluginFrames()
|
||||
end
|
||||
|
||||
--> remove a saved or recently time
|
||||
local remove = function (index)
|
||||
local remove = function (self, button, index)
|
||||
if (HistoryPanelObject.NowShowing == 1) then --> recently
|
||||
table.remove (HistoryPanelObject.Recently, index)
|
||||
else --> history
|
||||
@@ -372,7 +371,7 @@ local function CreatePluginFrames()
|
||||
end
|
||||
|
||||
--> save a recently time
|
||||
local save = function (RecentlyIndex)
|
||||
local save = function (self, button, RecentlyIndex)
|
||||
if (RecentlyIndex) then --> click on any label
|
||||
local ToSaveTimeObject = HistoryPanelObject.Recently [RecentlyIndex]
|
||||
if (ToSaveTimeObject and not ToSaveTimeObject.FinishSaved) then
|
||||
@@ -629,7 +628,7 @@ local function CreatePluginFrames()
|
||||
|
||||
end
|
||||
|
||||
local WriteNoteStart = function (index)
|
||||
local WriteNoteStart = function (self, button, index)
|
||||
|
||||
if (HistoryPanelObject.NowShowing == 1 and HistoryPanelObject.Recently [index].note) then --> recently
|
||||
NoteInsertField:SetText (HistoryPanelObject.Recently [index].note)
|
||||
@@ -658,7 +657,6 @@ local function CreatePluginFrames()
|
||||
{tile = true, tileSize = 16, bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background"}, {.1, .1, .1, .3})
|
||||
|
||||
LabelBackground:SetPoint ("topleft", TimeAttackFrame, TimeAttack.HistoryX, TimeAttack.HistoryY)
|
||||
LabelBackground.frame.Gradient.OnEnter = {.9, .9, .9, 1}
|
||||
LabelBackground.frame:SetFrameLevel (bg1.frame:GetFrameLevel()+1)
|
||||
|
||||
LabelBackground:SetHook ("OnEnter", OnEnterHook)
|
||||
|
||||
Reference in New Issue
Block a user