2012-05-25, 22:51
Just me that find GUI addon development unnecessary hard and boring? Have I missed something invaluable?
I have played around with some addon concept lately.
Python makes addon development fun and easy, but I never bother create a release since creating a gui is so much boring and repeating coding.. Even a simple panel with some text and buttons needs knowledge to skin naming convention, or using custom graphic, mark up and position elements. And then there are diffferent display modes and a wide variety of skins that won't match your skinning if you don't create a uniqe design for it.
The basic dialogs that can be used from python are great, but comes short in more advanced addons. I was wondering how people handles their GUI development. Some tips and tricks you want share? Some reusable code to ease development?
I've been thinking of creating a generic addon project template that contains a common structure for building a gui addon. With a collection of commonly used functions and skinning xml. Making the typical addon code be maintained externally from the individual addon code.
I've also thought about a section in the skin describing a set of basic GUI elements. Like Windows, dialogs, buttons, radio buttons, text boxes etc. in the same style as the skin. Those component could be used in python for dynamic GUIs and in skin files to let the addon developer handle only the necessary properties of the user interface. With a common naming convention this would ease the development of GUI across skins.
A basic GUI library for python in XBMC and a common codebase would increase the quality of addons. It would make it faster and more fun to develop addons, and we would probably see more addons for XBMC. It would be easier to take over or join the development of addons with the same structure.
This can't be done by one person, and would only be possible if developers is positive and contributed to such a initiative. Some experienced developers to manage, delegate and approve. People willing to create good guidelines and tutorials for addon development, people willing to contribute their code to the public domain
Got a bit messy since there where no buffer or filters between my brain and keyboard today.
Sorry if you think my english is so perfect, but hope to make me understood. What do YOU think?
I have played around with some addon concept lately.
Python makes addon development fun and easy, but I never bother create a release since creating a gui is so much boring and repeating coding.. Even a simple panel with some text and buttons needs knowledge to skin naming convention, or using custom graphic, mark up and position elements. And then there are diffferent display modes and a wide variety of skins that won't match your skinning if you don't create a uniqe design for it.
The basic dialogs that can be used from python are great, but comes short in more advanced addons. I was wondering how people handles their GUI development. Some tips and tricks you want share? Some reusable code to ease development?
I've been thinking of creating a generic addon project template that contains a common structure for building a gui addon. With a collection of commonly used functions and skinning xml. Making the typical addon code be maintained externally from the individual addon code.
I've also thought about a section in the skin describing a set of basic GUI elements. Like Windows, dialogs, buttons, radio buttons, text boxes etc. in the same style as the skin. Those component could be used in python for dynamic GUIs and in skin files to let the addon developer handle only the necessary properties of the user interface. With a common naming convention this would ease the development of GUI across skins.
A basic GUI library for python in XBMC and a common codebase would increase the quality of addons. It would make it faster and more fun to develop addons, and we would probably see more addons for XBMC. It would be easier to take over or join the development of addons with the same structure.
This can't be done by one person, and would only be possible if developers is positive and contributed to such a initiative. Some experienced developers to manage, delegate and approve. People willing to create good guidelines and tutorials for addon development, people willing to contribute their code to the public domain
Got a bit messy since there where no buffer or filters between my brain and keyboard today.
Sorry if you think my english is so perfect, but hope to make me understood. What do YOU think?