HOW-TO write GUI settings for XBMC python plugins and scripts (addons) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: HOW-TO write GUI settings for XBMC python plugins and scripts (addons) (/showthread.php?tid=29577) |
- solexalex - 2010-07-29 thanks I'll try these later and keep in touch - TobiasTheCommie - 2010-08-28 Is it possible to add more pages to the settings window? With a lot of settings the "general" view is quickly becoming cluttered, so it would be nice to add an "advanced" view. - Nuka1195 - 2010-08-28 http://trac.xbmc.org/attachment/ticket/9918/addon-settings4.zip has an example script that has categories in settings.xml - TobiasTheCommie - 2010-08-28 Thank you - teshephe - 2010-09-01 Good stuff.. My question is that I have some items that the string can be quite long so how do I make it so when you edit a item that is too long, that it scrolls or the text in the edit box moves to the left as I cursor to the right to see what I am editing in the user interface? Thanks! - jmarshall - 2010-09-02 The Editcontrol automatically does this. I suspect, however, that you're referring to the virtualkeyboard which does not use an editcontrol. - teshephe - 2010-09-03 jmarshall Wrote:The Editcontrol automatically does this. I suspect, however, that you're referring to the virtualkeyboard which does not use an editcontrol. Thanks. - teshephe - 2010-09-04 I am having a problem when I moved to the 10.0 BETA.. when I goto plugin/addon settings, not all of the settings are showing up. Again it is only in 10.0 (maybe a bug?) The only items that show for editing or view on the addon setting dialogue are: streaming_ip vlc_loc video_sout audio_sout pls_path thumbs_path search_engine My code: (settings.xml) Code: settings> - amet - 2010-09-04 look here, settings.xml layout has changed a bit - teshephe - 2010-09-04 Amet Wrote:look here, settings.xml layout has changed a bit Thanks. I did not see anything about int type Seems that's the one that are not showing up. Any ideas? EDIT.... I got it all working now w/ exception of the int type. Thanks for your help! - amet - 2010-09-04 teshephe Wrote:Thanks. I did not see anything about int type this should do it: Code: <setting id="audio_fc" type="number" label="bla" default="10"/> - teshephe - 2010-09-04 Amet Wrote:this should do it: LOL!!! it's getting hard to keep up with the development! Thanks... that worked. - teshephe - 2010-09-07 Anyway to specify a different font for a specific <setting> type="text" ? settings not working at all - chippyash - 2010-09-09 this is r33532 running on Fedora resources/settings.xml Code: <?xml version="1.0" encoding="UTF-8"?> resources/language/english/strings.xml Code: <?xml version="1.0" encoding="utf-8" standalone="yes"?> Selecting addon settings from context menu results in following from debug and no display of settings dialog Code: DEBUG: OnKey: 61453 pressed, action is Select I can retrieve the setting using dir = xbmcplugin.getSetting(self._pluginId,'gpoPath') - no problem Do I need to initialise something in the script? - amet - 2010-09-09 resources/settings.xml Code: <?xml version="1.0" encoding="UTF-8"?> resources/language/english/strings.xml Code: <?xml version="1.0" encoding="utf-8" standalone="yes"?> |