Posts: 9
Joined: Jul 2012
Reputation:
0
How can I add a button to DialogContextMenu?
From what I've found in the GUIDialogContextMenu.cpp its building a list at runtime but I cant find what influences what is in the list.
Any help is appreciated.
thanks
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it's typically fed by the virtual GetContextButtons() in CGUIMediaWindow
Posts: 9
Joined: Jul 2012
Reputation:
0
Sorry I should have been more specific.
I'm looking for the code where the "add to library"/"remove from library" buttons are added.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
there is no 'add to library' button, but there is a remove from library. those are added in CGUIWindow(Music|Video)Nav::GetContextButtons() and handled in ::OnContextButton.