Dropdown menu slider

Hi,

anyone know how to add a slider to a dropdown button?

If you click your character portrait and hover over voice chat you get some volume sliders show.

looking at the files this is a custom frame but i cant see how to use .customFrame as a field for the dropdown button?

https://wowwiki.fandom.com/wiki/Making_a_scrollable_list_using_FauxScrollFrameTemplate

Thanks but not that. Right click your character portrait and hover over voice chat option. You get a sub menu/fly out with a slider to adjust the volume.

As a side note, if you just need a scrolling list of items I would not use the faux scrolling thing. Just make static xml elements give them fields for text and texture etc and then just update them dynamically. Of course if you want to scroll none list type things it’s not going to work.

To me it looks complicated enough to work with dropdowns, let alone adding sliders to them

I suggest asking on WoWInterface and/or the addon discords

  • https://www.wowinterface.com/forums/forumdisplay.php?f=16
  • https://discord.gg/qEwZ59u

Hi thanks. Do you have a link for the discord server.

As for dropdowns, it’s not as hard as it looks. It’s easy to make a context menu (what I call the right click menu) using the EasyMenu() function. I use something like this.

addon.ContextMenuDropDown = CreateFrame("Frame", "addonContextMenuDropDown", UIParent, "UIDropDownMenuTemplate")
addon.ContextMenu = {
   { text="Menu Title", isTitle=true, notCheckable=true, },
   { text='Button2', notCheckable=true, func=function() print('hello world') end, },
   { text='Button3', notCheckable=true, hasArrow=true, menuList={
       { text='Sub Menu Button1' },
   }},
}

Then normally i use an OnClick event to call

EasyMenu(addon.ContextMenu, addon.ContextMenuDropDown, "cursor", 0 , 0, "MENU")

If you want the fancy drop down boxes etc then it involves slightly more work.

Edit: Just saw the link thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.