Hey boys & girls. i need help once again.
Basicly i want this dropdownlist to appear like this;
from here
to here
Here is my code so far.
LUA Code:
local function Minimap_CreateDropDown()
local button = {}
button[1] = {}
button[1].text = CHARACTER_BUTTON
button[1].func = function() ToggleCharacter('PaperDollFrame') end
UIDropDownMenu_AddButton(button[1])
button[2] = {}
button[2].text = SPELLBOOK_ABILITIES_BUTTON
button[2].func = function() ToggleFrame(SpellBookFrame) end
UIDropDownMenu_AddButton(button[2])
button[3] = {}
button[3].text = TALENTS_BUTTON
button[3].func = function() ToggleTalentFrame() end
UIDropDownMenu_AddButton(button[3])
button[4] = {}
button[4].text = ACHIEVEMENT_BUTTON
button[4].func = function() ToggleAchievementFrame() end
UIDropDownMenu_AddButton(button[4])
button[5] = {}
button[5].text = GetCalendarName()
button[5].func = function() ToggleCalendar() end
UIDropDownMenu_AddButton(button[5])
button[6] = {}
button[6].text = QUESTLOG_BUTTON
button[6].func = function() ToggleFrame(QuestLogFrame) end
UIDropDownMenu_AddButton(button[6])
button[7] = {}
button[7].text = SOCIAL_BUTTON
button[7].func = function() ToggleFriendsFrame() end
UIDropDownMenu_AddButton(button[7])
button[8] = {}
button[8].text = GUILD
button[8].func = function() ToggleGuildFrame() end
UIDropDownMenu_AddButton(button[8])
button[9] = {}
button[9].text = PLAYER_V_PLAYER
button[9].func = function() ToggleFrame(PVPFrame) end
UIDropDownMenu_AddButton(button[9])
button[10] = {}
button[10].text = LFG_TITLE
button[10].func = function() ToggleLFDParentFrame() end
UIDropDownMenu_AddButton(button[10])
button[11] = {}
button[11].text = HELP_BUTTON
button[11].func = function() ToggleHelpFrame() end
UIDropDownMenu_AddButton(button[11])
button[12] = {}
button[12].text = "World Markers"
button[12].func = function() ToggleDropDownList(1, nil, CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidWorldMarkerButtonDropDownList()) end
UIDropDownMenu_AddButton(button[12])
end
TimeManagerClockButton:SetScript('OnClick', function(self, button)
if (button == 'RightButton') then
ToggleDropDownMenu(1, nil, TimeManagerClockDropDown, self, -0, -0)
GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMLEFT')
else
if (self.alarmFiring) then
TimeManager_TurnOffAlarm()
end
ToggleTimeManager()
end
GameTooltip:Hide()
end)
TimeManagerClockDropDown = CreateFrame('Frame', 'TimeManagerClockDropDown', nil, 'UIDropDownMenuTemplate')
UIDropDownMenu_Initialize(TimeManagerClockDropDown, Minimap_CreateDropDown, 'MENU')