Wiki Navigation
- Loading...
Question
How do I create my own custom GUI Dialog?
Answer
- Choose of existing dialog to modify it. https://github.com/MediaPortal/Media...ialogs/Dialogs
- Create your own dialog by overriding one of them
Examples:
https://code.google.com/p/mediaport....alogPreview.cs
https://code.google.com/p/mediaport....kListDialog.cs
https://code.google.com/p/moving-pic...nCodeDialog.cs
https://code.google.com/p/moving-pic...neralRating.cs
https://code.google.com/p/mptvseries...IUserRating.cs
https://code.google.com/p/mptvseries.../GUIPinCode.cs - Create skin files for your new dialog
Take skin file of Dialog you overrided and modify it for your needs. Change Windowd ID, add new control etc.
Skin files for standart skins (better start with supporting them) located here:
https://github.com/MediaPortal/Media...tal.Base/skin/ - Now you can use custom dialog just as like as standart one
GUICheckListDialog dlg = (GUICheckListDialog)GUIWindowManager.GetWindow(GUICheckListDialog.ID); if (dlg == null) return; dlg.Reset(); dlg.SetHeading(...); dlg.Add(...); dlg.Add(...); } dlg.DoModal(GUIWindowManager.ActiveWindow);
This page has no comments.