I noticed this while trying to revive an old GMH addon: Unfortunately, with the update to Cataclysm, I've found that the drop down menus no longer work. This seems to be the case with any addon using a drop down menu from below patch 4.0. Is there anyone who could assist me with fixing my drop down menu? I really need it to work for full functionality, but I haven't a clue as to what's causing the issue. BTW, the drop down menu works perfectly on a 3.3.5 server, so I know it's something with Cataclysm. Here's the code I have for the button:
Code:
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="WepskComboBox">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d50888b-59c2-4f83-ae10-27aaad48391b"><Property name="Items"><?xml version="1.0"?>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>Swords</string>
<string>Unarmed</string>
<string>Thrown</string>
<string>Daggers</string>
<string>Maces</string>
<string>Dual Wield</string>
<string>Crossbow</string>
<string>Staves</string>
<string>Axes</string>
<string>Wand</string>
<string>Guns</string>
<string>Bows</string>
<string>Fist</string>
<string>Polearm</string>
<string>2H Axe</string>
<string>2H Mace</string>
<string>2h Swords</string>
</ArrayOfString></Property><Property name="OnSelectionChanged"><?xml version="1.0"?>
<string /></Property></FrameSkin>-->
<Size>
<AbsDimension x="143" y="32" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="3" y="-52" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<Texture name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="17" />
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.1953125" top="0" bottom="1" />
</Texture>
<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="93" y="64" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" />
</Anchors>
<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1" />
</Texture>
<Texture name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT" />
</Anchors>
<TexCoords left="0.8046875" right="1" top="0" bottom="1" />
</Texture>
<FontString name="$parentText" font="Fonts\FRIZQT__.TTF" text="Please Select..." justifyH="RIGHT">
<Size>
<AbsDimension x="118" y="10" />
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-43" y="2" />
</Offset>
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="10" />
</FontHeight>
<Color r="1" g="1" b="1" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentButton">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-16" y="-18" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(bill, nill, self:GetParent());
PlaySound("igMainMenuOptionCheckBoxOn");
</OnClick>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</NormalTexture>
<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</PushedTexture>
<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</DisabledTexture>
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</HighlightTexture>
</Button>
</Frames>
<Scripts>
<OnLoad>-- START AUTOGENERATED, DO NOT EDIT
local cb_init_fn = function()
local info
info = {}
info.text = "Test"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Unarmed"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Thrown"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Daggers"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Maces"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Dual Wield"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Crossbow"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Staves"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Axes"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Wand"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Guns"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Bows"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Fist"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Polearm"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "2H Axe"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "2H Mace"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "2h Swords"
info.func = function() UIDropDownMenu_SetSelectedID(WepskComboBox, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
end
UIDropDownMenu_Initialize(this, cb_init_fn)
-- END AUTOGENERATED
</OnLoad>
<OnHide>CloseDropDownMenus();
</OnHide>
Thanks for the help.