home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
ViewModeSwitcher plugin (Version 0.3)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cpp2005" data-source="post: 233772" data-attributes="member: 26608"><p>Hi Lars and thanks for the plugin. I added a small patch to it so in case new AR modes added to MP, the plugin can use them automatically. Here the details:</p><p></p><p>1) Settings.cs, method StringToViewMode</p><p>instead of "switch(strViewmode) ..." use:</p><p>[CODE] try</p><p> {</p><p> return (Geometry.Type)Enum.Parse(typeof(Geometry.Type), strViewmode);</p><p> }</p><p> catch (ArgumentException )</p><p> {</p><p> return Geometry.Type.Normal;</p><p> }[/CODE]</p><p></p><p>2) ViewModeSwitcherConfig.cs, method ViewModeSwitcherConfig_Load</p><p>instead "using (MediaPortal.Profile.Settings xmlreader = ...)" block use</p><p>[CODE] foreach (string s in Enum.GetNames(typeof(MediaPortal.GUI.Library.Geometry.Type)))</p><p> cmbViewMode.Items.Add(s);[/CODE]</p><p></p><p></p><p>3) ViewModeSwitcherRuleDetail.cs, method ViewModeSwitcherRuleDetail_Load</p><p>instead "using (MediaPortal.Profile.Settings xmlreader = ...)" block use</p><p>[CODE] foreach (string s in Enum.GetNames(typeof(MediaPortal.GUI.Library.Geometry.Type)))</p><p> cmbViewMode.Items.Add(s);[/CODE]</p><p></p><p></p><p>The drawback of this patch that you are losing allowed zoom modes and just show all of them.</p></blockquote><p></p>
[QUOTE="cpp2005, post: 233772, member: 26608"] Hi Lars and thanks for the plugin. I added a small patch to it so in case new AR modes added to MP, the plugin can use them automatically. Here the details: 1) Settings.cs, method StringToViewMode instead of "switch(strViewmode) ..." use: [CODE] try { return (Geometry.Type)Enum.Parse(typeof(Geometry.Type), strViewmode); } catch (ArgumentException ) { return Geometry.Type.Normal; }[/CODE] 2) ViewModeSwitcherConfig.cs, method ViewModeSwitcherConfig_Load instead "using (MediaPortal.Profile.Settings xmlreader = ...)" block use [CODE] foreach (string s in Enum.GetNames(typeof(MediaPortal.GUI.Library.Geometry.Type))) cmbViewMode.Items.Add(s);[/CODE] 3) ViewModeSwitcherRuleDetail.cs, method ViewModeSwitcherRuleDetail_Load instead "using (MediaPortal.Profile.Settings xmlreader = ...)" block use [CODE] foreach (string s in Enum.GetNames(typeof(MediaPortal.GUI.Library.Geometry.Type))) cmbViewMode.Items.Add(s);[/CODE] The drawback of this patch that you are losing allowed zoom modes and just show all of them. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
ViewModeSwitcher plugin (Version 0.3)
Contact us
RSS
Top
Bottom