113 - Wrong height of GameMenu
Hi,
Can you change a GameMenuButtonAddOns frame to something like this? :
<Button name="GameMenuButtonAddOns" inherits="GameMenuButtonTemplate" text="AddOns" parent="GameMenuFrame">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonMacros" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
if GameMenuFrame_UpdateVisibleButtons then
hooksecurefunc("GameMenuFrame_UpdateVisibleButtons", function()
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+25)
end)
end
local point, relativeTo, relativePoint, x, y= GameMenuButtonMacros:GetPoint(1);
if (relativeTo and relativeTo ~= self ) then
self:SetPoint( point, relativeTo, relativePoint, x, y)
end
GameMenuButtonMacros:ClearAllPoints()
GameMenuButtonMacros:SetPoint("TOP",self,"BOTTOM",0,-1);
</OnLoad>
<OnClick>
PlaySound("igMainMenuOption");
HideUIPanel(GameMenuFrame);
ShowUIPanel(ACP_AddonList);
</OnClick>
</Scripts>
</Button>
It will fix a problem with height of GameMenu.
Cheers
| User | When | Change |
|---|---|---|
| Aretzky | Dec 29, 2013 at 12:27 UTC | Changed description: </Anchor>
</Anchors>
<Scripts>
- <!--<OnLoad>
+ <OnLoad>
- GameMenuButtonLogout:SetPoint("TOP",self:GetName(),"BOTTOM",0,-1);
- GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+25);
- </OnLoad>-->
-
- <OnShow>
- if GameMenuFrame_UpdateVisibleButtons then
+ if GameMenuFrame_UpdateVisibleButtons then
- hooksecurefunc("GameMenuFrame_UpdateVisibleButtons", function()
+ hooksecurefunc("GameMenuFrame_UpdateVisibleButtons", function()
- GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+25)
+ GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+25)
- end)
+ end)
- end
+ end
- local point, relativeTo, relativePoint, x, y= GameMenuButtonMacros:GetPoint(1);
+ local point, relativeTo, relativePoint, x, y= GameMenuButtonMacros:GetPoint(1);
- if (relativeTo and relativeTo ~= self ) then
+ if (relativeTo and relativeTo ~= self ) then
- self:SetPoint( point, relativeTo, relativePoint, x, y)
+ self:SetPoint( point, relativeTo, relativePoint, x, y)
- end
+ end
- GameMenuButtonMacros:ClearAllPoints()
+ GameMenuButtonMacros:ClearAllPoints()
- GameMenuButtonMacros:SetPoint("TOP",self,"BOTTOM",0,-1);
+ GameMenuButtonMacros:SetPoint("TOP",self,"BOTTOM",0,-1);
- </OnShow>
- <OnHide>
+ </OnLoad>
- if GameMenuFrame_UpdateVisibleButtons then
- hooksecurefunc("GameMenuFrame_UpdateVisibleButtons", function()
- GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()-25)
- end)
- end
- </OnHide>
<OnClick>
PlaySound("igMainMenuOption");
HideUIPanel(GameMenuFrame);
ShowUIPanel(ACP_AddonList);
</OnClick>
</Scripts>
</Button>
+
It will fix a problem with height of GameMenu. |
| Aretzky | Dec 27, 2013 at 17:25 UTC | Create |