Can we get Container.Viewmode(offest) ?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #1
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.
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #2
Can this be done?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #3
Probably, but not now. A patch would be welcome - see GUIViewControl.cpp

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #4
jmarshall Wrote:Probably, but not now. A patch would be welcome - see GUIViewControl.cpp

Please explain further...
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #5
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
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #6
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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #7
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....

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #8
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #9
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.
find quote
`Black Online
Team-Kodi Member
Posts: 2,433
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #10
Then hard code it, should be pretty easy I think... and not that much code.

[Image: xp1080-21.png]
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,748
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #11
Container.SetViewMode(id)
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #12
Hitcher Wrote:Container.SetViewMode(id)

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

[Image: screenshot085.png]

[Image: screenshot084.png]
find quote