- Added an option for lock micro displays. When locked they don't interact with mouse or stay on top of menus.

- Fixed ticket #49: death display not working correctly with sort direction bottom-to-top.
- Fixed an issue with death display where the text wasn't updating their width correctly.
- Fixed an issue with energy and miscellaneous displays type not working correctly with bar animations.
- Fixed an issue while loading old profiles wans't updating their values for newer versions of the addon.
This commit is contained in:
Tercio
2015-08-05 15:44:12 -03:00
parent 668d509e29
commit 115e80a3e4
9 changed files with 82 additions and 22 deletions
+17 -1
View File
@@ -43,6 +43,20 @@
end
end
function _detalhes.StatusBar:LockDisplays (instance, locked)
if (instance.StatusBar.center and instance.StatusBar.left and instance.StatusBar.right) then
if (locked) then
instance.StatusBar.center.frame:EnableMouse (false)
instance.StatusBar.left.frame:EnableMouse (false)
instance.StatusBar.right.frame:EnableMouse (false)
else
instance.StatusBar.center.frame:EnableMouse (true)
instance.StatusBar.left.frame:EnableMouse (true)
instance.StatusBar.right.frame:EnableMouse (true)
end
end
end
--> create a plugin child for an instance
function _detalhes.StatusBar:CreateStatusBarChildForInstance (instance, pluginName)
local PluginObject = _detalhes.StatusBar.NameTable [pluginName]
@@ -291,7 +305,9 @@
--|TTexturePath: size X: size Y: point offset Y X : texture size : coordx1 L : coordx2 R : coordy1 T : coordy2 B |t
-- left click: 0.0019531:0.1484375:0.4257813:0.6210938 right click: 0.0019531:0.1484375:0.6269531:0.8222656
_detalhes.OnEnterMainWindow (frame.child.instance)
local instance = frame.child.instance
_detalhes.OnEnterMainWindow (instance)
frame:SetBackdrop (on_enter_backdrop)
frame:SetBackdropColor (0.7, 0.7, 0.7, 0.6)