Addon Drop Down Menus menu

User Tag List

Results 1 to 4 of 4
  1. #1
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Addon Drop Down Menus

    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">&lt;?xml version="1.0"?&gt;
    &lt;ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;string&gt;Swords&lt;/string&gt;
      &lt;string&gt;Unarmed&lt;/string&gt;
      &lt;string&gt;Thrown&lt;/string&gt;
      &lt;string&gt;Daggers&lt;/string&gt;
      &lt;string&gt;Maces&lt;/string&gt;
      &lt;string&gt;Dual Wield&lt;/string&gt;
      &lt;string&gt;Crossbow&lt;/string&gt;
      &lt;string&gt;Staves&lt;/string&gt;
      &lt;string&gt;Axes&lt;/string&gt;
      &lt;string&gt;Wand&lt;/string&gt;
      &lt;string&gt;Guns&lt;/string&gt;
      &lt;string&gt;Bows&lt;/string&gt;
      &lt;string&gt;Fist&lt;/string&gt;
      &lt;string&gt;Polearm&lt;/string&gt;
      &lt;string&gt;2H Axe&lt;/string&gt;
      &lt;string&gt;2H Mace&lt;/string&gt;
      &lt;string&gt;2h Swords&lt;/string&gt;
    &lt;/ArrayOfString&gt;</Property><Property name="OnSelectionChanged">&lt;?xml version="1.0"?&gt;
    &lt;string /&gt;</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.

    Addon Drop Down Menus
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I would recommend posting on a forum that has some Lua developers for the retail Addon system so that someone who is familiar with the API changes and such can help. WoW Emulation Lua has a completely different API.

  3. #3
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh. Ok. Thanks for the suggestion.

  4. #4
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found out that when Wow updated to Cataclysm, the methods for creating drop down menus changed. Unfortunately, I cannot find any methods or information regarding what kinds of changes I should make to my code. So, if anybody could illuminate the issues here, I would appreciate it.

Similar Threads

  1. Trouble with CR showing up in drop down
    By modestmath in forum PE Support forum
    Replies: 4
    Last Post: 01-31-2015, 09:14 PM
  2. Addon Request: Legendary drop alert
    By thevadar in forum Diablo 3 General
    Replies: 6
    Last Post: 08-23-2012, 05:04 AM
  3. How to download and update addons when curse is down, with wowmatrix
    By Stans Dad in forum World of Warcraft Guides
    Replies: 27
    Last Post: 06-22-2011, 06:56 PM
  4. Damn drop rate
    By LightWave in forum World of Warcraft General
    Replies: 3
    Last Post: 10-20-2006, 03:36 PM
  5. See Enemy Weapon Drop Before Kill (New Locs)
    By Matt in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 10-12-2006, 12:20 AM
All times are GMT -5. The time now is 05:43 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search