a56db81297
- Abbreviations now are applied on all numbers in the bar. - Minimum amount of instances was lowered to 3. - Fixed issue where the instance menu wasn't respecting the amount limit of instances. - Added options for cutomize the right text of a row. - Added a option to be able to chance the framestrata of an window. - Added shift, ctrl, alt interaction for rows which shows all spells, targets or pets when pressed. - Fixed a issue where changing the alpha of a window makes it disappear on the next logon. - Added a option for auto transparency to ignore rows. - Added option to be able to set shadow on the attribute text. - Fixed a issue with window snap where disabled statusbar makes a gap between the windows. - Fixed issue where mini displayes wasn't saved and back to default values on every logon. - Mini display 'instance segment' now have a option to show the encounter name instead the number of the segment. - Added a new experimental library called hotcorners, this library create a menu hidden on the top left corner. - New API: instance:GetId() return the id of the instance.
72 lines
2.2 KiB
Lua
72 lines
2.2 KiB
Lua
--File Revision: 1
|
|
--Last Modification: 19/04/2014
|
|
--Change Log:
|
|
-- 19/04/2014: File Created.
|
|
--Description:
|
|
-- this file maintain the main function for row animations
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
local _detalhes = _G._detalhes
|
|
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
|
local _
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
--> basic functions
|
|
|
|
_detalhes.current_row_animation = ""
|
|
_detalhes.row_animation_pool = {}
|
|
|
|
function _detalhes:InstallRowAnimation (name, desc, func, options)
|
|
|
|
if (not name) then
|
|
return false
|
|
elseif (not func) then
|
|
return false
|
|
end
|
|
|
|
if (not desc) then
|
|
desc = ""
|
|
end
|
|
|
|
tinsert (_detalhes.row_animation_pool, {name = name, desc = desc, func = func, options = options})
|
|
return true
|
|
|
|
end
|
|
|
|
function _detalhes:SelectRowAnimation (name)
|
|
for key, value in ipairs (_detalhes.row_animation_pool) do
|
|
if (value.name == name) then
|
|
_detalhes.current_row_animation = name
|
|
return true
|
|
end
|
|
end
|
|
return false
|
|
end
|
|
|
|
function _detalhes:GetRowAnimationList()
|
|
local t = {}
|
|
for key, value in ipairs (_detalhes.row_animation_pool) do
|
|
tinsert (t, value.name)
|
|
end
|
|
return t
|
|
end
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
--> install default animations
|
|
|
|
do
|
|
local fade_func = function (row, state)
|
|
if (state) then
|
|
_detalhes.gump:Fade (row, "out")
|
|
else
|
|
_detalhes.gump:Fade (row, "in")
|
|
end
|
|
end
|
|
local fade_desc = "Default animation, makes the bar fade in or fade out when showing or hiding in the window"
|
|
_detalhes:InstallRowAnimation ("Fade", fade_desc , fade_func, nil)
|
|
|
|
_detalhes:SelectRowAnimation ("Fade")
|
|
end
|
|
|
|
|