How to Add Custom Hex Color Code for Colordiffuse
#1
Hey there,

I am fairly new to skinning and was hoping someone could point me in the right direction....
I was wondering how would I add a feature to a skin where the user could choose a custom color diffuse option and enter a hex color code.

So basically the user selects 'Custom Color Hex' and the osdkeyboard pops up and you enter the hex color code of your choice.

Thanks in advance!
Reply
#2
better only give presets because you cannot check on skinning level wether the hex color code is valid.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
(2014-11-03, 04:45)phil65 Wrote: better only give presets because you cannot check on skinning level wether the hex color code is valid.

I want both presets and the ability to type in a custom hex color.

If you are looking at a hex color chart you would know its valid...
Reply
#4
Then just use Skin.SetString(name_of_string)
(and dont forget to tell the user that he needs to enter the alpha value in hex, too. (AARRGGBB) )
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
(2014-11-03, 04:56)phil65 Wrote: Then just use Skin.SetString(name_of_string)
(and dont forget to tell the user that he needs to enter the alpha value in hex, too. (AARRGGBB) )

Wow simpler than I thought.

Thanks!
Reply
#6
There's a colour picker script somewhere in here.
Reply

Logout Mark Read Team Forum Stats Members Help
How to Add Custom Hex Color Code for Colordiffuse0