I’m developing a plugin to handle (startup, shutdown, reboot) my server on my private network so I don’t have to stand up from the couch :). Everything is really easy with the new PMS-Framework but what I’m missing is as the possibility to make an input dialog similar to the preferences dialog. I just want to add new computer to my list and change existing ones but I can’t find any handler to build an input dialog.
So please can anybody help me with my problem?
Oh, and by the way is there an Element where I can create a confirm-dialog, because the MessageItem only has the OK-Button?
Thanks for your help.
René
P.S.: Congratulations, the new PMS Framework is much better and easier to use than the old XBMC-Scripts.
I will have a look at this idea this afternoon but how can I make an input for a single Boolean value? (because typing of true or false is a little bit boring)
Sorry Brandi, the framework is currently limited to a single preferences dialog per plugin. Support for multiple dialogs & automated list management (add/remove/edit support for items) is currently being discussed & will be added to a future framework update. If you’ve got any thoughts on what you’d need from the feature, please let us know
EDIT: Confirmation dialogs will be added at some point too!
sorry for my late answer but I had a hard weekend. I think the following features (in addition to the already existing ones inside the preferences dialog) would be nice inside the an input/change dialog:
[list]
[]keyboards for special inputs (IP addresses, date, time, numeric)
[]a file-browser (check if its possible to browser computers on the network)
[]the possibility to add buttons for special actions inside the dialog (example: a button where a action can be called that retrieves the mac-address from a specified IP address
[]the opportunity to handle the save/load and delete action on your own if you want (a default implementation like the one in the preferences dialog would also be nice)
[/list]
thx,
Rene
P.S.: I think I found a little hack to abuse the preferences dialog for an add and change dialog of my list. I just replaces the Prefs.__save and the Prefs.__load inside my code and inside the new functions i load the selected list element or save the hole list inside a file.