2015-12-21, 08:17
(2015-12-18, 20:51)Solo0815 Wrote: If Kodi waits for a button, then highlight it somehow (darken others or fill it with a color like in #4) and if the user presses the button, then Kodi should make the button look "pressed".
That you can use in a "test"-mode also, where the user can press all the buttons and Kodi displays which button it is on the original controller.
I like this. I can think of two approaches.
- Naive approach - one .png for each button, where only the button is visible and everything else is transparent. Activated buttons are just rendered on top of the controller.
- Efficient approach - one .png of all activated buttons, stored with geometry information like this. When buttons are activated, only their portion of the image is rendered.
95% transparent .pngs can probably be tightly compressed, but this will be a big strain when textures are generated in memory.
Geometry information is a pain to extract (using Gimp or Photoshop), and if the image is changed it'll have to be re-extracted.
Any other ideas?