- If the skin selected does not exists, use the default skin.
- Added 'icon_offset' member into instances to offset the class icon. - Event Tracker not uses the cooldown and crowd control lists from the framework. - Added new gradient wallpapers.
This commit is contained in:
+64
-1
@@ -1,5 +1,5 @@
|
||||
|
||||
local dversion = 146
|
||||
local dversion = 148
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -137,6 +137,8 @@ local embed_functions = {
|
||||
"CreateGlowOverlay",
|
||||
"CreateAnts",
|
||||
"CreateFrameShake",
|
||||
"RegisterScriptComm",
|
||||
"SendScriptComm",
|
||||
}
|
||||
|
||||
DF.WidgetFunctions = {
|
||||
@@ -2811,6 +2813,67 @@ function GetWorldDeltaSeconds()
|
||||
return deltaTimeFrame.deltaTime
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> build the global script channel for scripts communication
|
||||
--send and retrieve data sent by othe users in scripts
|
||||
--Usage:
|
||||
--DetailsFramework:RegisterScriptComm (ID, function(sourcePlayerName, ...) end)
|
||||
--DetailsFramework:SendScriptComm (ID, ...)
|
||||
|
||||
local aceComm = LibStub:GetLibrary ("AceComm-3.0")
|
||||
local LibAceSerializer = LibStub:GetLibrary ("AceSerializer-3.0")
|
||||
local LibDeflate = LibStub:GetLibrary ("LibDeflate")
|
||||
|
||||
DF.RegisteredScriptsComm = DF.RegisteredScriptsComm or {}
|
||||
|
||||
function DF.OnReceiveScriptComm (...)
|
||||
local prefix, encodedString, channel, commSource = ...
|
||||
|
||||
local decodedString = LibDeflate:DecodeForWoWAddonChannel (encodedString)
|
||||
if (decodedString) then
|
||||
local uncompressedString = LibDeflate:DecompressDeflate (decodedString)
|
||||
if (uncompressedString) then
|
||||
local data = {LibAceSerializer:Deserialize (uncompressedString)}
|
||||
if (data[1]) then
|
||||
local ID = data[2]
|
||||
if (ID) then
|
||||
local sourceName = data[4]
|
||||
if (Ambiguate (sourceName, "none") == commSource) then
|
||||
local func = DF.RegisteredScriptsComm [ID]
|
||||
if (func) then
|
||||
DF:Dispatch (func, commSource, select (5, unpack (data))) --this use xpcall
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function DF:RegisterScriptComm (ID, func)
|
||||
if (ID) then
|
||||
if (type (func) == "function") then
|
||||
DF.RegisteredScriptsComm [ID] = func
|
||||
else
|
||||
DF.RegisteredScriptsComm [ID] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function DF:SendScriptComm (ID, ...)
|
||||
if (DF.RegisteredScriptsComm [ID]) then
|
||||
local sourceName = UnitName ("player") .. "-" .. GetRealmName()
|
||||
local data = LibAceSerializer:Serialize (ID, UnitGUID ("player"), sourceName, ...)
|
||||
data = LibDeflate:CompressDeflate (data, {level = 9})
|
||||
data = LibDeflate:EncodeForWoWAddonChannel (data)
|
||||
aceComm:SendCommMessage ("_GSC", data, "PARTY")
|
||||
end
|
||||
end
|
||||
|
||||
if (aceComm and LibAceSerializer and LibDeflate) then
|
||||
aceComm:RegisterComm ("_GSC", DF.OnReceiveScriptComm)
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> debug
|
||||
|
||||
|
||||
@@ -2636,6 +2636,9 @@ end
|
||||
function _detalhes:ChangeIcon (icon)
|
||||
|
||||
local skin = _detalhes.skins [self.skin]
|
||||
if (not skin) then
|
||||
skin = _detalhes.skins [_detalhes.default_skin_to_use]
|
||||
end
|
||||
|
||||
if (not self.hide_icon) then
|
||||
if (skin.icon_on_top) then
|
||||
@@ -2703,6 +2706,15 @@ function _detalhes:ChangeIcon (icon)
|
||||
if (self.menu_attribute_string) then
|
||||
self.baseframe.cabecalho.atributo_icon:SetPoint ("right", self.menu_attribute_string.widget, "left", -4, -1)
|
||||
end
|
||||
|
||||
if (skin.attribute_icon_anchor) then
|
||||
self.baseframe.cabecalho.atributo_icon:ClearAllPoints()
|
||||
self.baseframe.cabecalho.atributo_icon:SetPoint ("topleft", self.baseframe.cabecalho.ball_point, "topleft", skin.attribute_icon_anchor[1], skin.attribute_icon_anchor[2])
|
||||
end
|
||||
|
||||
if (skin.attribute_icon_size) then
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize (unpack (skin.attribute_icon_size))
|
||||
end
|
||||
|
||||
-- local icon_anchor = skin.icon_anchor_main
|
||||
-- self.baseframe.cabecalho.atributo_icon:SetPoint ("TOPRIGHT", self.baseframe.cabecalho.ball_point, "TOPRIGHT", icon_anchor[1], icon_anchor[2])
|
||||
@@ -3533,3 +3545,5 @@ function _detalhes:envia_relatorio (linhas, custom)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- enda elsef
|
||||
|
||||
@@ -232,6 +232,8 @@ _detalhes.instance_defaults = {
|
||||
no_icon = false,
|
||||
start_after_icon = true,
|
||||
icon_grayscale = false,
|
||||
--icon offset
|
||||
icon_offset = {0, 0}, --x y
|
||||
--percent type
|
||||
percent_type = 1,
|
||||
--backdrop
|
||||
|
||||
+16
-16
@@ -5700,7 +5700,7 @@ local CreateEventTrackerFrame = function (parent, name)
|
||||
|
||||
--> set its backdrop
|
||||
line:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tile = true, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
line:SetBackdropColor (1, 1, 1, 0.75)
|
||||
--line:SetBackdropColor (1, 1, 1, 0.75)
|
||||
|
||||
--> statusbar
|
||||
local statusbar = CreateFrame ("statusbar", "$parentStatusBar", line)
|
||||
@@ -5884,9 +5884,9 @@ local CreateEventTrackerFrame = function (parent, name)
|
||||
line.LeftText:SetText (_detalhes:GetOnlyName (ability [ABILITYTABLE_CASTERNAME]))
|
||||
|
||||
if (ability [ABILITYTABLE_ISENEMY]) then
|
||||
line:SetBackdropColor (1, .3, .3, 0.75)
|
||||
line:SetBackdropColor (1, .3, .3, 0.5)
|
||||
else
|
||||
line:SetBackdropColor (1, 1, 1, 0.75)
|
||||
line:SetBackdropColor (1, 1, 1, 0.5)
|
||||
end
|
||||
|
||||
if (ability [ABILITYTABLE_SPELLTYPE] == SPELLTYPE_COOLDOWN) then
|
||||
@@ -6081,16 +6081,9 @@ local CreateEventTrackerFrame = function (parent, name)
|
||||
scrollframe:SetBackdropColor (0, 0, 0, 0)
|
||||
|
||||
--> get tables used inside the combat parser
|
||||
local cooldownList1 = _detalhes.DefensiveCooldownSpellsNoBuff
|
||||
local cooldownList2 = _detalhes.DefensiveCooldownSpells
|
||||
|
||||
local attackCooldownsList1 = _detalhes.AttackCooldownSpells
|
||||
|
||||
local crowdControlList1 = _detalhes.CrowdControlSpells
|
||||
|
||||
--> remove thise spells on shipping
|
||||
--cooldownList1 [194679] = {60, 10}
|
||||
--cooldownList1 [221699] = {60, 10}
|
||||
local cooldownListFromFramework = DetailsFramework.CooldownsAllDeffensive
|
||||
local attackCooldownsFromFramework = DetailsFramework.CooldownsAttack
|
||||
local crowdControlFromFramework = DetailsFramework.CrowdControlSpells
|
||||
|
||||
local combatLog = CreateFrame ("frame")
|
||||
combatLog:RegisterEvent ("COMBAT_LOG_EVENT_UNFILTERED")
|
||||
@@ -6099,28 +6092,35 @@ local CreateEventTrackerFrame = function (parent, name)
|
||||
|
||||
--> combat parser
|
||||
local is_player = function (flag)
|
||||
if (not flag) then
|
||||
return false
|
||||
end
|
||||
return bit.band (flag, OBJECT_TYPE_PLAYER) ~= 0
|
||||
end
|
||||
local is_enemy = function (flag)
|
||||
if (not flag) then
|
||||
return false
|
||||
end
|
||||
return bit.band (flag, OBJECT_TYPE_ENEMY) ~= 0
|
||||
end
|
||||
|
||||
combatLog:SetScript ("OnEvent", function (self, event)
|
||||
|
||||
local time, token, hidding, caster_serial, caster_name, caster_flags, caster_flags2, target_serial, target_name, target_flags, target_flags2, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool = CombatLogGetCurrentEventInfo()
|
||||
local added = false
|
||||
|
||||
--> defensive cooldown
|
||||
if (token == "SPELL_CAST_SUCCESS" and (cooldownList1 [spellid] or cooldownList2 [spellid]) and is_player (caster_flags)) then
|
||||
if (token == "SPELL_CAST_SUCCESS" and (cooldownListFromFramework [spellid]) and is_player (caster_flags)) then
|
||||
tinsert (CurrentShowing, 1, {SPELLTYPE_COOLDOWN, spellid, caster_name, target_name, time, false, GetTime(), caster_serial, is_enemy (caster_flags), target_serial})
|
||||
added = true
|
||||
|
||||
--> offensive cooldown
|
||||
elseif (token == "SPELL_CAST_SUCCESS" and (attackCooldownsList1 [spellid]) and is_player (caster_flags)) then
|
||||
elseif (token == "SPELL_CAST_SUCCESS" and (attackCooldownsFromFramework [spellid]) and is_player (caster_flags)) then
|
||||
tinsert (CurrentShowing, 1, {SPELLTYPE_OFFENSIVE, spellid, caster_name, target_name, time, false, GetTime(), caster_serial, is_enemy (caster_flags), target_serial})
|
||||
added = true
|
||||
|
||||
--> crowd control
|
||||
elseif (token == "SPELL_AURA_APPLIED" and (crowdControlList1 [spellid])) then
|
||||
elseif (token == "SPELL_AURA_APPLIED" and (crowdControlFromFramework [spellid])) then
|
||||
--check if isnt a pet
|
||||
if (target_flags and is_player (target_flags)) then
|
||||
tinsert (CurrentShowing, 1, {SPELLTYPE_CROWDCONTROL, spellid, caster_name, target_name, time, false, GetTime(), caster_serial, is_enemy (caster_flags), target_serial})
|
||||
|
||||
@@ -1383,7 +1383,11 @@ local default_global_data = {
|
||||
damage_taken_shadow = true,
|
||||
damage_taken_anchor = {side = 7, x = 0, y = 0},
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
--> dungeon information
|
||||
dungeon_data = {},
|
||||
|
||||
}
|
||||
|
||||
_detalhes.default_global_data = default_global_data
|
||||
|
||||
+255
-2
@@ -63,6 +63,9 @@ local _
|
||||
left_corner_anchor_bottom = {-107, 0},
|
||||
right_corner_anchor_bottom = {96, 0},
|
||||
|
||||
attribute_icon_anchor = {34, -6},
|
||||
attribute_icon_size = {24, 24},
|
||||
|
||||
micro_frames = {left = "DETAILS_STATUSBAR_PLUGIN_THREAT"},
|
||||
|
||||
instance_cprops = {
|
||||
@@ -1322,8 +1325,258 @@ local _
|
||||
right_corner_anchor_bottom = {96, 0},
|
||||
|
||||
instance_cprops = {
|
||||
menu_anchor = {5, 1},
|
||||
hide_icon = true,
|
||||
["show_statusbar"] = false,
|
||||
["menu_icons_size"] = 1,
|
||||
["color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["menu_anchor"] = {
|
||||
-18, -- [1]
|
||||
1, -- [2]
|
||||
["side"] = 1,
|
||||
},
|
||||
["bg_r"] = 0.0941176470588235,
|
||||
["bars_inverted"] = false,
|
||||
["following"] = {
|
||||
["enabled"] = false,
|
||||
["bar_color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
["text_color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
},
|
||||
["color_buttons"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["bars_sort_direction"] = 1,
|
||||
["hide_in_combat_type"] = 1,
|
||||
["stretch_button_side"] = 1,
|
||||
["row_show_animation"] = {
|
||||
["anim"] = "Fade",
|
||||
["options"] = {
|
||||
},
|
||||
},
|
||||
["bars_grow_direction"] = 1,
|
||||
["tooltip"] = {
|
||||
["n_abilities"] = 3,
|
||||
["n_enemies"] = 3,
|
||||
},
|
||||
["bg_alpha"] = 0.424401819705963,
|
||||
["instance_button_anchor"] = {
|
||||
-27, -- [1]
|
||||
1, -- [2]
|
||||
},
|
||||
["attribute_text"] = {
|
||||
["show_timer"] = {
|
||||
true, -- [1]
|
||||
true, -- [2]
|
||||
true, -- [3]
|
||||
},
|
||||
["shadow"] = false,
|
||||
["side"] = 1,
|
||||
["text_color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
0.798004299402237, -- [4]
|
||||
},
|
||||
["custom_text"] = "{name}",
|
||||
["text_face"] = "Arial Narrow",
|
||||
["anchor"] = {
|
||||
74, -- [1]
|
||||
2, -- [2]
|
||||
},
|
||||
["text_size"] = 14,
|
||||
["enable_custom_text"] = false,
|
||||
["enabled"] = true,
|
||||
},
|
||||
["menu_alpha"] = {
|
||||
["enabled"] = false,
|
||||
["onenter"] = 1,
|
||||
["iconstoo"] = true,
|
||||
["ignorebars"] = false,
|
||||
["onleave"] = 1,
|
||||
},
|
||||
["menu_anchor_down"] = {
|
||||
5, -- [1]
|
||||
1, -- [2]
|
||||
},
|
||||
["strata"] = "LOW",
|
||||
["statusbar_info"] = {
|
||||
["alpha"] = 1,
|
||||
["overlay"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
},
|
||||
["menu_icons"] = {
|
||||
true, -- [1]
|
||||
true, -- [2]
|
||||
true, -- [3]
|
||||
true, -- [4]
|
||||
true, -- [5]
|
||||
false, -- [6]
|
||||
["space"] = 1,
|
||||
["shadow"] = false,
|
||||
},
|
||||
["micro_displays_side"] = 2,
|
||||
["micro_displays_locked"] = true,
|
||||
["window_scale"] = 1,
|
||||
["auto_hide_menu"] = {
|
||||
["left"] = false,
|
||||
["right"] = false,
|
||||
},
|
||||
["desaturated_menu"] = false,
|
||||
["plugins_grow_direction"] = 2,
|
||||
["hide_icon"] = true,
|
||||
["auto_current"] = true,
|
||||
["toolbar_side"] = 1,
|
||||
["bg_g"] = 0.0941176470588235,
|
||||
["backdrop_texture"] = "Details Ground",
|
||||
["show_sidebars"] = true,
|
||||
["wallpaper"] = {
|
||||
["enabled"] = true,
|
||||
["texture"] = "Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Stat-Buttons",
|
||||
["texcoord"] = {
|
||||
0.00100000001490116, -- [1]
|
||||
1, -- [2]
|
||||
0.758000030517578, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["overlay"] = {
|
||||
0.999997794628143, -- [1]
|
||||
0.999997794628143, -- [2]
|
||||
0.999997794628143, -- [3]
|
||||
0.498038113117218, -- [4]
|
||||
},
|
||||
["anchor"] = "all",
|
||||
["height"] = 225.999969482422,
|
||||
["alpha"] = 0.498039245605469,
|
||||
["width"] = 265.999969482422,
|
||||
},
|
||||
["total_bar"] = {
|
||||
["enabled"] = false,
|
||||
["only_in_group"] = true,
|
||||
["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim",
|
||||
["color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
},
|
||||
["row_info"] = {
|
||||
["textR_outline"] = false,
|
||||
["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal_alpha",
|
||||
["textL_outline"] = false,
|
||||
["textR_outline_small"] = true,
|
||||
["textR_show_data"] = {
|
||||
true, -- [1]
|
||||
true, -- [2]
|
||||
true, -- [3]
|
||||
},
|
||||
["textL_enable_custom_text"] = false,
|
||||
["fixed_text_color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
},
|
||||
["space"] = {
|
||||
["right"] = -3,
|
||||
["left"] = 1,
|
||||
["between"] = 1,
|
||||
},
|
||||
["texture_background_class_color"] = false,
|
||||
["start_after_icon"] = false,
|
||||
["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf",
|
||||
["backdrop"] = {
|
||||
["enabled"] = false,
|
||||
["size"] = 11,
|
||||
["color"] = {
|
||||
1, -- [1]
|
||||
1, -- [2]
|
||||
1, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["texture"] = "Details BarBorder 2",
|
||||
},
|
||||
["models"] = {
|
||||
["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2",
|
||||
["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2",
|
||||
["upper_alpha"] = 0.5,
|
||||
["lower_enabled"] = false,
|
||||
["lower_alpha"] = 0.1,
|
||||
["upper_enabled"] = false,
|
||||
},
|
||||
["texture_custom_file"] = "Interface\\AddOns\\Details\\images\\bar_skyline_2",
|
||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_skyline",
|
||||
["use_spec_icons"] = true,
|
||||
["textR_bracket"] = "(",
|
||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||
["icon_grayscale"] = false,
|
||||
["font_size"] = 17,
|
||||
["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar_background",
|
||||
["textR_enable_custom_text"] = false,
|
||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||
["fixed_texture_color"] = {
|
||||
0, -- [1]
|
||||
0, -- [2]
|
||||
0, -- [3]
|
||||
},
|
||||
["textL_show_number"] = true,
|
||||
["textL_outline_small_color"] = {
|
||||
0, -- [1]
|
||||
0, -- [2]
|
||||
0, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["textL_outline_small"] = true,
|
||||
["textR_custom_text"] = "{data1} ({data2}, {data3}%)",
|
||||
["texture"] = "Skyline",
|
||||
["texture_custom"] = "AddOns\\Details\\images\\bar_skyline_2",
|
||||
["percent_type"] = 1,
|
||||
["texture_background"] = "DGround",
|
||||
["textR_outline_small_color"] = {
|
||||
0, -- [1]
|
||||
0, -- [2]
|
||||
0, -- [3]
|
||||
1, -- [4]
|
||||
},
|
||||
["textL_class_colors"] = false,
|
||||
["textR_class_colors"] = false,
|
||||
["alpha"] = 1,
|
||||
["no_icon"] = false,
|
||||
["icon_offset"] = {
|
||||
-2, -- [1]
|
||||
0, -- [2]
|
||||
},
|
||||
["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight",
|
||||
["font_face"] = "Accidental Presidency",
|
||||
["texture_class_colors"] = true,
|
||||
["fixed_texture_background_color"] = {
|
||||
0.113725490196078, -- [1]
|
||||
0.113725490196078, -- [2]
|
||||
0.113725490196078, -- [3]
|
||||
0.42424601316452, -- [4]
|
||||
},
|
||||
["fast_ps_update"] = false,
|
||||
["textR_separator"] = ",",
|
||||
["height"] = 22.4808311462402,
|
||||
},
|
||||
["toolbar_icon_file"] = "Interface\\AddOns\\Details\\images\\toolbar_icons2",
|
||||
["grab_on_top"] = false,
|
||||
["bg_b"] = 0.0941176470588235,
|
||||
},
|
||||
|
||||
--> control scripts for aninations
|
||||
|
||||
@@ -9029,6 +9029,18 @@ function window:CreateFrame9()
|
||||
|
||||
local onSelectSecTexture = function (self, instance, texturePath)
|
||||
|
||||
local textureOptions = window.WallpaperTextureOptions
|
||||
local selectedTextureOption
|
||||
for textureBracket, textureTables in pairs (textureOptions) do
|
||||
for i = 1, #textureTables do
|
||||
local textureTable = textureTables [i]
|
||||
if (textureTable.value == texturePath) then
|
||||
selectedTextureOption = textureTable
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if (texturePath:find ("TALENTFRAME")) then
|
||||
|
||||
instance:InstanceWallpaper (texturePath, nil, nil, {0, 1, 0, 0.703125}, nil, nil, {1, 1, 1, 1})
|
||||
@@ -9076,13 +9088,13 @@ function window:CreateFrame9()
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
instance:InstanceWallpaper (texturePath, nil, nil, {0, 1, 0, 1}, nil, nil, {1, 1, 1, 1})
|
||||
local texCoords = selectedTextureOption and selectedTextureOption.texcoord
|
||||
instance:InstanceWallpaper (texturePath, nil, nil, texCoords or {0, 1, 0, 1}, nil, nil, {1, 1, 1, 1})
|
||||
|
||||
if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then
|
||||
for _, this_instance in ipairs (instance:GetInstanceGroup()) do
|
||||
if (this_instance ~= instance) then
|
||||
this_instance:InstanceWallpaper (texturePath, nil, nil, {0, 1, 0, 1}, nil, nil, {1, 1, 1, 1})
|
||||
this_instance:InstanceWallpaper (texturePath, nil, nil, texCoords or {0, 1, 0, 1}, nil, nil, {1, 1, 1, 1})
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -9105,6 +9117,13 @@ function window:CreateFrame9()
|
||||
|
||||
local subMenu = {
|
||||
|
||||
["DESIGN"] = {
|
||||
{value = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]], label = "Horizontal Gradient", onclick = onSelectSecTexture, icon = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]], texcoord = nil},
|
||||
{value = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Highlight]], label = "Golden Highlight", onclick = onSelectSecTexture, icon = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Highlight]], texcoord = {0.35, 0.655, 0.0390625, 0.859375}},
|
||||
{value = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Stat-Buttons]], label = "Gray Gradient", onclick = onSelectSecTexture, icon = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Stat-Buttons]], texcoord = {0, 1, 97/128, 1}},
|
||||
{value = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Borders]], label = "Orange Gradient", onclick = onSelectSecTexture, icon = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Borders]], texcoord = {160/512, 345/512, 80/256, 130/256}},
|
||||
},
|
||||
|
||||
["ARCHEOLOGY"] = {
|
||||
{value = [[Interface\ARCHEOLOGY\Arch-BookCompletedLeft]], label = "Book Wallpaper", onclick = onSelectSecTexture, icon = [[Interface\ARCHEOLOGY\Arch-BookCompletedLeft]], texcoord = nil},
|
||||
{value = [[Interface\ARCHEOLOGY\Arch-BookItemLeft]], label = "Book Wallpaper 2", onclick = onSelectSecTexture, icon = [[Interface\ARCHEOLOGY\Arch-BookItemLeft]], texcoord = nil},
|
||||
@@ -9283,6 +9302,8 @@ function window:CreateFrame9()
|
||||
{value = [[Interface\TALENTFRAME\bg-warrior-protection]], label = "Protection", onclick = onSelectSecTexture, icon = [[Interface\ICONS\ability_warrior_defensivestance]], texcoord = nil}
|
||||
},
|
||||
}
|
||||
|
||||
window.WallpaperTextureOptions = subMenu
|
||||
|
||||
local buildBackgroundMenu2 = function()
|
||||
return subMenu [frame9.backgroundDropdown.value] or {label = "", value = 0}
|
||||
@@ -9294,6 +9315,7 @@ function window:CreateFrame9()
|
||||
end
|
||||
|
||||
local backgroundTable = {
|
||||
{value = "DESIGN", label = "Design", onclick = onSelectMainTexture, icon = [[Interface\ACHIEVEMENTFRAME\UI-Achievement-HorizontalShadow]]},
|
||||
{value = "ARCHEOLOGY", label = "Archeology", onclick = onSelectMainTexture, icon = [[Interface\ARCHEOLOGY\Arch-Icon-Marker]]},
|
||||
{value = "CREDITS", label = "Burning Crusade", onclick = onSelectMainTexture, icon = [[Interface\ICONS\TEMP]]},
|
||||
{value = "LOGOS", label = "Logos", onclick = onSelectMainTexture, icon = [[Interface\WorldStateFrame\ColumnIcon-FlagCapture0]]},
|
||||
|
||||
@@ -2411,12 +2411,16 @@ local icon_frame_create_animation = function()
|
||||
end
|
||||
|
||||
local icon_frame_on_click_down = function (self)
|
||||
self:GetParent():GetParent().icone_classe:SetPoint ("left", self:GetParent():GetParent(), "left", 1, -1)
|
||||
local instanceID = self.instance_id
|
||||
local instanceObject = Details:GetInstance (instanceID)
|
||||
self:GetParent():GetParent().icone_classe:SetPoint ("left", self:GetParent():GetParent(), "left", instanceObject.row_info.icon_offset[1] + 1, instanceObject.row_info.icon_offset[2] + -1)
|
||||
end
|
||||
|
||||
local icon_frame_on_click_up = function (self, button)
|
||||
|
||||
self:GetParent():GetParent().icone_classe:SetPoint ("left", self:GetParent():GetParent(), "left")
|
||||
local instanceID = self.instance_id
|
||||
local instanceObject = Details:GetInstance (instanceID)
|
||||
self:GetParent():GetParent().icone_classe:SetPoint ("left", self:GetParent():GetParent(), "left", instanceObject.row_info.icon_offset[1], instanceObject.row_info.icon_offset[2])
|
||||
|
||||
if (button == "LeftButton") then
|
||||
--> open the rank panel
|
||||
@@ -4085,6 +4089,7 @@ function gump:CriaNovaBarra (instancia, index)
|
||||
icon_frame:SetPoint ("topleft", icone_classe, "topleft")
|
||||
icon_frame:SetPoint ("bottomright", icone_classe, "bottomright")
|
||||
icon_frame:SetFrameLevel (new_row.statusbar:GetFrameLevel()+1)
|
||||
icon_frame.instance_id = instancia.meu_id
|
||||
icon_frame.row = new_row
|
||||
new_row.icon_frame = icon_frame
|
||||
|
||||
@@ -4603,6 +4608,8 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
end
|
||||
|
||||
local icon_force_grayscale = self.row_info.icon_grayscale
|
||||
|
||||
local icon_offset_x, icon_offset_y = unpack (self.row_info.icon_offset)
|
||||
|
||||
--custom right text
|
||||
local custom_right_text_enabled = self.row_info.textR_enable_custom_text
|
||||
@@ -4663,7 +4670,7 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
row.icone_classe:Hide()
|
||||
else
|
||||
row.icone_classe:ClearAllPoints()
|
||||
row.icone_classe:SetPoint ("left", row, "left")
|
||||
row.icone_classe:SetPoint ("left", row, "left", icon_offset_x, icon_offset_y)
|
||||
row.icone_classe:Show()
|
||||
|
||||
if (start_after_icon) then
|
||||
@@ -4695,7 +4702,7 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
else
|
||||
|
||||
row.icone_classe:ClearAllPoints()
|
||||
row.icone_classe:SetPoint ("right", row, "right")
|
||||
row.icone_classe:SetPoint ("right", row, "right", icon_offset_x, icon_offset_y)
|
||||
row.icone_classe:Show()
|
||||
|
||||
if (start_after_icon) then
|
||||
@@ -5167,6 +5174,12 @@ function _detalhes:InstanceColor (red, green, blue, alpha, no_save, change_statu
|
||||
|
||||
-- print (self.skin, self.meu_id)
|
||||
local skin = _detalhes.skins [self.skin]
|
||||
if (not skin) then --the skin isn't available any more
|
||||
Details:Msg ("Skin " .. (self.skin or "?") .. " not found, changing to 'Minimalistic'.")
|
||||
Details:Msg ("Recommended to change the skin in the option panel > Skin Selection.")
|
||||
skin = _detalhes.skins ["Minimalistic"]
|
||||
self.skin = "Minimalistic"
|
||||
end
|
||||
|
||||
--[[
|
||||
self.baseframe.rodape.esquerdo:SetVertexColor (red, green, blue)
|
||||
|
||||
+19
@@ -920,6 +920,25 @@ function _G._detalhes:Start()
|
||||
self:CaptureSet (false, "energy", false, 15)
|
||||
self:CaptureSet (false, "spellcast", false, 15)
|
||||
end
|
||||
|
||||
--> store data
|
||||
--[=[
|
||||
local expansion = tostring (select (4, GetBuildInfo())):match ("%d%d")
|
||||
if (expansion and type (expansion) == "string" and string.len (expansion) == 2) then
|
||||
local expansionDungeonData = _detalhes.dungeon_data [expansion]
|
||||
if (not expansionDungeonData) then
|
||||
expansionDungeonData = {}
|
||||
_detalhes.dungeon_data [expansion] = expansionDungeonData
|
||||
end
|
||||
|
||||
--store information about the dungeon run
|
||||
--the the dungeon ID, can't be localized
|
||||
--players in the group
|
||||
--difficulty level
|
||||
--
|
||||
|
||||
end
|
||||
--]=]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user