Kodi Community Forum
DialogContextMenu - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: DialogContextMenu (/showthread.php?tid=136661)



DialogContextMenu - vishalm - 2012-07-22

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


RE: DialogContextMenu - spiff - 2012-07-22

it's typically fed by the virtual GetContextButtons() in CGUIMediaWindow


RE: DialogContextMenu - vishalm - 2012-07-22

Sorry I should have been more specific.
I'm looking for the code where the "add to library"/"remove from library" buttons are added.


RE: DialogContextMenu - spiff - 2012-07-22

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.