|
From: <jmb...@us...> - 2013-03-19 11:07:53
|
Revision: 4548
http://sourceforge.net/p/mp-plugins/code/4548
Author: jmbillings
Date: 2013-03-19 11:07:49 +0000 (Tue, 19 Mar 2013)
Log Message:
-----------
Fix resizing. Add keycode detect
Modified Paths:
--------------
trunk/plugins/APODPlugin/APODPlugin/APODPlugin.cs
trunk/plugins/APODPlugin/APODPlugin/Properties/AssemblyInfo.cs
trunk/plugins/APODPlugin/APODPlugin/bin/Debug/APODPlugin.dll
trunk/plugins/APODPlugin/APODPlugin/bin/Debug/APODPlugin.pdb
trunk/plugins/APODPlugin/APODPlugin/obj/Debug/APODPlugin.dll
trunk/plugins/APODPlugin/APODPlugin/obj/Debug/APODPlugin.pdb
trunk/plugins/APODPlugin/APODPlugin.v11.suo
Modified: trunk/plugins/APODPlugin/APODPlugin/APODPlugin.cs
===================================================================
--- trunk/plugins/APODPlugin/APODPlugin/APODPlugin.cs 2013-03-18 08:42:18 UTC (rev 4547)
+++ trunk/plugins/APODPlugin/APODPlugin/APODPlugin.cs 2013-03-19 11:07:49 UTC (rev 4548)
@@ -42,7 +42,7 @@
// show the setup dialog
public void ShowPlugin()
{
- MessageBox.Show("Nothing to configure, this is just an example");
+ MessageBox.Show("Nothing to see here.");
}
// Indicates whether plugin can be enabled/disabled
@@ -83,7 +83,7 @@
/// <returns>true : plugin needs it's own button on home
/// false : plugin does not need it's own button on home</returns>
public bool GetHome(out string strButtonText, out string strButtonImage,
- out string strButtonImageFocus, out string strPictureImage)
+ out string strButtonImageFocus, out string strPictureImage)
{
strButtonText = PluginName();
strButtonImage = String.Empty;
@@ -119,6 +119,26 @@
downloader.GetImage();
}
+ public override void OnAction(MediaPortal.GUI.Library.Action action)
+ {
+ base.OnAction(action);
+ if (action.m_key.KeyCode == 37)
+ {
+ //User pressed Left
+
+ }
+ else if (action.m_key.KeyCode == 39)
+ {
+ //User pressed right
+
+ }
+ else if (action.m_key.KeyCode == 120)
+ {
+ //User pressed i
+
+ }
+ }
+
void downloader_onDownloadComplete(object sender, downloadCompleteEventArgs e)
{
Rectangle screenRect = Screen.PrimaryScreen.Bounds;
@@ -126,7 +146,7 @@
Bitmap originalBitmap = (Bitmap)e.bitmap;
Brush brush = new SolidBrush(Color.Black);
- float scale = Math.Min(screenRect.Width / originalBitmap.Width, screenRect.Height / originalBitmap.Height);
+ float scale = Math.Min((float)screenRect.Width / (float)originalBitmap.Width, (float)screenRect.Height / (float)originalBitmap.Height);
Graphics graph = Graphics.FromImage(resizedBitmap);
graph.InterpolationMode = InterpolationMode.High;
Modified: trunk/plugins/APODPlugin/APODPlugin/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/APODPlugin/APODPlugin/Properties/AssemblyInfo.cs 2013-03-18 08:42:18 UTC (rev 4547)
+++ trunk/plugins/APODPlugin/APODPlugin/Properties/AssemblyInfo.cs 2013-03-19 11:07:49 UTC (rev 4548)
@@ -36,5 +36,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.0.1.0")]
+[assembly: AssemblyFileVersion("1.0.1.0")]
Modified: trunk/plugins/APODPlugin/APODPlugin/bin/Debug/APODPlugin.dll
===================================================================
(Binary files differ)
Modified: trunk/plugins/APODPlugin/APODPlugin/bin/Debug/APODPlugin.pdb
===================================================================
(Binary files differ)
Modified: trunk/plugins/APODPlugin/APODPlugin/obj/Debug/APODPlugin.dll
===================================================================
(Binary files differ)
Modified: trunk/plugins/APODPlugin/APODPlugin/obj/Debug/APODPlugin.pdb
===================================================================
(Binary files differ)
Modified: trunk/plugins/APODPlugin/APODPlugin.v11.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|