Thread Tools Display Modes
01-15-23, 07:00 AM   #1
ssg_mon
A Kobold Labourer
Join Date: Jan 2023
Posts: 1
Trying to add a separator between menu options

{ -- [1]
text = C_LFGList.GetSearchResultInfo(resultID).name, --Group name goes here
isTitle = true,
notCheckable = true,
},
{-- [2]
text = WHISPER_LEADER,
func = function() ChatFrame_SendTell(name); end,
notCheckable = true,
arg1 = nil, --Leader name goes here
disabled = nil, --Disabled if we don't have a leader name yet or you haven't applied
tooltipWhileDisabled = 1,
tooltipOnButton = 1,
tooltipTitle = nil, --The title to display on mouseover
tooltipText = nil, --The text to display on mouseover
},
{
-- Separator???
},
{-- [3]
text = LFG_LIST_REPORT_GROUP_FOR,
notCheckable = true,
func = function(_, id)
LFGList_ReportListing(id, name);
LFGListSearchPanel_UpdateResultList(LFGListFrame.SearchPanel);
end;
},
{-- [4]
text = REPORT_GROUP_FINDER_ADVERTISEMENT,
notCheckable = true,
func = function(_, id)
LFGList_ReportAdvertisement(id, name);
LFGListSearchPanel_UpdateResultList(LFGListFrame.SearchPanel);
end;
},
Hello I'm a noob to Lua, I'm trying to add a default separator between [2] and [3] but cannot find any info on google. Can anybody help me please?
  Reply With Quote
01-15-23, 08:41 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Here's how UIDropDownMenu_AddSeparator() is implemented.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Trying to add a separator between menu options


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off