Posts: 2,087
Joined: Jun 2007
Reputation:
92
djh_
Aeon Project Founder
Posts: 2,087
I want to have two different context menu formats that display according to the view type from which they're invoked. Is this possible? I've tried various methods involving conditional visibility but there doesn't seem to be a way of passing Control.IsVisible conditions to the contextmenu window.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
I don't think so. The context menu entries are filled in by the software.
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
jmarshall was supposed to of added conditional visibility to the the conext menu items so they can display different look a while ago but I don't think any one used it so it may have never worked or broke since
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Conditionals that fall back to the mediawindow should work (eg Container.* stuff) but those that don't (such as Control.IsVisible()) won't, as we try and restrict conditionals to the current rendering window to get around issues with people referencing the wrong control (same id in each window) and so on.
Ideally the control ones could actually take the window id in addition to the control id to "solve" the issue, though there's other problems with that (controlgroup can take 2 id's already, and we're currently restricted to just 2 pieces of additional info).
Cheers,
Jonathan