updates
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
--Last Modification: 27/07/2013
|
||||
-- Change Log:
|
||||
-- 27/07/2013: Finished alpha version.
|
||||
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> global name declaration
|
||||
|
||||
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
_detalhes.userversion = "v1.11.2"
|
||||
_detalhes.userversion = "v1.11.03"
|
||||
_detalhes.version = "Alpha 015"
|
||||
_detalhes.realversion = 15
|
||||
|
||||
|
||||
@@ -155,9 +155,16 @@ end
|
||||
--> desativando a instância ela fica em stand by e apenas hida a janela
|
||||
function _detalhes:DesativarInstancia()
|
||||
|
||||
local lower = _detalhes:GetLowerInstanceNumber()
|
||||
|
||||
self.ativa = false
|
||||
_detalhes:GetLowerInstanceNumber()
|
||||
|
||||
if (lower == self.meu_id) then
|
||||
--> os icones dos plugins estao hostiados nessa instancia.
|
||||
_detalhes.ToolBar:ReorganizeIcons (nil, true)
|
||||
end
|
||||
|
||||
if (_detalhes.switch.current_instancia and _detalhes.switch.current_instancia == self) then
|
||||
_detalhes.switch:CloseMe()
|
||||
end
|
||||
@@ -253,7 +260,12 @@ end
|
||||
function _detalhes:AtivarInstancia (temp)
|
||||
|
||||
self.ativa = true
|
||||
_detalhes:GetLowerInstanceNumber()
|
||||
local lower = _detalhes:GetLowerInstanceNumber()
|
||||
|
||||
if (lower == self.meu_id) then
|
||||
--> os icones dos plugins precisam ser hostiados nessa instancia.
|
||||
_detalhes.ToolBar:ReorganizeIcons (nil, true)
|
||||
end
|
||||
|
||||
if (not self.iniciada) then
|
||||
self:RestauraJanela (self.meu_id)
|
||||
|
||||
@@ -114,7 +114,7 @@ function container_pets:PegaDono (pet_serial, pet_nome, pet_flags)
|
||||
if (pet_flags and _bit_band (pet_flags, OBJECT_TYPE_PET) ~= 0) then --> é um pet
|
||||
if (not _detalhes.pets_no_owner [pet_serial] and _bit_band (pet_flags, EM_GRUPO) ~= 0) then
|
||||
_detalhes.pets_no_owner [pet_serial] = {pet_nome, pet_flags}
|
||||
_detalhes:Msg ("PET sem dono:", pet_nome)
|
||||
_detalhes:Msg ("couldn't find the owner of the pet:", pet_nome)
|
||||
end
|
||||
else
|
||||
is_ignored [pet_serial] = true
|
||||
|
||||
@@ -180,11 +180,11 @@
|
||||
_detalhes.ToolBar:ReorganizeIcons()
|
||||
end
|
||||
|
||||
function _detalhes.ToolBar:ReorganizeIcons (lastIcon)
|
||||
function _detalhes.ToolBar:ReorganizeIcons (lastIcon, just_refresh)
|
||||
|
||||
--> get the lower number instance
|
||||
local lower_instance = _detalhes:GetLowerInstanceNumber()
|
||||
|
||||
|
||||
if (not lower_instance) then
|
||||
for _, ThisButton in ipairs (_detalhes.ToolBar.Shown) do
|
||||
ThisButton:Hide()
|
||||
@@ -194,6 +194,10 @@
|
||||
|
||||
local instance = _detalhes:GetInstance (lower_instance)
|
||||
|
||||
if (just_refresh) then
|
||||
|
||||
end
|
||||
|
||||
_detalhes:ResetButtonSnapTo (instance)
|
||||
_detalhes.ResetButtonInstance = lower_instance
|
||||
|
||||
@@ -214,6 +218,11 @@
|
||||
|
||||
for _, ThisButton in ipairs (_detalhes.ToolBar.Shown) do
|
||||
ThisButton:ClearAllPoints()
|
||||
ThisButton:SetParent (instance.baseframe.UPFrame)
|
||||
|
||||
-- se tiver no listener, ele nao hida quando a janela for fechada.
|
||||
-- se tiver no baseframe não da de clicar.
|
||||
|
||||
if (LastIcon == instance.baseframe.cabecalho.report) then
|
||||
ThisButton:SetPoint ("left", LastIcon, "right", ThisButton.x + x + 4, ThisButton.y)
|
||||
else
|
||||
@@ -233,6 +242,8 @@
|
||||
|
||||
for _, ThisButton in ipairs (_detalhes.ToolBar.Shown) do
|
||||
ThisButton:ClearAllPoints()
|
||||
ThisButton:SetParent (instance.baseframe.UPFrame)
|
||||
|
||||
ThisButton:SetPoint ("right", LastIcon, "left", ThisButton.x + x, ThisButton.y)
|
||||
ThisButton:Show()
|
||||
LastIcon = ThisButton
|
||||
@@ -242,13 +253,15 @@
|
||||
|
||||
end
|
||||
|
||||
for _, instancia in pairs (_detalhes.tabela_instancias) do
|
||||
if (instancia.baseframe and instancia:IsAtiva()) then
|
||||
instancia:ReajustaGump()
|
||||
if (not just_refresh) then
|
||||
for _, instancia in pairs (_detalhes.tabela_instancias) do
|
||||
if (instancia.baseframe and instancia:IsAtiva()) then
|
||||
instancia:ReajustaGump()
|
||||
end
|
||||
end
|
||||
|
||||
instance:ChangeSkin()
|
||||
end
|
||||
|
||||
instance:ChangeSkin()
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
+96
-6
@@ -154,13 +154,14 @@ local _
|
||||
_detalhes:InstallSkin ("Imperial Skin", {
|
||||
file = "Interface\\AddOns\\Details\\images\\skins\\imperial_skin",
|
||||
author = "Details!",
|
||||
version = "1.0",
|
||||
version = "1.1",
|
||||
site = "unknown",
|
||||
desc = "default skin for Details!",
|
||||
can_change_alpha_head = false,
|
||||
icon_anchor_main = {-1, 1},
|
||||
icon_anchor_plugins = {-9, -7},
|
||||
icon_plugins_size = {19, 19},
|
||||
|
||||
can_change_alpha_head = true,
|
||||
icon_anchor_main = {-1, -5},
|
||||
icon_anchor_plugins = {-7, -13},
|
||||
icon_plugins_size = {19, 18},
|
||||
|
||||
-- the four anchors:
|
||||
icon_point_anchor = {-37, 0},
|
||||
@@ -176,9 +177,98 @@ local _
|
||||
instance_cprops = {
|
||||
menu_anchor = {5, 1},
|
||||
hide_icon = true,
|
||||
}
|
||||
},
|
||||
|
||||
--> control scripts for aninations
|
||||
--> on skin change we need create the widgets
|
||||
control_script_on_start = function (skin, instance)
|
||||
|
||||
if (not instance.baseframe.imperial_skin_texture1) then
|
||||
local texture1 = instance.baseframe:CreateTexture (nil, "artwork")
|
||||
texture1:SetTexture ("Interface\\AddOns\\Details\\images\\skins\\imperial_skin")
|
||||
texture1:SetTexCoord (0, 0.99951171875, 0.61474609375, 0.63623046875)
|
||||
texture1:SetHeight (17)
|
||||
instance.baseframe.imperial_skin_texture1 = texture1
|
||||
texture1:SetPoint ("bottomleft", instance.baseframe.cabecalho.ball, "bottomleft", 108, 1)
|
||||
texture1:SetPoint ("bottomright", instance.baseframe.cabecalho.ball_r, "bottomright", -98, 1)
|
||||
end
|
||||
|
||||
--> custom parameters for animations
|
||||
instance.imperial_skin_tick_time = 2
|
||||
instance.imperial_skin_tick_elapsed = 0
|
||||
instance.imperial_skin_texture_step = 0
|
||||
|
||||
if (instance.hide_icon) then
|
||||
instance.baseframe.cabecalho.ball:SetDrawLayer ("background")
|
||||
else
|
||||
instance.baseframe.cabecalho.ball:SetDrawLayer ("overlay")
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
--> do the animation
|
||||
control_script = function (frame, elapsed)
|
||||
|
||||
--frame.instance = instance where this skin is applied.
|
||||
--frame.skin = this skin table.
|
||||
|
||||
frame.instance.imperial_skin_tick_elapsed = frame.instance.imperial_skin_tick_elapsed + elapsed
|
||||
|
||||
if (frame.instance.imperial_skin_tick_elapsed > frame.instance.imperial_skin_tick_time) then
|
||||
|
||||
frame.instance.imperial_skin_tick_elapsed = 0
|
||||
local step = frame.instance.imperial_skin_texture_step
|
||||
step = step + 1
|
||||
|
||||
local firstpoint = step * 0.00048828125
|
||||
local secondpoint = (firstpoint + 0.99951171875) - 1
|
||||
|
||||
--print (math.floor (step/2))
|
||||
|
||||
frame.instance.baseframe.imperial_skin_texture1:SetTexCoord (firstpoint, secondpoint, 0.61474609375, 0.63623046875)
|
||||
|
||||
if (step == 2047) then
|
||||
step = 0
|
||||
end
|
||||
|
||||
frame.instance.imperial_skin_texture_step = step
|
||||
|
||||
--> this is bad, we need a event handler on options panel for sending appearance changes events
|
||||
if (frame.instance.hide_icon) then
|
||||
frame.instance.baseframe.cabecalho.ball:SetDrawLayer ("background")
|
||||
else
|
||||
frame.instance.baseframe.cabecalho.ball:SetDrawLayer ("overlay")
|
||||
end
|
||||
if (frame.instance.toolbar_side == 1) then
|
||||
frame.instance.baseframe.imperial_skin_texture1:SetPoint ("bottomleft", frame.instance.baseframe.cabecalho.ball, "bottomleft", 108, 1)
|
||||
frame.instance.baseframe.imperial_skin_texture1:SetPoint ("bottomright", frame.instance.baseframe.cabecalho.ball_r, "bottomright", -98, 1)
|
||||
else
|
||||
frame.instance.baseframe.imperial_skin_texture1:SetPoint ("bottomleft", frame.instance.baseframe.cabecalho.ball, "bottomleft", 108, 106)
|
||||
frame.instance.baseframe.imperial_skin_texture1:SetPoint ("bottomright", frame.instance.baseframe.cabecalho.ball_r, "bottomright", -98, 106)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
})
|
||||
--]]
|
||||
|
||||
--[[
|
||||
local f = CreateFrame ("frame",nil, UIParent)
|
||||
f:SetPoint ("center", UIParent, "center")
|
||||
f:SetSize (200, 200)
|
||||
local t = f:CreateTexture (nil, "overlay")
|
||||
t:SetPoint ("center", f, "center")
|
||||
t:SetSize (200, 200)
|
||||
t:SetTexture ("Interface\ARCHEOLOGY\ARCH-RACE-ORC")
|
||||
|
||||
local t2 = f:CreateTexture (nil, "overlay")
|
||||
t2:SetPoint ("center", f, "center")
|
||||
t2:SetSize (200, 200)
|
||||
t2:SetTexture ("Interface\ARCHEOLOGY\ARCH-RACE-ORC")
|
||||
|
||||
t:SetTexCoord (.4, 1, 0, 1)
|
||||
t2:SetTexCoord (0, .4, 0, 1)
|
||||
--]]
|
||||
|
||||
+14
-8
@@ -241,6 +241,10 @@ local function CreateCustomWindow()
|
||||
end
|
||||
|
||||
--> 4 atributos principais
|
||||
|
||||
local half = 0.00048828125
|
||||
local size = 0.03125
|
||||
|
||||
for i = 1, 4 do
|
||||
|
||||
local button = gump:NewDetailsButton (frame, frame, _, MainMenu, i, nil, 120, 15, "", "", "", "")
|
||||
@@ -251,26 +255,28 @@ local function CreateCustomWindow()
|
||||
button.textura:SetPoint ("right", button, "left", 60, 0)
|
||||
button.icon = button:CreateTexture (nil, "background")
|
||||
button.icon:SetPoint ("center", button.textura, "center", 2, 0)
|
||||
button.icon:SetTexture ("Interface\\AddOns\\Details\\images\\icon_mainwindow")
|
||||
button.icon:SetTexture ("Interface\\AddOns\\Details\\images\\skins\\default_skin")
|
||||
button.icon:SetWidth (22)
|
||||
button.icon:SetHeight (22)
|
||||
|
||||
button.icon:SetTexCoord ( (0.03125 * (i-1)) + half, (0.03125 * i) - half, 0.35693359375, 0.38720703125)
|
||||
|
||||
if (i == 1) then
|
||||
button.textura:SetTexture ("Interface\\ExtraButton\\ChampionLight")
|
||||
button.icon:SetTexCoord (32/256 * (1-1), 32/256 * 1, 0, 1)
|
||||
--button.icon:SetTexCoord (32/256 * (1-1), 32/256 * 1, 0, 1)
|
||||
|
||||
elseif (i == 2) then
|
||||
button.textura:SetTexture ("Interface\\ExtraButton\\Ysera")
|
||||
button.icon:SetTexCoord (32/256 * (2-1), 32/256 * 2, 0, 1)
|
||||
button.icon:SetPoint ("center", button.textura, "center", 3, 0)
|
||||
--button.icon:SetTexCoord (32/256 * (2-1), 32/256 * 2, 0, 1)
|
||||
--button.icon:SetPoint ("center", button.textura, "center", 3, 0)
|
||||
|
||||
elseif (i == 3) then
|
||||
button.textura:SetTexture ("Interface\\ExtraButton\\FengShroud")
|
||||
button.icon:SetTexCoord (32/256 * (3-1), 32/256 * 3, 0, 1)
|
||||
--button.icon:SetTexCoord (32/256 * (3-1), 32/256 * 3, 0, 1)
|
||||
|
||||
elseif (i == 4) then
|
||||
button.textura:SetTexture ("Interface\\ExtraButton\\BrewmoonKeg")
|
||||
button.icon:SetTexCoord (32/256 * (4-1), 32/256 * 4, 0, 1)
|
||||
--button.icon:SetTexCoord (32/256 * (4-1), 32/256 * 4, 0, 1)
|
||||
|
||||
end
|
||||
|
||||
@@ -873,9 +879,9 @@ local function CreateCustomWindow()
|
||||
end
|
||||
elseif (instancia.atributo == 5 and instancia.sub_atributo > CustomIndex) then
|
||||
instancia.sub_atributo = instancia.sub_atributo - 1
|
||||
instancia.m2_last [5] = 1
|
||||
instancia.sub_atributo_last [5] = 1
|
||||
else
|
||||
instancia.m2_last [5] = 1
|
||||
instancia.sub_atributo_last [5] = 1
|
||||
end
|
||||
end
|
||||
if (#_detalhes.custom > 0) then
|
||||
|
||||
+18
-11
@@ -1823,6 +1823,8 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
|
||||
local backgrounddisplay = CreateFrame ("frame", "Details_GumpFrame"..ID, backgroundframe) --> background window
|
||||
backgroundframe:SetFrameLevel (3)
|
||||
backgrounddisplay:SetFrameLevel (3)
|
||||
backgroundframe.instance = instancia
|
||||
backgrounddisplay.instance = instancia
|
||||
|
||||
local switchbutton = gump:NewDetailsButton (backgrounddisplay, baseframe, _, function() end, nil, nil, 1, 1, "", "", "", "",
|
||||
{rightFunc = {func = function() _detalhes.switch:ShowMe (instancia) end, param1 = nil, param2 = nil}})
|
||||
@@ -3539,7 +3541,7 @@ function _detalhes:ChangeSkin (skin_name)
|
||||
|
||||
--> skin updater
|
||||
if (self.bgframe.skin_script) then
|
||||
self.bgframe:SetScript (nil)
|
||||
self.bgframe:SetScript ("OnUpdate", nil)
|
||||
self.bgframe.skin_script = false
|
||||
end
|
||||
|
||||
@@ -3583,6 +3585,7 @@ function _detalhes:ChangeSkin (skin_name)
|
||||
|
||||
self.baseframe.barra_esquerda:SetTexture (skin_file) --> barra lateral
|
||||
self.baseframe.barra_direita:SetTexture (skin_file) --> barra lateral
|
||||
self.baseframe.barra_fundo:SetTexture (skin_file) --> barra inferior
|
||||
|
||||
self.baseframe.scroll_up:SetTexture (skin_file) --> scrollbar parte de cima
|
||||
self.baseframe.scroll_down:SetTexture (skin_file) --> scrollbar parte de baixo
|
||||
@@ -3795,7 +3798,7 @@ function _detalhes:ChangeSkin (skin_name)
|
||||
_detalhes:OpenOptionsWindow (self)
|
||||
end
|
||||
|
||||
if (not just_updating) then
|
||||
if (not just_updating or _detalhes.initializing) then
|
||||
if (this_skin.callback) then
|
||||
this_skin:callback (self)
|
||||
end
|
||||
@@ -3806,6 +3809,8 @@ function _detalhes:ChangeSkin (skin_name)
|
||||
end
|
||||
self.bgframe:SetScript ("OnUpdate", this_skin.control_script)
|
||||
self.bgframe.skin_script = true
|
||||
self.bgframe.skin = this_skin
|
||||
--self.bgframe.skin_script_instance = true
|
||||
end
|
||||
|
||||
end
|
||||
@@ -4016,7 +4021,7 @@ function _detalhes:HideMainIcon (value)
|
||||
|
||||
self.hide_icon = true
|
||||
gump:Fade (self.baseframe.cabecalho.atributo_icon, 1)
|
||||
self.baseframe.cabecalho.ball:SetParent (self.baseframe)
|
||||
--self.baseframe.cabecalho.ball:SetParent (self.baseframe)
|
||||
|
||||
if (self.toolbar_side == 1) then
|
||||
self.baseframe.cabecalho.ball:SetTexCoord (unpack (COORDS_LEFT_BALL_NO_ICON))
|
||||
@@ -4033,7 +4038,7 @@ function _detalhes:HideMainIcon (value)
|
||||
else
|
||||
self.hide_icon = false
|
||||
gump:Fade (self.baseframe.cabecalho.atributo_icon, 0)
|
||||
self.baseframe.cabecalho.ball:SetParent (_detalhes.listener)
|
||||
--self.baseframe.cabecalho.ball:SetParent (_detalhes.listener)
|
||||
|
||||
if (self.toolbar_side == 1) then
|
||||
|
||||
@@ -4106,7 +4111,7 @@ function _detalhes:ShowSideBars (instancia)
|
||||
local l, r, t, b = unpack (COORDS_BOTTOM_SIDE_BAR)
|
||||
self.baseframe.barra_fundo:SetTexCoord (l, r, b, t)
|
||||
self.baseframe.barra_fundo:ClearAllPoints()
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "topleft", -1, -6)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "topleft", 0, -6)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomright", self.baseframe, "topright", -1, -6)
|
||||
else
|
||||
self.baseframe.barra_fundo:Hide()
|
||||
@@ -4121,12 +4126,12 @@ function _detalhes:ShowSideBars (instancia)
|
||||
local l, r, t, b = unpack (COORDS_BOTTOM_SIDE_BAR)
|
||||
self.baseframe.barra_fundo:SetTexCoord (l, r, b, t)
|
||||
self.baseframe.barra_fundo:ClearAllPoints()
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "topleft", -1, -6)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "topleft", 0, -6)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomright", self.baseframe, "topright", -1, -6)
|
||||
else --tooltbar on top
|
||||
self.baseframe.barra_fundo:SetTexCoord (unpack (COORDS_BOTTOM_SIDE_BAR))
|
||||
self.baseframe.barra_fundo:ClearAllPoints()
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "bottomleft", -1, -56)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomleft", self.baseframe, "bottomleft", 0, -56)
|
||||
self.baseframe.barra_fundo:SetPoint ("bottomright", self.baseframe, "bottomright", -1, -56)
|
||||
end
|
||||
end
|
||||
@@ -4226,7 +4231,8 @@ function gump:CriaCabecalho (baseframe, instancia)
|
||||
baseframe.cabecalho.ball_point:SetHeight (32)
|
||||
|
||||
--> icone do atributo
|
||||
baseframe.cabecalho.atributo_icon = _detalhes.listener:CreateTexture (nil, "artwork")
|
||||
--baseframe.cabecalho.atributo_icon = _detalhes.listener:CreateTexture (nil, "artwork")
|
||||
baseframe.cabecalho.atributo_icon = baseframe:CreateTexture (nil, "background")
|
||||
local icon_anchor = _detalhes.skins ["Default Skin"].icon_anchor_main
|
||||
baseframe.cabecalho.atributo_icon:SetPoint ("topright", baseframe.cabecalho.ball_point, "topright", icon_anchor[1], icon_anchor[2])
|
||||
baseframe.cabecalho.atributo_icon:SetTexture (DEFAULT_SKIN)
|
||||
@@ -4234,7 +4240,8 @@ function gump:CriaCabecalho (baseframe, instancia)
|
||||
baseframe.cabecalho.atributo_icon:SetHeight (32)
|
||||
|
||||
--> bola overlay
|
||||
baseframe.cabecalho.ball = _detalhes.listener:CreateTexture (nil, "overlay")
|
||||
--baseframe.cabecalho.ball = _detalhes.listener:CreateTexture (nil, "overlay")
|
||||
baseframe.cabecalho.ball = baseframe:CreateTexture (nil, "overlay")
|
||||
baseframe.cabecalho.ball:SetPoint ("bottomleft", baseframe, "topleft", -107, 0)
|
||||
baseframe.cabecalho.ball:SetWidth (128)
|
||||
baseframe.cabecalho.ball:SetHeight (128)
|
||||
@@ -4243,7 +4250,7 @@ function gump:CriaCabecalho (baseframe, instancia)
|
||||
baseframe.cabecalho.ball:SetTexCoord (unpack (COORDS_LEFT_BALL))
|
||||
|
||||
--> emenda
|
||||
baseframe.cabecalho.emenda = baseframe:CreateTexture (nil, "overlay")
|
||||
baseframe.cabecalho.emenda = baseframe:CreateTexture (nil, "background")
|
||||
baseframe.cabecalho.emenda:SetPoint ("bottomleft", baseframe.cabecalho.ball, "bottomright")
|
||||
baseframe.cabecalho.emenda:SetWidth (8)
|
||||
baseframe.cabecalho.emenda:SetHeight (128)
|
||||
@@ -4271,7 +4278,7 @@ function gump:CriaCabecalho (baseframe, instancia)
|
||||
baseframe.cabecalho.top_bg:SetHeight (128)
|
||||
|
||||
--> frame invisível
|
||||
baseframe.UPFrame = CreateFrame ("frame", nil, baseframe)
|
||||
baseframe.UPFrame = CreateFrame ("frame", "DetailsUpFrameInstance"..instancia.meu_id, baseframe)
|
||||
baseframe.UPFrame:SetPoint ("left", baseframe.cabecalho.ball, "right", 0, -53)
|
||||
baseframe.UPFrame:SetPoint ("right", baseframe.cabecalho.ball_r, "left", 0, -53)
|
||||
baseframe.UPFrame:SetHeight (20)
|
||||
|
||||
@@ -2,7 +2,7 @@ local Loc = LibStub("AceLocale-3.0"):NewLocale("Details", "enUS", true)
|
||||
if not Loc then return end
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.2|r\n\n|cFFFFFF00-|r Fixed bugs where Details! stop working if no plugin is actived on Wow addon panel.\n\n|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Added an option for abbreviate Dps and Hps.\n\n|cFFFFFF00-|r Fixed issue where the window icon fade away when reopening the window.\n\n|cFFFFFF00-|r Improvements in class recognition.\n\n|cFFFFFF00-|r Added follow spells as defensive cooldowns:\nHealing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r More improvements done in Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements made in the downloadable plugins: Timeline and Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Fixed a issue with overall data Dps when have only one segment.\n\n|cFFFFFF00-|r Changed colors and added some backgrounds for menus.\n\n|cFFFFFF00-|r Options panel has his height size increased.\n\n|cFFFFFF00-|r Added options for hide the window or change the transparency when in combat.\n\n|cFFFFFF00-|r Added a control panel for plugins, where you can enable or disable then.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|r More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.3|r\n\n|cFFFFFF00-|r Fixed more known issues with skins.\n\n|cFFFFFF00-|r Fixed an issue where plugin icons wasn't hiding after close all windows.\n\n|cFFFFFF00v1.11.2|r\n\n|cFFFFFF00-|r Fixed bugs where Details! stop working if no plugin is actived on Wow addon panel.\n\n|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Added an option for abbreviate Dps and Hps.\n\n|cFFFFFF00-|r Fixed issue where the window icon fade away when reopening the window.\n\n|cFFFFFF00-|r Improvements in class recognition.\n\n|cFFFFFF00-|r Added follow spells as defensive cooldowns:\nHealing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r More improvements done in Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements made in the downloadable plugins: Timeline and Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Fixed a issue with overall data Dps when have only one segment.\n\n|cFFFFFF00-|r Changed colors and added some backgrounds for menus.\n\n|cFFFFFF00-|r Options panel has his height size increased.\n\n|cFFFFFF00-|r Added options for hide the window or change the transparency when in combat.\n\n|cFFFFFF00-|r Added a control panel for plugins, where you can enable or disable then.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|r More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered."
|
||||
|
||||
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails:|r " --> color and details name
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ if not Loc then return end
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.2|r\n\n|cFFFFFF00-|r Corrigido problemas onde o Details! parava de funcionar se nenhum plugin estiver ligado no painel de addons do Wow.|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Adicionado opcao para abreviar o Dps e o Hps.\n\n|cFFFFFF00-|r Corrigido um problema onde o icone da janela desaparecia ao reabri-la.\n\n|cFFFFFF00-|r Melhorias no reconhecimento das classes.\n\n|cFFFFFF00-|r As seguintes magias foram adicionadas como cooldowns: Healing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r Mais melhorias feitas no plugin Encounter Details.\n\n|cFFFFFF00-|r Melhorias feitas nos plugins disponiveis para download: Timeline e Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Corrigido um problema no Dps no segmento total quando existia apenas 1 segmento.\n\n|cFFFFFF00-|r Cores e imagem de fundo dos menus foram alterados.\n\n|cFFFFFF00-|r A altura do painel de opcoes foi aumentada.\n\n|cFFFFFF00-|r Adicionada opcao para esconder ou alterar a transparencia da janela quando estiver em combate.\n\n|cFFFFFF00-|r Adicionado um painel de controle de plugins para ativar ou desativa-los.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|rMais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.3|r\n\n|cFFFFFF00-|r Corrigido mais problemas conhecidos com as Skins.\n\n|cFFFFFF00-|r Corrigido problema onde os icones dos plugins nao eram escondidos apos fechar todas as janelas.\n\n|cFFFFFF00v1.11.2|r\n\n|cFFFFFF00-|r Corrigido problemas onde o Details! parava de funcionar se nenhum plugin estiver ligado no painel de addons do Wow.|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Adicionado opcao para abreviar o Dps e o Hps.\n\n|cFFFFFF00-|r Corrigido um problema onde o icone da janela desaparecia ao reabri-la.\n\n|cFFFFFF00-|r Melhorias no reconhecimento das classes.\n\n|cFFFFFF00-|r As seguintes magias foram adicionadas como cooldowns: Healing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r Mais melhorias feitas no plugin Encounter Details.\n\n|cFFFFFF00-|r Melhorias feitas nos plugins disponiveis para download: Timeline e Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Corrigido um problema no Dps no segmento total quando existia apenas 1 segmento.\n\n|cFFFFFF00-|r Cores e imagem de fundo dos menus foram alterados.\n\n|cFFFFFF00-|r A altura do painel de opcoes foi aumentada.\n\n|cFFFFFF00-|r Adicionada opcao para esconder ou alterar a transparencia da janela quando estiver em combate.\n\n|cFFFFFF00-|r Adicionado um painel de controle de plugins para ativar ou desativa-los.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|rMais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado."
|
||||
|
||||
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetalhes:|r " --> color and details name
|
||||
|
||||
|
||||
+25
@@ -258,7 +258,32 @@ function _G._detalhes:Start()
|
||||
end
|
||||
|
||||
if (self.is_first_run) then
|
||||
|
||||
_detalhes:OpenWelcomeWindow()
|
||||
|
||||
if (#self.custom == 0) then
|
||||
local Healthstone = {
|
||||
["attribute"] = 2,
|
||||
["spell"] = "6262",
|
||||
["name"] = "Healthstone",
|
||||
["sattribute"] = 1,
|
||||
["target"] = "",
|
||||
["source"] = "[raid]",
|
||||
["icon"] = "Interface\\Icons\\warlock_ healthstone",
|
||||
}
|
||||
self.custom [#self.custom+1] = Healthstone
|
||||
|
||||
local HealingPotion = {
|
||||
["attribute"] = 2,
|
||||
["spell"] = "105708",
|
||||
["name"] = "Healing Potion",
|
||||
["sattribute"] = 1,
|
||||
["target"] = "",
|
||||
["source"] = "[raid]",
|
||||
["icon"] = "Interface\\Icons\\trade_alchemy_potiond3",
|
||||
}
|
||||
self.custom [#self.custom+1] = HealingPotion
|
||||
end
|
||||
end
|
||||
|
||||
--_detalhes:OpenWelcomeWindow()
|
||||
|
||||
Reference in New Issue
Block a user