Kodi Community Forum
Can we get Container.Viewmode(offest) ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Can we get Container.Viewmode(offest) ? (/showthread.php?tid=81923)



Can we get Container.Viewmode(offest) ? - igotdvds - 2010-09-25

Would it be possible to add the ability to get Container.Viewmode(offset).

I want to load the next and previous viewmode names and images.


- igotdvds - 2010-10-02

Can this be done?


- jmarshall - 2010-10-02

Probably, but not now. A patch would be welcome - see GUIViewControl.cpp


- igotdvds - 2010-10-03

jmarshall Wrote:Probably, but not now. A patch would be welcome - see GUIViewControl.cpp

Please explain further...


- Jezz_X - 2010-10-03

He is saying feel free to break out your c++ coding skills and edit GUIViewControl.cpp to add the stuff you need yourself and then send a patch with the changed code back to Team XBMC so it can be put into future versions and made available to all skins to use


- jmarshall - 2011-02-22

It'd be useful if you give reasons why you'd want to do this, so that we can see whether it's something useful in general, or just a nice to have because of the way you designed your skin that differs from other skins due to asthetics.


- mcborzu - 2011-02-22

jmarshall Wrote:It'd be useful if you give reasons why you'd want to do this, so that we can see whether it's something useful in general, or just a nice to have because of the way you designed your skin that differs from other skins due to asthetics.

I think it could be used in the same way DJH used when Aeon was first released. Remember you hit Viewtype the you taken to a screen of 4 pics:
Up- Showcase
Down - List
Left - Multiplex
Right - Coverflow


Something like that and there was greyish images to go into each section, actually as I type if he did it way back then you should be able to do it now. He probably used buttons using SetFocus(), something along those lines....


- jmarshall - 2011-02-22

Same way Mediastream did it - they had lots of code so that they knew each viewmode and just made the buttons go that that one viewmode.

As I say, I'm not opposed, just don't see "because we can" as a valid reason for doing things Smile

Cheers,
Jonathan


- igotdvds - 2011-02-22

I essentially want to do what Mcborzu mentioned. Have a list of different views and have the user be able to look at the icons that represent each view.


- `Black - 2011-02-22

Then hard code it, should be pretty easy I think... and not that much code.


- Hitcher - 2011-02-22

Container.SetViewMode(id)


- igotdvds - 2011-02-22

Hitcher Wrote:Container.SetViewMode(id)

Thanks Hitcher. I made the buttons to change views. Big Grin

Image

Image