vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | TITAN_AUXAUTOHIDE_ID = "AuxAutoHide"; |
2 | |||
3 | function TitanPanelAuxAutoHideButton_OnLoad() |
||
4 | this.registry = { |
||
5 | id = TITAN_AUXAUTOHIDE_ID, |
||
6 | builtIn = 1, |
||
7 | version = TITAN_VERSION, |
||
8 | menuText = TITAN_AUTOHIDE_MENU_TEXT, |
||
9 | tooltipTitle = TITAN_AUTOHIDE_TOOLTIP, |
||
10 | }; |
||
11 | end |
||
12 | |||
13 | function TitanPanelAuxAutoHideButton_OnShow() |
||
14 | TitanPanelAuxAutoHideButton_SetIcon(); |
||
15 | end |
||
16 | |||
17 | function TitanPanelAuxAutoHideButton_OnClick(button) |
||
18 | if (button == "LeftButton") then |
||
19 | TitanPanelBarButton_ToggleAuxAutoHide(); |
||
20 | end |
||
21 | end |
||
22 | |||
23 | function TitanPanelAuxAutoHideButton_SetIcon() |
||
24 | local icon = TitanPanelAuxAutoHideButtonIcon; |
||
25 | if (TitanPanelGetVar("AuxAutoHide")) then |
||
26 | icon:SetTexture(TITAN_ARTWORK_PATH.."TitanPanelPushpinOut"); |
||
27 | else |
||
28 | icon:SetTexture(TITAN_ARTWORK_PATH.."TitanPanelPushpinIn"); |
||
29 | end |
||
30 | end |
||
31 | |||
32 | function TitanPanelRightClickMenu_PrepareAuxAutoHideMenu() |
||
33 | TitanPanelRightClickMenu_AddTitle(TitanPlugins[TITAN_AUXAUTOHIDE_ID].menuText); |
||
34 | TitanPanelRightClickMenu_AddCommand(TITAN_PANEL_MENU_HIDE, TITAN_AUXAUTOHIDE_ID, TITAN_PANEL_MENU_FUNC_HIDE); |
||
35 | end |