From: <nic...@us...> - 2014-06-06 15:11:06
|
Revision: 4828 http://sourceforge.net/p/mp-plugins/code/4828 Author: nicsergio Date: 2014-06-06 15:10:58 +0000 (Fri, 06 Jun 2014) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs 2014-06-06 14:57:24 UTC (rev 4827) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Plugin/NavigatorDialog.cs 2014-06-06 15:10:58 UTC (rev 4828) @@ -44,7 +44,6 @@ animationTimer = new Timer(2000); //--> creazione timer animazione logo animationTimer.Elapsed += new ElapsedEventHandler(animationTimer_Elapsed); //--> sottoscrizione evento Elapsed - dir = true; animationTimer.Enabled = true; //--> abilitazione timer } catch { } @@ -72,17 +71,21 @@ { animationTimer.Stop(); - int imageID = animationCycle % 3; - if (animationCycle > 8) - dir = false; - if (animationCycle < 0) - dir = true; + int imageID = animationCycle % 9; + + animationTimer.Interval = 100 + (dir ? animationCycle : 36 - animationCycle) * 10; - animationTimer.Interval = 300; animationLogo.MemoryImage = Image.FromStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ShortCuter.Resources.Images.SkinNavAnimLogo.Frame" + imageID + ".png")); animationLogo.SetFileName("[ShortCuter:NavigatorLogo" + imageID + "]"); - + + + if (animationCycle >= 36) + dir = false; + if (animationCycle <= 0) + dir = true; + + if (dir) animationCycle++; else Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-06-06 14:57:24 UTC (rev 4827) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-06-06 15:10:58 UTC (rev 4828) @@ -200,9 +200,15 @@ </ItemGroup> <ItemGroup> <Content Include="ExternalResources\Dialogs.dll" /> - <Content Include="Resources\Images\SkinNavAnimLogo\Frame0.png" /> - <Content Include="Resources\Images\SkinNavAnimLogo\Frame1.png" /> - <Content Include="Resources\Images\SkinNavAnimLogo\Frame2.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame0.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame1.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame2.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame3.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame4.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame5.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame6.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame7.png" /> + <EmbeddedResource Include="Resources\Images\SkinNavAnimLogo\Frame8.png" /> <EmbeddedResource Include="Resources\Images\SkinNavigator.png" /> <Content Include="Resources\Images\SkinNavAdd.png" /> <Content Include="..\Common\Resources\Images\ArrowDown.png"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |