AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
Trying to add a separator between menu options
Go to Page...
Reply
View First Unread
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?
ssg_mon
View Public Profile
Send a private message to ssg_mon
Find More Posts by ssg_mon
01-15-23, 08:41 AM
#
2
SDPhantom
A Pyroguard Emberseer
Join Date: Jul 2006
Posts: 2,356
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)
SDPhantom
View Public Profile
Send a private message to SDPhantom
Find More Posts by SDPhantom
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» Trying to add a separator between menu options
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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