Flagrick's Avatar
Files 1
Downloads 9,230
Favorites 45
View Feature Request
Show/Hide Behaviour
Feature #: 323
File: Flagrick's durability
Date: 05/13/14 03:57 PM
By: SkOODaT
Status: Feature Implemented
In your function Durability:MainFrameInit() could you please modifiy your addon to hide it when in menus and reshow when not, i took the liberty of making the code to do this for you all you half to do is add this at the end of your function Durability:MainFrameInit()

Code:
    
    ZO_PreHookHandler(ZO_GameMenu_InGame, 'OnShow', function()
        self.control:SetHidden(true)
    end)
    ZO_PreHookHandler(ZO_GameMenu_InGame, 'OnHide', function()
        self.control:SetHidden(false)
    end)
    ZO_PreHookHandler(ZO_InteractWindow, 'OnShow', function()
        self.control:SetHidden(true)
    end)
    ZO_PreHookHandler(ZO_InteractWindow, 'OnHide', function()
        self.control:SetHidden(false)
    end)
    ZO_PreHookHandler(ZO_KeybindStripControl, 'OnShow', function()
        self.control:SetHidden(true)
    end)
    ZO_PreHookHandler(ZO_KeybindStripControl, 'OnHide', function()
        self.control:SetHidden(false)
    end)

RSS 2.0 Feed for Favorite CommentsNotes Sort Options
By: Flagrick - 05/14/14 10:05 AM
Automatic Hidding :
Some people want it and others don't want it.

I think I'll make it configurable in the menu
By: Flagrick - 05/14/14 11:36 AM
==> V1.0.5