From: <kro...@us...> - 2007-04-10 12:11:47
|
Revision: 312 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=312&view=rev Author: kroko_koenig Date: 2007-04-10 05:11:44 -0700 (Tue, 10 Apr 2007) Log Message: ----------- Reorganize DIR Modified Paths: -------------- trunk/plugins/MySimon/readme.txt Added Paths: ----------- trunk/plugins/MySimon/SimpleMP-simonsays.jpg trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj trunk/plugins/MySimon/Source/SimonSay.sln trunk/plugins/MySimon/Source/SimonSay.suo Removed Paths: ------------- trunk/plugins/MySimon/Release/ trunk/plugins/MySimon/Source/SimonSay/SimonSay/ trunk/plugins/MySimon/Source/SimonSay/SimonSay.sln trunk/plugins/MySimon/Source/SimonSay/SimonSay.suo trunk/plugins/MySimon/Source/SimpleMP-simonsays.jpg trunk/plugins/MySimon/Source/Skin/ trunk/plugins/MySimon/Source/readme.txt Added: trunk/plugins/MySimon/SimpleMP-simonsays.jpg =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/SimpleMP-simonsays.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs (rev 0) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-04-10 12:11:44 UTC (rev 312) @@ -0,0 +1,517 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Collections.Generic; +using System.Text; +using System.Windows.Forms; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using MediaPortal.Util; +using MediaPortal.Utils; + +namespace MediaPortal.GUI.MySimon +{ + public class MySimonGUI : GUIWindow , ISetupForm + { + #region SkinControl + [SkinControlAttribute(2)] protected GUIButtonControl BtnStart = null; + [SkinControlAttribute(3)] protected GUIButtonControl BtnLevel = null; + + [SkinControlAttribute(6)] protected GUIButtonControl BtnWhatsThis = null; + + [SkinControlAttribute(101)] protected GUIButtonControl BtnRed = null; + [SkinControlAttribute(102)] protected GUIButtonControl BtnBlue = null; + [SkinControlAttribute(103)] protected GUIButtonControl BtnGreen = null; + [SkinControlAttribute(104)] protected GUIButtonControl BtnYellow = null; + #endregion + + #region Private variables + string Level="Am"; //Choosen level + + Boolean SimonOn = false; + Boolean PlayerOn = false; + + int[] Code = new int[100]; + + int timeBase = 0; + int timeActual = 0; + int timeWait = 0; + + int round = 0; + int cnt = 0; + + private static OnActionHandler ah; + + private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer(); + #endregion + + #region ISetupForm Members + + // Returns the name of the plugin which is shown in the plugin menu + public string PluginName() + { + return "My Simon Say"; + } + + // Returns the description of the plugin is shown in the plugin menu + public string Description() + { + return "Simon Say"; + } + + // Returns the author of the plugin which is shown in the plugin menu + public string Author() + { + return "Mark Koenig (kroko)"; + } + + // show the setup dialog + public void ShowPlugin() + { + MessageBox.Show("Nothing to configure, this is just an example"); + } + + // Indicates whether plugin can be enabled/disabled + public bool CanEnable() + { + return true; + } + + // get ID of windowplugin belonging to this setup + public int GetWindowId() + { + return 04071975; + } + + // Indicates if plugin is enabled by default; + public bool DefaultEnabled() + { + return true; + } + + // indicates if a plugin has its own setup screen + public bool HasSetup() + { + return false; + } + + /// <summary> + /// If the plugin should have its own button on the main menu of MediaPortal then it + /// should return true to this method, otherwise if it should not be on home + /// it should return false + /// </summary> + /// <param name="strButtonText">text the button should have</param> + /// <param name="strButtonImage">image for the button, or empty for default</param> + /// <param name="strButtonImageFocus">image for the button, or empty for default</param> + /// <param name="strPictureImage">subpicture for the button or empty for none</param> + /// <returns>true : plugin needs its own button on home + /// false : plugin does not need its own button on home</returns> + + public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + { + strButtonText = PluginName(); + strButtonImage = String.Empty; + strButtonImageFocus = String.Empty; + strPictureImage = "hover_my simon.png"; + return true; + } + + #endregion + + public override int GetID + { + get + { + return 04071975; + } + set + { + base.GetID = value; + } + } + + public override bool Init() + { + bool result = Load(GUIGraphicsContext.Skin + @"\MySimon.xml"); + if (ah == null) ah = new OnActionHandler(OnAction2); + return result; + } + + #region Actions + public override void OnAction(Action action) + { + base.OnAction(action); + } + public void OnAction2(Action action) + { + + if (GUIWindowManager.ActiveWindowEx == (int)GUIWindow.Window.WINDOW_DIALOG_MENU) return; + + //string t = action.wID.ToString(); + //GUIPropertyManager.SetProperty("#Round", t); + + if (PlayerOn) + { + switch (action.wID) + { + //normal + case Action.ActionType.ACTION_REMOTE_RED_BUTTON: + Check(0); + break; + case Action.ActionType.ACTION_REMOTE_BLUE_BUTTON: + Check(1); + break; + case Action.ActionType.ACTION_REMOTE_GREEN_BUTTON: + Check(2); + break; + case Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON: + Check(3); + break; + //my PC + case Action.ActionType.ACTION_SHOW_GUI: + Check(0); + break; + case Action.ActionType.ACTION_ASPECT_RATIO: + Check(1); + break; + case Action.ActionType.ACTION_NEXT_AUDIO: + Check(2); + break; + case Action.ActionType.ACTION_SHOW_INFO: + Check(3); + break; + // play with 1 2 + // play with 4 5 + case Action.ActionType.ACTION_KEY_PRESSED: + switch (action.m_key.KeyChar) + { + case '1': + Check(0); + break; + case '2': + Check(1); + break; + case '4': + Check(2); + break; + case '5': + Check(3); + break; + } + break; + default: + break; + } + } + } + #endregion + + public override bool OnMessage(GUIMessage message) + { + return base.OnMessage(message); + } + + public void Dispose() + { + _Game.Stop(); + _Game.Tick -= new EventHandler(_Game_Tick); + } + + protected override void OnPageLoad() + { + _Game.Interval = 5; + _Game.Tick += new EventHandler(_Game_Tick); + _Game.Start(); + + SimonOn = false; + PlayerOn = false; + Level = "Am"; + + GUIGraphicsContext.OnNewAction -= ah; + GUIGraphicsContext.OnNewAction += ah; + + base.OnPageLoad(); + + Reset(); + + GUIPropertyManager.SetProperty("#Round", "Round: 1"); + GUIPropertyManager.SetProperty("#Player", "GAME OVER"); + } + + protected override void OnPageDestroy(int new_windowId) + { + _Game.Stop(); + _Game.Tick -= new EventHandler(_Game_Tick); + } + + protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) + { + if (control == BtnLevel) + OnBtnLevel(); + if (control == BtnWhatsThis) + OnBtnWhatsThis(); + if (control == BtnStart) + { //start game + if ((!PlayerOn) && (!SimonOn)) + { + Random randObj = new Random(); + for (int i = 0; i <= 99; i++) + { // do random colors for 100 rounds + Code[i] = (int)(randObj.NextDouble() * 4); + } + // set timebase for game + if (Level == "Pro") + timeBase = 4; + if (Level == "Nor") + timeBase = 10; + if (Level == "Am") + timeBase = 20; + + // disable level selection + GUIControl.DisableControl(GetID, 3); + + timeActual = timeBase; + Reset(); + + //init round + round = 0; + cnt = 0; + //simonn starts + SimonOn = true; + } + } + if (PlayerOn) + { + if ((controlId >= 101) && (controlId <= 104)) + { //which button has clicked ? + if (controlId == 101) Check(0); + if (controlId == 102) Check(1); + if (controlId == 103) Check(2); + if (controlId == 104) Check(3); + } + } + base.OnClicked(controlId, control, actionType); + } + + protected override void OnShowContextMenu() + { + base.OnShowContextMenu(); + } + + private void OnBtnLevel() + { //Choose level for the game + if ((!PlayerOn) && (!SimonOn)) + { + if (Level == "Nor") + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Professional"); + Level = "Pro"; + } + else if (Level == "Pro") + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Amateur"); + Level = "Am"; + } + else + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Normal"); + Level = "Nor"; + } + } + } + + private void OnBtnWhatsThis() + { + GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT); + dlg.SetHeading("What's Simon Say (Senso)"); + dlg.SetText("Simon Say is a game where your object is to repeat a code of\n" + + "tones and colors.\n" + + "Level Amateur/Normal/Professional: Speed is increasing\n\n" + + "Gameboard design by Mikael S\xF6derstr\xF6m.\n\n" + + "Remote play with the colored buttons or use 1 - 2 - 4 - 5.\n\n" + + "Good luck\nkroko"); + dlg.DoModal(GetID); + } + + private void Red() + { // draw red field on + GUIPropertyManager.SetProperty("#Senso1", "MySimon_1a.png"); + MediaPortal.Util.Utils.PlaySound ("MySimon_c.wav", false, true); + } + private void Blue() + { // draw blue field on + GUIPropertyManager.SetProperty("#Senso2", "MySimon_2a.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_e.wav", false, true); + } + private void Green() + { // draw green field on + GUIPropertyManager.SetProperty("#Senso3", "MySimon_3a.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_g.wav", false, true); + } + private void Yellow() + { // draw yellow field on + GUIPropertyManager.SetProperty("#Senso4", "MySimon_4a.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_a.wav", false, true); + } + private void Error(int errNo) + { // draw correct field on + Reset(); + if (errNo== 0) + GUIPropertyManager.SetProperty("#Senso1", "MySimon_1a.png"); + if (errNo == 1) + GUIPropertyManager.SetProperty("#Senso2", "MySimon_2a.png"); + if (errNo == 2) + GUIPropertyManager.SetProperty("#Senso3", "MySimon_3a.png"); + if (errNo == 3) + GUIPropertyManager.SetProperty("#Senso4", "MySimon_4a.png"); + + MediaPortal.Util.Utils.PlaySound("MySimon_err.wav", false, true); + + // Enable level selection + GUIControl.EnableControl(GetID, 3); + } + private void Reset() + { // draw all fields off + GUIPropertyManager.SetProperty("#Senso1", "MySimon_1.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_2.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_3.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_4.png"); + } + + private void Check(int Button) + { + Reset(); // reset display + timeActual = timeBase; // set time to base + + if (Button == 0) + { //red is pressed + Red(); + } + if (Button == 1) + { //blue is pressed + Blue(); + } + if (Button == 2) + { //green is pressed + Green(); + } + if (Button == 3) + { //yellow is pressed + Yellow(); + } + if (Code[cnt] != Button ) + { //wrong color is pressed + PlayerOn = false; + Error(Code[cnt]); + } + else + { // color is correct + cnt++; // next tone + timeActual = 30; // check time for player + if (cnt > round) // last tone reached ? + { + PlayerOn = false; // Simon is now on + SimonOn = true; + + cnt = 0; // Start with tone 0 + round++; // next Round + + if (timeBase >4) // increased difficulty + timeBase--; + + timeWait = 30; // wait a little + timeActual = timeBase; // reset timer + } + } + } + + void _Game_Tick(object sender, EventArgs e) + { //display status of the game + if ((!PlayerOn) && (!SimonOn)) + GUIPropertyManager.SetProperty("#Player", "GAME OVER"); + if (PlayerOn) + GUIPropertyManager.SetProperty("#Player", "PLAYER"); + if (SimonOn) + GUIPropertyManager.SetProperty("#Player", "SIMON"); + //Simon is on and no wait + if ((SimonOn) && (timeWait==0)) + { // just started ? + if (timeBase == timeActual) + { //Display color + if (Code[cnt] == 0) + Red(); + if (Code[cnt] == 1) + Blue(); + if (Code[cnt] == 2) + Green(); + if (Code[cnt] == 3) + Yellow(); + + //Display round + int tmp = round + 1; + GUIPropertyManager.SetProperty("#Round", "Round: " + tmp.ToString() + " "); + } //count timer down + if (timeActual > 0) + timeActual = timeActual - 1; + else + { //if timer is 0 + timeActual = timeBase; + Reset(); + //next tone + if (cnt < round) + cnt++; + else + { //player is next + SimonOn = false; + PlayerOn = true; + // first tone a lot of time + timeActual = 50; + cnt = 0; + } + } + } + + if (timeWait > 0) + { //wait timer for little break + timeWait = timeWait - 1; + if (timeWait==timeBase) + Reset(); + } + + if (PlayerOn) + { // if player is on count down timer + if (timeActual > 0) + timeActual = timeActual - 1; + else + { //Player wait too long + PlayerOn = false; + Error(Code[cnt]); + //Reset(); + } + } + } + } +} Added: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj (rev 0) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-04-10 12:11:44 UTC (rev 312) @@ -0,0 +1,53 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{206A81B8-D452-45C2-86C9-CBBECF31C11C}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>ClassLibrary1</RootNamespace> + <AssemblyName>MySimon</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2593.1921, Culture=neutral, processorArchitecture=MSIL"> + <Private>True</Private> + </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + <Reference Include="Utils, Version=1.0.2593.1896, Culture=neutral, processorArchitecture=MSIL" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="MySimon.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Deleted: trunk/plugins/MySimon/Source/SimonSay/SimonSay.sln =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/SimonSay.sln 2007-04-10 12:09:04 UTC (rev 311) +++ trunk/plugins/MySimon/Source/SimonSay/SimonSay.sln 2007-04-10 12:11:44 UTC (rev 312) @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySimon", "SimonSay\MySimon.csproj", "{206A81B8-D452-45C2-86C9-CBBECF31C11C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal Deleted: trunk/plugins/MySimon/Source/SimonSay/SimonSay.suo =================================================================== (Binary files differ) Added: trunk/plugins/MySimon/Source/SimonSay.sln =================================================================== --- trunk/plugins/MySimon/Source/SimonSay.sln (rev 0) +++ trunk/plugins/MySimon/Source/SimonSay.sln 2007-04-10 12:11:44 UTC (rev 312) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySimon", "SimonSay\MySimon.csproj", "{206A81B8-D452-45C2-86C9-CBBECF31C11C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/MySimon/Source/SimonSay.suo =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Source/SimonSay.suo ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/plugins/MySimon/Source/SimpleMP-simonsays.jpg =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Source/readme.txt =================================================================== --- trunk/plugins/MySimon/Source/readme.txt 2007-04-10 12:09:04 UTC (rev 311) +++ trunk/plugins/MySimon/Source/readme.txt 2007-04-10 12:11:44 UTC (rev 312) @@ -1,52 +0,0 @@ -Visit the forum -http://forum.team-mediaportal.com/new_game_simon_say-t19473.html - -Simon Say V0.3.1 ----------------- - --added time display on skin --modify the skin a little --enable hover picture - -Simon Say V0.3 --------------- - --Added the great design from Mikael S\xF6derstr\xF6m. - -Simon Say V0.2 --------------- - -Simon Say (Senso) - --Changed the window ID --disable level selection during gameplay --added button help in "what's this" - -Have fun. - -Greetz -kroko - - -Simon Say V0.1 --------------- - -Simon Say (Senso) - -Initial release -This nice game from MB as a MP version. You can play with - -- the mouse -- remote color buttons -- 1 2 - 4 5 (action keys) - -Copy the plugin and skin files into your favorite skin folder. -I had to adjust my remote a little in the setup. It was to sensitve. - -Planed feature: Highscores ? - -Have fun. - -Greetz -kroko \ No newline at end of file Modified: trunk/plugins/MySimon/readme.txt =================================================================== --- trunk/plugins/MySimon/readme.txt 2007-04-10 12:09:04 UTC (rev 311) +++ trunk/plugins/MySimon/readme.txt 2007-04-10 12:11:44 UTC (rev 312) @@ -1,3 +1,33 @@ +Visit the forum +http://forum.team-mediaportal.com/new_game_simon_say-t19473.html + +Simon Say V0.3.1 +---------------- + +-added time display on skin +-modify the skin a little +-enable hover picture + +Simon Say V0.3 +-------------- + +-Added the great design from Mikael S\xF6derstr\xF6m. + +Simon Say V0.2 +-------------- + +Simon Say (Senso) + +-Changed the window ID +-disable level selection during gameplay +-added button help in "what's this" + +Have fun. + +Greetz +kroko + + Simon Say V0.1 -------------- @@ -18,5 +48,5 @@ Have fun. -Greets +Greetz kroko \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-05-24 16:57:10
|
Revision: 426 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=426&view=rev Author: chef_koch Date: 2007-05-24 09:57:05 -0700 (Thu, 24 May 2007) Log Message: ----------- updated source of simomsay to v0.4, released already a few weeks ago Modified Paths: -------------- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj trunk/plugins/MySimon/Source/SimonSay.sln trunk/plugins/MySimon/Source/SimonSay.suo trunk/plugins/MySimon/readme.txt Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-24 16:36:32 UTC (rev 425) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-24 16:57:05 UTC (rev 426) @@ -31,9 +31,11 @@ using MediaPortal.Dialogs; using MediaPortal.Util; using MediaPortal.Utils; +using MediaPortal.Configuration; namespace MediaPortal.GUI.MySimon { + [PluginIcons("MySimon.simon.png", "MySimon.simonDisabled.png")] public class MySimonGUI : GUIWindow , ISetupForm { #region SkinControl @@ -63,6 +65,8 @@ int round = 0; int cnt = 0; + bool test = true; + private static OnActionHandler ah; private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer(); @@ -177,7 +181,7 @@ { switch (action.wID) { - //normal + //normal case Action.ActionType.ACTION_REMOTE_RED_BUTTON: Check(0); break; @@ -190,7 +194,7 @@ case Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON: Check(3); break; - //my PC + //my PC case Action.ActionType.ACTION_SHOW_GUI: Check(0); break; @@ -203,21 +207,35 @@ case Action.ActionType.ACTION_SHOW_INFO: Check(3); break; - // play with 1 2 - // play with 4 5 + // for use with arrows + case Action.ActionType.ACTION_MOVE_UP: + Check(0); + break; + case Action.ActionType.ACTION_MOVE_RIGHT: + Check(1); + break; + case Action.ActionType.ACTION_MOVE_DOWN: + Check(3); + break; + case Action.ActionType.ACTION_MOVE_LEFT: + Check(2); + break; + // play with 2 + // play with 4 6 + // play with 8 case Action.ActionType.ACTION_KEY_PRESSED: switch (action.m_key.KeyChar) { - case '1': + case '2': Check(0); break; - case '2': + case '6': Check(1); break; case '4': Check(2); break; - case '5': + case '8': Check(3); break; } @@ -226,6 +244,84 @@ break; } } + else + { + if (test) + { + switch (action.wID) + { + //my PC + case Action.ActionType.ACTION_SHOW_GUI: + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_ASPECT_RATIO: + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_NEXT_AUDIO: + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_SHOW_INFO: + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; + + case Action.ActionType.ACTION_MOVE_UP: + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_RIGHT: + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_DOWN: + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_LEFT: + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; + + case Action.ActionType.ACTION_KEY_PRESSED: + switch (action.m_key.KeyChar) + { + case '2': + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case '6': + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case '8': + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; + case '4': + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; + } + break; + } + } + } + } #endregion @@ -259,6 +355,9 @@ GUIPropertyManager.SetProperty("#Round", "Round: 1"); GUIPropertyManager.SetProperty("#Player", "GAME OVER"); + + GUIControl.EnableControl(GetID, 6); // what this + } protected override void OnPageDestroy(int new_windowId) @@ -277,6 +376,10 @@ { //start game if ((!PlayerOn) && (!SimonOn)) { + + test = false; + GUIControl.DisableControl(GetID, 6); // what this + Random randObj = new Random(); for (int i = 0; i <= 99; i++) { // do random colors for 100 rounds @@ -313,6 +416,7 @@ if (controlId == 104) Check(3); } } + base.OnClicked(controlId, control, actionType); } @@ -351,42 +455,43 @@ "tones and colors.\n" + "Level Amateur/Normal/Professional: Speed is increasing\n\n" + "Gameboard design by Mikael S\xF6derstr\xF6m.\n\n" + - "Remote play with the colored buttons or use 1 - 2 - 4 - 5.\n\n" + - "Good luck\nkroko"); + "Remote play with the colored buttons or\n" + + "use 2 - 4 - 6 - 8 or arrow keys.\n\n" + + "Good luck\nMark Koenig (kroko)"); dlg.DoModal(GetID); } private void Red() { // draw red field on - GUIPropertyManager.SetProperty("#Senso1", "MySimon_1a.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); MediaPortal.Util.Utils.PlaySound ("MySimon_c.wav", false, true); } private void Blue() { // draw blue field on - GUIPropertyManager.SetProperty("#Senso2", "MySimon_2a.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); MediaPortal.Util.Utils.PlaySound("MySimon_e.wav", false, true); } private void Green() { // draw green field on - GUIPropertyManager.SetProperty("#Senso3", "MySimon_3a.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); MediaPortal.Util.Utils.PlaySound("MySimon_g.wav", false, true); } private void Yellow() { // draw yellow field on - GUIPropertyManager.SetProperty("#Senso4", "MySimon_4a.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); MediaPortal.Util.Utils.PlaySound("MySimon_a.wav", false, true); } private void Error(int errNo) { // draw correct field on Reset(); if (errNo== 0) - GUIPropertyManager.SetProperty("#Senso1", "MySimon_1a.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); if (errNo == 1) - GUIPropertyManager.SetProperty("#Senso2", "MySimon_2a.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); if (errNo == 2) - GUIPropertyManager.SetProperty("#Senso3", "MySimon_3a.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); if (errNo == 3) - GUIPropertyManager.SetProperty("#Senso4", "MySimon_4a.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); MediaPortal.Util.Utils.PlaySound("MySimon_err.wav", false, true); @@ -395,10 +500,10 @@ } private void Reset() { // draw all fields off - GUIPropertyManager.SetProperty("#Senso1", "MySimon_1.png"); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_2.png"); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_3.png"); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_4.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_noFocus.png"); } private void Check(int Button) @@ -426,6 +531,7 @@ { //wrong color is pressed PlayerOn = false; Error(Code[cnt]); + GUIControl.EnableControl(GetID, 6); // what this } else { // color is correct @@ -509,6 +615,7 @@ { //Player wait too long PlayerOn = false; Error(Code[cnt]); + GUIControl.EnableControl(GetID, 6); // what this //Reset(); } } Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-24 16:36:32 UTC (rev 425) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-24 16:57:05 UTC (rev 426) @@ -7,7 +7,7 @@ <ProjectGuid>{206A81B8-D452-45C2-86C9-CBBECF31C11C}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>ClassLibrary1</RootNamespace> + <RootNamespace>MySimon</RootNamespace> <AssemblyName>MySimon</AssemblyName> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -22,26 +22,40 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release\</OutputPath> + <OutputPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2593.1921, Culture=neutral, processorArchitecture=MSIL"> - <Private>True</Private> + <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Core.DLL</HintPath> + <Private>False</Private> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath> + <Private>False</Private> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> - <Reference Include="Utils, Version=1.0.2593.1896, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath> + <Private>False</Private> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="MySimon.cs" /> </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="simon.png" /> + <EmbeddedResource Include="simonDisabled.png" /> + </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. Modified: trunk/plugins/MySimon/Source/SimonSay.sln =================================================================== --- trunk/plugins/MySimon/Source/SimonSay.sln 2007-05-24 16:36:32 UTC (rev 425) +++ trunk/plugins/MySimon/Source/SimonSay.sln 2007-05-24 16:57:05 UTC (rev 426) @@ -9,8 +9,8 @@ Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.ActiveCfg = Release|Any CPU + {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Debug|Any CPU.Build.0 = Release|Any CPU {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.ActiveCfg = Release|Any CPU {206A81B8-D452-45C2-86C9-CBBECF31C11C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection Modified: trunk/plugins/MySimon/Source/SimonSay.suo =================================================================== (Binary files differ) Modified: trunk/plugins/MySimon/readme.txt =================================================================== --- trunk/plugins/MySimon/readme.txt 2007-05-24 16:36:32 UTC (rev 425) +++ trunk/plugins/MySimon/readme.txt 2007-05-24 16:57:05 UTC (rev 426) @@ -1,52 +1,41 @@ Visit the forum http://forum.team-mediaportal.com/new_game_simon_say-t19473.html -Simon Say V0.3.1 ----------------- +V0.4 +---- +-turn design of the board 45 degrees , thanks to Mikael +-make it possible to test the buttons (before start) +-playable with arrow keys +Have fun. + +Greetz +kroko + +V0.3.1 +------ -added time display on skin -modify the skin a little -enable hover picture -Simon Say V0.3 --------------- - +V0.3 +---- -Added the great design from Mikael S\xF6derstr\xF6m. -Simon Say V0.2 --------------- - -Simon Say (Senso) - +V0.2 +---- -Changed the window ID -disable level selection during gameplay -added button help in "what's this" -Have fun. - -Greetz -kroko - - -Simon Say V0.1 --------------- - -Simon Say (Senso) - +V0.1 +---- Initial release This nice game from MB as a MP version. You can play with - the mouse - remote color buttons -- 1 2 - 4 5 (action keys) +- action keys Copy the plugin and skin files into your favorite skin folder. I had to adjust my remote a little in the setup. It was to sensitve. - -Planed feature: Highscores ? - -Have fun. - -Greetz -kroko \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-05-24 16:58:34
|
Revision: 427 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=427&view=rev Author: chef_koch Date: 2007-05-24 09:58:25 -0700 (Thu, 24 May 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/MySimon/Skin/ trunk/plugins/MySimon/Skin/Media/ trunk/plugins/MySimon/Skin/Media/MySimon_Blue_Focus.png trunk/plugins/MySimon/Skin/Media/MySimon_Blue_NoFocus.png trunk/plugins/MySimon/Skin/Media/MySimon_Green_Focus.png trunk/plugins/MySimon/Skin/Media/MySimon_Green_NoFocus.png trunk/plugins/MySimon/Skin/Media/MySimon_Red_Focus.png trunk/plugins/MySimon/Skin/Media/MySimon_Red_NoFocus.png trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_Focus.png trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_NoFocus.png trunk/plugins/MySimon/Skin/Media/hover_my simon.png trunk/plugins/MySimon/Skin/MySimon.xml trunk/plugins/MySimon/Skin/Sounds/ trunk/plugins/MySimon/Skin/Sounds/MySimon_a.wav trunk/plugins/MySimon/Skin/Sounds/MySimon_c.wav trunk/plugins/MySimon/Skin/Sounds/MySimon_e.wav trunk/plugins/MySimon/Skin/Sounds/MySimon_err.wav trunk/plugins/MySimon/Skin/Sounds/MySimon_g.wav trunk/plugins/MySimon/Source/SimonSay/Properties/ trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs trunk/plugins/MySimon/Source/SimonSay/simon.png trunk/plugins/MySimon/Source/SimonSay/simonDisabled.png Added: trunk/plugins/MySimon/Skin/Media/MySimon_Blue_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Blue_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Blue_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Blue_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Green_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Green_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Green_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Green_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Red_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Red_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Red_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Red_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/MySimon_Yellow_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Media/hover_my simon.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Media/hover_my simon.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Skin/MySimon.xml (rev 0) +++ trunk/plugins/MySimon/Skin/MySimon.xml 2007-05-24 16:58:25 UTC (rev 427) @@ -0,0 +1,161 @@ +<window> + <id>04071975</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <autohidetopbar>yes</autohidetopbar> + <controls> + <import>common.time.xml</import> + <control> + <description>Simon Say label</description> + <type>label</type> + <posX>55</posX> + <posY>20</posY> + <align>left</align> + <font>font48</font> + <label>Simon Say</label> + <textcolor>20ffffff</textcolor> + <id>1</id> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>text label</description> + <type>label</type> + <id>11</id> + <posX>60</posX> + <posY>70</posY> + <label>Simon Say</label> + <font>font16</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>Start</description> + <type>button</type> + <id>2</id> + <posX>60</posX> + <posY>97</posY> + <label>Start</label> + <onleft>2</onleft> + <onright>2</onright> + <onup>6</onup> + <ondown>3</ondown> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>Level</description> + <type>button</type> + <id>3</id> + <posX>60</posX> + <posY>131</posY> + <label>Level: Amateur</label> + <onleft>3</onleft> + <onright>3</onright> + <onup>2</onup> + <ondown>6</ondown> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>text label</description> + <type>label</type> + <id>4</id> + <posX>70</posX> + <posY>170</posY> + <label>#Round</label> + <font>font12</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>text label</description> + <type>label</type> + <id>4</id> + <posX>70</posX> + <posY>204</posY> + <label>#Player</label> + <font>font12</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>Whatsthis</description> + <type>button</type> + <id>6</id> + <posX>60</posX> + <posY>233</posY> + <label>What's this?</label> + <onleft>6</onleft> + <onright>6</onright> + <onup>3</onup> + <ondown>2</ondown> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>101</id> + <posX>300</posX> + <posY>80</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso1</textureFocus> + <textureNoFocus>#Senso1</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>102</id> + <posX>386</posX> + <posY>130</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso2</textureFocus> + <textureNoFocus>#Senso2</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>103</id> + <posX>249</posX> + <posY>131</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso3</textureFocus> + <textureNoFocus>#Senso3</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>104</id> + <posX>300</posX> + <posY>217</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso4</textureFocus> + <textureNoFocus>#Senso4</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + </controls> +</window> Added: trunk/plugins/MySimon/Skin/Sounds/MySimon_a.wav =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Sounds/MySimon_a.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Sounds/MySimon_c.wav =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Sounds/MySimon_c.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Sounds/MySimon_e.wav =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Sounds/MySimon_e.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Sounds/MySimon_err.wav =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Sounds/MySimon_err.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Skin/Sounds/MySimon_g.wav =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Skin/Sounds/MySimon_g.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs 2007-05-24 16:58:25 UTC (rev 427) @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die mit einer Assembly verknüpft sind. +[assembly: AssemblyTitle("MySimonSay")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MySimonSay")] +[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar +// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von +// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("1bd4081e-182e-436a-ab7a-abcc7b53684b")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern +// übernehmen, indem Sie "*" eingeben: +[assembly: AssemblyVersion("0.4.0.0")] +[assembly: AssemblyFileVersion("0.4.0.0")] Added: trunk/plugins/MySimon/Source/SimonSay/simon.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Source/SimonSay/simon.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Source/SimonSay/simonDisabled.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Source/SimonSay/simonDisabled.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-05-24 21:16:08
|
Revision: 437 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=437&view=rev Author: chef_koch Date: 2007-05-24 14:16:06 -0700 (Thu, 24 May 2007) Log Message: ----------- added simonsay is now full localisable Modified Paths: -------------- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj Added Paths: ----------- trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs trunk/plugins/MySimon/language/ trunk/plugins/MySimon/language/MySimon/ trunk/plugins/MySimon/language/MySimon/strings_de.xml trunk/plugins/MySimon/language/MySimon/strings_en.xml Removed Paths: ------------- trunk/plugins/MySimon/Source/SimonSay.suo Added: trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs (rev 0) +++ trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs 2007-05-24 21:16:06 UTC (rev 437) @@ -0,0 +1,260 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.IO; +using System.Globalization; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.Xml; +using MediaPortal.Util; +using MediaPortal.GUI.Library; +using MediaPortal.Configuration; +using MediaPortal.Localisation; + +namespace MediaPortal.GUI.MySimon +{ + /// <summary> + /// This class will hold all text used in the application + /// The text is loaded for the current language from + /// the file language/[language]/strings.xml + /// </summary> + public class GUILocalizeStrings + { + #region Variables + static LocalisationProvider _stringProvider; + static Dictionary<string, string> _cultures; + static string[] _languages; + #endregion + + #region Constructors/Destructors + // singleton. Dont allow any instance of this class + private GUILocalizeStrings() + { + } + + static public void Dispose() + { + if (_stringProvider != null) + _stringProvider.Dispose(); + } + #endregion + + #region Public Methods + /// <summary> + /// Public method to load the text from a strings/xml file into memory + /// </summary> + /// <param name="strFileName">Contains the filename+path for the string.xml file</param> + /// <returns> + /// true when text is loaded + /// false when it was unable to load the text + /// </returns> + //[Obsolete("This method has changed", true)] + static public bool Load(string language) + { + bool isPrefixEnabled = true; + + using (MediaPortal.Profile.Settings reader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) + isPrefixEnabled = reader.GetValueAsBool("general", "myprefix", true); + + string directory = Config.GetSubFolder(Config.Dir.Language, "MySimon"); + string cultureName = null; + if (language != null) + cultureName = GetCultureName(language); + + Log.Info(" Loading localised Strings - Path: {0} Culture: {1} Language: {2} Prefix: {3}", directory, cultureName, language, isPrefixEnabled); + + _stringProvider = new LocalisationProvider(directory, cultureName, isPrefixEnabled); + + GUIGraphicsContext.CharsInCharacterSet = _stringProvider.Characters; + + return true; + } + + static public string CurrentLanguage() + { + if (_stringProvider == null) + Load(null); + + return _stringProvider.CurrentLanguage.EnglishName; + } + + static public void ChangeLanguage(string language) + { + if (_stringProvider == null) + Load(language); + else + _stringProvider.ChangeLanguage(GetCultureName(language)); + } + + /// <summary> + /// Get the translation for a given id and format the sting with + /// the given parameters + /// </summary> + /// <param name="dwCode">id of text</param> + /// <param name="parameters">parameters used in the formating</param> + /// <returns> + /// string containing the translated text + /// </returns> + static public string Get(int dwCode, object[] parameters) + { + if (_stringProvider == null) + Load(null); + + string translation = _stringProvider.GetString("unmapped", dwCode); + // if parameters or the translation is null, return the translation. + if ((translation == null) || (parameters == null)) + { + return translation; + } + // return the formatted string. If formatting fails, log the error + // and return the unformatted string. + try + { + return String.Format(translation, parameters); + } + catch (System.FormatException e) + { + Log.Error("Error formatting translation with id {0}", dwCode); + Log.Error("Unformatted translation: {0}", translation); + Log.Error(e); + return translation; + } + } + + /// <summary> + /// Get the translation for a given id + /// </summary> + /// <param name="dwCode">id of text</param> + /// <returns> + /// string containing the translated text + /// </returns> + static public string Get(int dwCode) + { + if (_stringProvider == null) + Load(null); + + string translation = _stringProvider.GetString("unmapped", dwCode); + + if (translation == null) + { + Log.Error("No translation found for id {0}", dwCode); + return String.Empty; + } + + return translation; + } + + static public void LocalizeLabel(ref string strLabel) + { + if (_stringProvider == null) + Load(null); + + if (strLabel == null) strLabel = String.Empty; + if (strLabel == "-") strLabel = ""; + if (strLabel == "") return; + // This can't be a valid string code if the first character isn't a number. + // This check will save us from catching unnecessary exceptions. + if (!char.IsNumber(strLabel, 0)) + return; + + int dwLabelID; + + try + { + dwLabelID = System.Int32.Parse(strLabel); + } + catch (FormatException e) + { + Log.Error(e); + strLabel = String.Empty; + return; + } + + strLabel = _stringProvider.GetString("unmapped", dwLabelID); + if (strLabel == null) + { + Log.Error("No translation found for id {0}", dwLabelID); + strLabel = String.Empty; + } + } + + public static string LocalSupported() + { + if (_stringProvider == null) + Load(null); + + CultureInfo culture = _stringProvider.GetBestLanguage(); + + return culture.EnglishName; + } + + public static string[] SupportedLanguages() + { + if (_languages == null) + { + if (_stringProvider == null) + Load(null); + + CultureInfo[] cultures = _stringProvider.AvailableLanguages(); + + SortedList sortedLanguages = new SortedList(); + foreach (CultureInfo culture in cultures) + sortedLanguages.Add(culture.EnglishName, culture.EnglishName); + + _languages = new string[sortedLanguages.Count]; + + for (int i = 0; i < sortedLanguages.Count; i++) + { + _languages[i] = (string)sortedLanguages.GetByIndex(i); + } + } + + return _languages; + } + + static public string GetCultureName(string language) + { + if (_cultures == null) + { + _cultures = new Dictionary<string, string>(); + + CultureInfo[] cultureList = CultureInfo.GetCultures(CultureTypes.AllCultures); + + for (int i = 0; i < cultureList.Length; i++) + { + _cultures.Add(cultureList[i].EnglishName, cultureList[i].Name); + } + } + + if (_cultures.ContainsKey(language)) + return _cultures[language]; + + return null; + } + #endregion + } +} \ No newline at end of file Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-24 21:11:19 UTC (rev 436) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-24 21:16:06 UTC (rev 437) @@ -35,590 +35,611 @@ namespace MediaPortal.GUI.MySimon { - [PluginIcons("MySimon.simon.png", "MySimon.simonDisabled.png")] - public class MySimonGUI : GUIWindow , ISetupForm - { - #region SkinControl - [SkinControlAttribute(2)] protected GUIButtonControl BtnStart = null; - [SkinControlAttribute(3)] protected GUIButtonControl BtnLevel = null; - - [SkinControlAttribute(6)] protected GUIButtonControl BtnWhatsThis = null; + [PluginIcons("MySimon.simon.png", "MySimon.simonDisabled.png")] + public class MySimonGUI : GUIWindow, ISetupForm + { + #region SkinControl + [SkinControlAttribute(2)] + protected GUIButtonControl BtnStart = null; + [SkinControlAttribute(3)] + protected GUIButtonControl BtnLevel = null; - [SkinControlAttribute(101)] protected GUIButtonControl BtnRed = null; - [SkinControlAttribute(102)] protected GUIButtonControl BtnBlue = null; - [SkinControlAttribute(103)] protected GUIButtonControl BtnGreen = null; - [SkinControlAttribute(104)] protected GUIButtonControl BtnYellow = null; - #endregion + [SkinControlAttribute(6)] + protected GUIButtonControl BtnWhatsThis = null; - #region Private variables - string Level="Am"; //Choosen level + [SkinControlAttribute(101)] + protected GUIButtonControl BtnRed = null; + [SkinControlAttribute(102)] + protected GUIButtonControl BtnBlue = null; + [SkinControlAttribute(103)] + protected GUIButtonControl BtnGreen = null; + [SkinControlAttribute(104)] + protected GUIButtonControl BtnYellow = null; + #endregion - Boolean SimonOn = false; - Boolean PlayerOn = false; + #region Private variables + string Level = "Am"; //Choosen level - int[] Code = new int[100]; + Boolean SimonOn = false; + Boolean PlayerOn = false; - int timeBase = 0; - int timeActual = 0; - int timeWait = 0; + int[] Code = new int[100]; - int round = 0; - int cnt = 0; + int timeBase = 0; + int timeActual = 0; + int timeWait = 0; - bool test = true; + int round = 0; + int cnt = 0; - private static OnActionHandler ah; + bool test = true; - private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer(); - #endregion + private static OnActionHandler ah; - #region ISetupForm Members + private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer(); + #endregion - // Returns the name of the plugin which is shown in the plugin menu - public string PluginName() - { - return "My Simon Say"; - } + #region ISetupForm Members - // Returns the description of the plugin is shown in the plugin menu - public string Description() - { - return "Simon Say"; - } + // Returns the name of the plugin which is shown in the plugin menu + public string PluginName() + { + return "My Simon Say"; + } - // Returns the author of the plugin which is shown in the plugin menu - public string Author() - { - return "Mark Koenig (kroko)"; - } + // Returns the description of the plugin is shown in the plugin menu + public string Description() + { + return "Simon Say"; + } - // show the setup dialog - public void ShowPlugin() - { - MessageBox.Show("Nothing to configure, this is just an example"); - } + // Returns the author of the plugin which is shown in the plugin menu + public string Author() + { + return "Mark Koenig (kroko)"; + } - // Indicates whether plugin can be enabled/disabled - public bool CanEnable() + // show the setup dialog + public void ShowPlugin() + { + MessageBox.Show("Nothing to configure, this is just an example"); + } + + // Indicates whether plugin can be enabled/disabled + public bool CanEnable() + { + return true; + } + + // get ID of windowplugin belonging to this setup + public int GetWindowId() + { + return 04071975; + } + + // Indicates if plugin is enabled by default; + public bool DefaultEnabled() + { + return true; + } + + // indicates if a plugin has its own setup screen + public bool HasSetup() + { + return false; + } + + /// <summary> + /// If the plugin should have its own button on the main menu of MediaPortal then it + /// should return true to this method, otherwise if it should not be on home + /// it should return false + /// </summary> + /// <param name="strButtonText">text the button should have</param> + /// <param name="strButtonImage">image for the button, or empty for default</param> + /// <param name="strButtonImageFocus">image for the button, or empty for default</param> + /// <param name="strPictureImage">subpicture for the button or empty for none</param> + /// <returns>true : plugin needs its own button on home + /// false : plugin does not need its own button on home</returns> + + public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + { + strButtonText = MySimon.GUILocalizeStrings.Get(0); + strButtonImage = String.Empty; + strButtonImageFocus = String.Empty; + strPictureImage = "hover_my simon.png"; + return true; + } + + #endregion + + public override int GetID + { + get { - return true; + return 04071975; } - - // get ID of windowplugin belonging to this setup - public int GetWindowId() + set { - return 04071975; + base.GetID = value; } + } - // Indicates if plugin is enabled by default; - public bool DefaultEnabled() - { - return true; - } + public override bool Init() + { + MySimon.GUILocalizeStrings.Load(GUI.Library.GUILocalizeStrings.CurrentLanguage()); - // indicates if a plugin has its own setup screen - public bool HasSetup() - { - return false; - } + bool result = Load(GUIGraphicsContext.Skin + @"\MySimon.xml"); + if (ah == null) ah = new OnActionHandler(OnAction2); - /// <summary> - /// If the plugin should have its own button on the main menu of MediaPortal then it - /// should return true to this method, otherwise if it should not be on home - /// it should return false - /// </summary> - /// <param name="strButtonText">text the button should have</param> - /// <param name="strButtonImage">image for the button, or empty for default</param> - /// <param name="strButtonImageFocus">image for the button, or empty for default</param> - /// <param name="strPictureImage">subpicture for the button or empty for none</param> - /// <returns>true : plugin needs its own button on home - /// false : plugin does not need its own button on home</returns> + return result; + } - public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + #region Actions + public override void OnAction(Action action) + { + base.OnAction(action); + } + public void OnAction2(Action action) + { + + if (GUIWindowManager.ActiveWindowEx == (int)GUIWindow.Window.WINDOW_DIALOG_MENU) return; + + //string t = action.wID.ToString(); + //GUIPropertyManager.SetProperty("#Round", t); + + if (PlayerOn) { - strButtonText = PluginName(); - strButtonImage = String.Empty; - strButtonImageFocus = String.Empty; - strPictureImage = "hover_my simon.png"; - return true; + switch (action.wID) + { + //normal + case Action.ActionType.ACTION_REMOTE_RED_BUTTON: + Check(0); + break; + case Action.ActionType.ACTION_REMOTE_BLUE_BUTTON: + Check(1); + break; + case Action.ActionType.ACTION_REMOTE_GREEN_BUTTON: + Check(2); + break; + case Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON: + Check(3); + break; + //my PC + case Action.ActionType.ACTION_SHOW_GUI: + Check(0); + break; + case Action.ActionType.ACTION_ASPECT_RATIO: + Check(1); + break; + case Action.ActionType.ACTION_NEXT_AUDIO: + Check(2); + break; + case Action.ActionType.ACTION_SHOW_INFO: + Check(3); + break; + // for use with arrows + case Action.ActionType.ACTION_MOVE_UP: + Check(0); + break; + case Action.ActionType.ACTION_MOVE_RIGHT: + Check(1); + break; + case Action.ActionType.ACTION_MOVE_DOWN: + Check(3); + break; + case Action.ActionType.ACTION_MOVE_LEFT: + Check(2); + break; + // play with 2 + // play with 4 6 + // play with 8 + case Action.ActionType.ACTION_KEY_PRESSED: + switch (action.m_key.KeyChar) + { + case '2': + Check(0); + break; + case '6': + Check(1); + break; + case '4': + Check(2); + break; + case '8': + Check(3); + break; + } + break; + default: + break; + } } + else + { + if (test) + { + switch (action.wID) + { + //my PC + case Action.ActionType.ACTION_SHOW_GUI: + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_ASPECT_RATIO: + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_NEXT_AUDIO: + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_SHOW_INFO: + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; - #endregion + case Action.ActionType.ACTION_MOVE_UP: + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_RIGHT: + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_DOWN: + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; + case Action.ActionType.ACTION_MOVE_LEFT: + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; - public override int GetID - { - get - { - return 04071975; + case Action.ActionType.ACTION_KEY_PRESSED: + switch (action.m_key.KeyChar) + { + case '2': + Reset(); + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + timeWait = 30; + break; + case '6': + Reset(); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + timeWait = 30; + break; + case '8': + Reset(); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + timeWait = 30; + break; + case '4': + Reset(); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + timeWait = 30; + break; + } + break; } - set - { - base.GetID = value; - } + } } - - public override bool Init() - { - bool result = Load(GUIGraphicsContext.Skin + @"\MySimon.xml"); - if (ah == null) ah = new OnActionHandler(OnAction2); - return result; - } - #region Actions - public override void OnAction(Action action) - { - base.OnAction(action); - } - public void OnAction2(Action action) - { + } + #endregion - if (GUIWindowManager.ActiveWindowEx == (int)GUIWindow.Window.WINDOW_DIALOG_MENU) return; + public override bool OnMessage(GUIMessage message) + { + return base.OnMessage(message); + } - //string t = action.wID.ToString(); - //GUIPropertyManager.SetProperty("#Round", t); + public void Dispose() + { + _Game.Stop(); + _Game.Tick -= new EventHandler(_Game_Tick); + } - if (PlayerOn) - { - switch (action.wID) - { - //normal - case Action.ActionType.ACTION_REMOTE_RED_BUTTON: - Check(0); - break; - case Action.ActionType.ACTION_REMOTE_BLUE_BUTTON: - Check(1); - break; - case Action.ActionType.ACTION_REMOTE_GREEN_BUTTON: - Check(2); - break; - case Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON: - Check(3); - break; - //my PC - case Action.ActionType.ACTION_SHOW_GUI: - Check(0); - break; - case Action.ActionType.ACTION_ASPECT_RATIO: - Check(1); - break; - case Action.ActionType.ACTION_NEXT_AUDIO: - Check(2); - break; - case Action.ActionType.ACTION_SHOW_INFO: - Check(3); - break; - // for use with arrows - case Action.ActionType.ACTION_MOVE_UP: - Check(0); - break; - case Action.ActionType.ACTION_MOVE_RIGHT: - Check(1); - break; - case Action.ActionType.ACTION_MOVE_DOWN: - Check(3); - break; - case Action.ActionType.ACTION_MOVE_LEFT: - Check(2); - break; - // play with 2 - // play with 4 6 - // play with 8 - case Action.ActionType.ACTION_KEY_PRESSED: - switch (action.m_key.KeyChar) - { - case '2': - Check(0); - break; - case '6': - Check(1); - break; - case '4': - Check(2); - break; - case '8': - Check(3); - break; - } - break; - default: - break; - } - } - else - { - if (test) - { - switch (action.wID) - { - //my PC - case Action.ActionType.ACTION_SHOW_GUI: - Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_ASPECT_RATIO: - Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_NEXT_AUDIO: - Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_SHOW_INFO: - Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - timeWait = 30; - break; + protected override void OnPageLoad() + { + _Game.Interval = 5; + _Game.Tick += new EventHandler(_Game_Tick); + _Game.Start(); - case Action.ActionType.ACTION_MOVE_UP: - Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_MOVE_RIGHT: - Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_MOVE_DOWN: - Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - timeWait = 30; - break; - case Action.ActionType.ACTION_MOVE_LEFT: - Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - timeWait = 30; - break; + SimonOn = false; + PlayerOn = false; + Level = "Am"; - case Action.ActionType.ACTION_KEY_PRESSED: - switch (action.m_key.KeyChar) - { - case '2': - Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - timeWait = 30; - break; - case '6': - Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - timeWait = 30; - break; - case '8': - Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - timeWait = 30; - break; - case '4': - Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - timeWait = 30; - break; - } - break; - } - } - } + GUIGraphicsContext.OnNewAction -= ah; + GUIGraphicsContext.OnNewAction += ah; - } - #endregion + base.OnPageLoad(); - public override bool OnMessage(GUIMessage message) - { - return base.OnMessage(message); - } + Reset(); - public void Dispose() - { - _Game.Stop(); - _Game.Tick -= new EventHandler(_Game_Tick); - } - protected override void OnPageLoad() - { - _Game.Interval = 5; - _Game.Tick += new EventHandler(_Game_Tick); - _Game.Start(); + GUIPropertyManager.SetProperty("#header_label", MySimon.GUILocalizeStrings.Get(0)); // My Simon - SimonOn = false; - PlayerOn = false; - Level = "Am"; + GUIControl.SetControlLabel(GetID, BtnStart.GetID, MySimon.GUILocalizeStrings.Get(1)); // Start + GUIControl.SetControlLabel(GetID, BtnWhatsThis.GetID, MySimon.GUILocalizeStrings.Get(31)); // What is My Simon? - GUIGraphicsContext.OnNewAction -= ah; - GUIGraphicsContext.OnNewAction += ah; + GUIPropertyManager.SetProperty("#Status", " "); + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, + MySimon.GUILocalizeStrings.Get(10) + // Level: + MySimon.GUILocalizeStrings.Get(12)); // Normal - base.OnPageLoad(); + GUIPropertyManager.SetProperty("#Round", MySimon.GUILocalizeStrings.Get(5) + "1"); // Round: 1 + GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(6)); // GAME OVER - Reset(); + GUIControl.EnableControl(GetID, 6); // what this - GUIPropertyManager.SetProperty("#Round", "Round: 1"); - GUIPropertyManager.SetProperty("#Player", "GAME OVER"); + } - GUIControl.EnableControl(GetID, 6); // what this + protected override void OnPageDestroy(int new_windowId) + { + _Game.Stop(); + _Game.Tick -= new EventHandler(_Game_Tick); + } - } + protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) + { + if (control == BtnLevel) + OnBtnLevel(); + if (control == BtnWhatsThis) + OnBtnWhatsThis(); + if (control == BtnStart) + { //start game + if ((!PlayerOn) && (!SimonOn)) + { - protected override void OnPageDestroy(int new_windowId) - { - _Game.Stop(); - _Game.Tick -= new EventHandler(_Game_Tick); - } + test = false; + GUIControl.DisableControl(GetID, 6); // what this - protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) - { - if (control == BtnLevel) - OnBtnLevel(); - if (control == BtnWhatsThis) - OnBtnWhatsThis(); - if (control == BtnStart) - { //start game - if ((!PlayerOn) && (!SimonOn)) - { + Random randObj = new Random(); + for (int i = 0; i <= 99; i++) + { // do random colors for 100 rounds + Code[i] = (int)(randObj.NextDouble() * 4); + } + // set timebase for game + if (Level == "Pro") + timeBase = 4; + if (Level == "Nor") + timeBase = 10; + if (Level == "Am") + timeBase = 20; - test = false; - GUIControl.DisableControl(GetID, 6); // what this - - Random randObj = new Random(); - for (int i = 0; i <= 99; i++) - { // do random colors for 100 rounds - Code[i] = (int)(randObj.NextDouble() * 4); - } - // set timebase for game - if (Level == "Pro") - timeBase = 4; - if (Level == "Nor") - timeBase = 10; - if (Level == "Am") - timeBase = 20; + // disable level selection + GUIControl.DisableControl(GetID, 3); - // disable level selection - GUIControl.DisableControl(GetID, 3); + timeActual = timeBase; + Reset(); - timeActual = timeBase; - Reset(); - - //init round - round = 0; - cnt = 0; - //simonn starts - SimonOn = true; - } - } - if (PlayerOn) - { - if ((controlId >= 101) && (controlId <= 104)) - { //which button has clicked ? - if (controlId == 101) Check(0); - if (controlId == 102) Check(1); - if (controlId == 103) Check(2); - if (controlId == 104) Check(3); - } - } - - base.OnClicked(controlId, control, actionType); + //init round + round = 0; + cnt = 0; + //simonn starts + SimonOn = true; + } } + if (PlayerOn) + { + if ((controlId >= 101) && (controlId <= 104)) + { //which button has clicked ? + if (controlId == 101) Check(0); + if (controlId == 102) Check(1); + if (controlId == 103) Check(2); + if (controlId == 104) Check(3); + } + } - protected override void OnShowContextMenu() - { - base.OnShowContextMenu(); - } + base.OnClicked(controlId, control, actionType); + } - private void OnBtnLevel() - { //Choose level for the game - if ((!PlayerOn) && (!SimonOn)) - { - if (Level == "Nor") - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Professional"); - Level = "Pro"; - } - else if (Level == "Pro") - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Amateur"); - Level = "Am"; - } - else - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Normal"); - Level = "Nor"; - } - } - } + protected override void OnShowContextMenu() + { + base.OnShowContextMenu(); + } - private void OnBtnWhatsThis() + private void OnBtnLevel() + { //Choose level for the game + if ((!PlayerOn) && (!SimonOn)) { - GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT); - dlg.SetHeading("What's Simon Say (Senso)"); - dlg.SetText("Simon Say is a game where your object is to repeat a code of\n" + - "tones and colors.\n" + - "Level Amateur/Normal/Professional: Speed is increasing\n\n" + - "Gameboard design by Mikael S\xF6derstr\xF6m.\n\n" + - "Remote play with the colored buttons or\n" + - "use 2 - 4 - 6 - 8 or arrow keys.\n\n" + - "Good luck\nMark Koenig (kroko)"); - dlg.DoModal(GetID); + if (Level == "Nor") + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, + MySimon.GUILocalizeStrings.Get(10) + // Level: + MySimon.GUILocalizeStrings.Get(13)); // Professional + Level = "Pro"; + } + else if (Level == "Pro") + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, + MySimon.GUILocalizeStrings.Get(10) + // Level: + MySimon.GUILocalizeStrings.Get(11)); // Amateur + Level = "Am"; + } + else + { + GUIControl.SetControlLabel(GetID, BtnLevel.GetID, + MySimon.GUILocalizeStrings.Get(10) + // Level: + MySimon.GUILocalizeStrings.Get(12)); // Normal + Level = "Nor"; + } } + } - private void Red() - { // draw red field on - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - MediaPortal.Util.Utils.PlaySound ("MySimon_c.wav", false, true); - } - private void Blue() - { // draw blue field on - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_e.wav", false, true); - } - private void Green() - { // draw green field on - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_g.wav", false, true); - } - private void Yellow() - { // draw yellow field on - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_a.wav", false, true); - } - private void Error(int errNo) - { // draw correct field on - Reset(); - if (errNo== 0) - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - if (errNo == 1) - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - if (errNo == 2) - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - if (errNo == 3) - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + private void OnBtnWhatsThis() + { + GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT); + dlg.SetHeading(MySimon.GUILocalizeStrings.Get(31)); // help dialog heading + dlg.SetText(MySimon.GUILocalizeStrings.Get(32)); // help dialog text + dlg.DoModal(GetID); + } - MediaPortal.Util.Utils.PlaySound("MySimon_err.wav", false, true); + private void Red() + { // draw red field on + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_c.wav", false, true); + } + private void Blue() + { // draw blue field on + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_e.wav", false, true); + } + private void Green() + { // draw green field on + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_g.wav", false, true); + } + private void Yellow() + { // draw yellow field on + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + MediaPortal.Util.Utils.PlaySound("MySimon_a.wav", false, true); + } + private void Error(int errNo) + { // draw correct field on + Reset(); + if (errNo == 0) + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + if (errNo == 1) + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + if (errNo == 2) + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + if (errNo == 3) + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - // Enable level selection - GUIControl.EnableControl(GetID, 3); - } - private void Reset() - { // draw all fields off - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_noFocus.png"); - } + MediaPortal.Util.Utils.PlaySound("MySimon_err.wav", false, true); - private void Check(int Button) - { - Reset(); // reset display - timeActual = timeBase; // set time to base + // Enable level selection + GUIControl.EnableControl(GetID, 3); + } + private void Reset() + { // draw all fields off + GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_noFocus.png"); + } - if (Button == 0) - { //red is pressed - Red(); - } - if (Button == 1) - { //blue is pressed - Blue(); - } - if (Button == 2) - { //green is pressed - Green(); - } - if (Button == 3) - { //yellow is pressed - Yellow(); - } - if (Code[cnt] != Button ) - { //wrong color is pressed - PlayerOn = false; - Error(Code[cnt]); - GUIControl.EnableControl(GetID, 6); // what this - } - else - { // color is correct - cnt++; // next tone - timeActual = 30; // check time for player - if (cnt > round) // last tone reached ? - { - PlayerOn = false; // Simon is now on - SimonOn = true; + private void Check(int Button) + { + Reset(); // reset display + timeActual = timeBase; // set time to base - cnt = 0; // Start with tone 0 - round++; // next Round + if (Button == 0) + { //red is pressed + Red(); + } + if (Button == 1) + { //blue is pressed + Blue(); + } + if (Button == 2) + { //green is pressed + Green(); + } + if (Button == 3) + { //yellow is pressed + Yellow(); + } + if (Code[cnt] != Button) + { //wrong color is pressed + PlayerOn = false; + Error(Code[cnt]); + GUIControl.EnableControl(GetID, 6); // what this + } + else + { // color is correct + cnt++; // next tone + timeActual = 30; // check time for player + if (cnt > round) // last tone reached ? + { + PlayerOn = false; // Simon is now on + SimonOn = true; - if (timeBase >4) // increased difficulty - timeBase--; + cnt = 0; // Start with tone 0 + round++; // next Round - timeWait = 30; // wait a little - timeActual = timeBase; // reset timer - } - } - } + if (timeBase > 4) // increased difficulty + timeBase--; - void _Game_Tick(object sender, EventArgs e) - { //display status of the game - if ((!PlayerOn) && (!SimonOn)) - GUIPropertyManager.SetProperty("#Player", "GAME OVER"); - if (PlayerOn) - GUIPropertyManager.SetProperty("#Player", "PLAYER"); - if (SimonOn) - GUIPropertyManager.SetProperty("#Player", "SIMON"); - //Simon is on and no wait - if ((SimonOn) && (timeWait==0)) - { // just started ? - if (timeBase == timeActual) - { //Display color - if (Code[cnt] == 0) - Red(); - if (Code[cnt] == 1) - Blue(); - if (Code[cnt] == 2) - Green(); - if (Code[cnt] == 3) - Yellow(); - - //Display round - int tmp = round + 1; - GUIPropertyManager.SetProperty("#Round", "Round: " + tmp.ToString() + " "); - } //count timer down - if (timeActual > 0) - timeActual = timeActual - 1; - else - { //if timer is 0 - timeActual = timeBase; - Reset(); - //next tone - if (cnt < round) - cnt++; - else - { //player is next - SimonOn = false; - PlayerOn = true; - // first tone a lot of time - timeActual = 50; - cnt = 0; - } - } - } + timeWait = 30; // wait a little + timeActual = timeBase; // reset timer + } + } + } - if (timeWait > 0) - { //wait timer for little break - timeWait = timeWait - 1; - if (timeWait==timeBase) - Reset(); - } + void _Game_Tick(object sender, EventArgs e) + { //display status of the game + if ((!PlayerOn) && (!SimonOn)) + GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(6)); // GAME OVER + if (PlayerOn) + GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(2)); // PLAYER + if (SimonOn) + GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(3)); // SIMON + //Simon is on and no wait + if ((SimonOn) && (timeWait == 0)) + { // just started ? + if (timeBase == timeActual) + { //Display color + if (Code[cnt] == 0) + Red(); + if (Code[cnt] == 1) + Blue(); + if (Code[cnt] == 2) + Green(); + if (Code[cnt] == 3) + Yellow(); - if (PlayerOn) - { // if player is on count down timer - if (timeActual > 0) - timeActual = timeActual - 1; - else - { //Player wait too long - PlayerOn = false; - Error(Code[cnt]); - GUIControl.EnableControl(GetID, 6); // what this - //Reset(); - } - } - } - } -} + //Display round + int tmp = round + 1; + GUIPropertyManager.SetProperty("#Round", MySimon.GUILocalizeStrings.Get(5) + tmp.ToString()); // Round: + } //count timer down + if (timeActual > 0) + timeActual = timeActual - 1; + else + { //if timer is 0 + timeActual = timeBase; + Reset(); + //next tone + if (cnt < round) + cnt++; + else + { //player is next + SimonOn = false; + PlayerOn = true; + // first tone a lot of time + timeActual = 50; + cnt = 0; + } + } + } + + if (timeWait > 0) + { //wait timer for little break + timeWait = timeWait - 1; + if (timeWait == timeBase) + Reset(); + } + + if (PlayerOn) + { // if player is on count down timer + if (timeActual > 0) + timeActual = timeActual - 1; + else + { //Player wait too long + PlayerOn = false; + Error(Code[cnt]); + GUIControl.EnableControl(GetID, 6); // what this + //Reset(); + } + } + } + } +} \ No newline at end of file Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-24 21:11:19 UTC (rev 436) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-24 21:16:06 UTC (rev 437) @@ -49,6 +49,7 @@ </Reference> </ItemGroup> <ItemGroup> + <Compile Include="LocalizeStrings.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="MySimon.cs" /> </ItemGroup> Deleted: trunk/plugins/MySimon/Source/SimonSay.suo =================================================================== (Binary files differ) Added: trunk/plugins/MySimon/language/MySimon/strings_de.xml =================================================================== --- trunk/plugins/MySimon/language/MySimon/strings_de.xml (rev 0) +++ trunk/plugins/MySimon/language/MySimon/strings_de.xml 2007-05-24 21:16:06 UTC (rev 437) @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<Language name="German" characters="255"> + <Section name="unmapped"> + <String id="0" prefix="Mein ">Simon Say</String> + <String id="1">Neues Spiel</String> + <String id="2">Spieler</String> + <String id="3">SIMON</String> + <String id="5">Runde: </String> + <String id="6">GAME OVER</String> + <String id="10">Stufe: </String> + <String id="11">leicht</String> + <String id="12">mittel</String> + <String id="13">schwer</String> + <String id="31">Was ist Simon Say?</String> + <String id="32">Simon Say is a game where your object is to repeat a code of +tones and colors. +Level Amateur/Normal/Professional: Speed is increasing + +Gameboard design by Mikael Söderström. + +Remote play with the colored buttons or +use 2 - 4 - 6 - 8 or arrow keys. + +Good luck +Mark Koenig (kroko)</String> + </Section> +</Language> \ No newline at end of file Added: trunk/plugins/MySimon/language/MySimon/strings_en.xml =================================================================== --- trunk/plugins/MySimon/language/MySimon/strings_en.xml (rev 0) +++ trunk/plugins/MySimon/language/MySimon/strings_en.xml 2007-05-24 21:16:06 UTC (rev 437) @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<Language name="English" characters="255"> + <Section name="unmapped"> + <String id="0" prefix="My ">Simon Say</String> + <String id="1">Start</String> + <String id="2">Player</String> + <String id="3">SIMON</String> + <String id="5">Round: </String> + <String id="6">GAME OVER</String> + <String id="10">Level: </String> + <String id="11">easy</String> + <String id="12">medium</String> + <String id="13">difficult</String> + <String id="31">What's Simon Say</String> + <String id="32">Simon Say is a game where your object is to repeat a code of +tones and colors. +Level Amateur/Normal/Professional: Speed is increasing + +Gameboard design by Mikael Söderström. + +Remote play with the colored buttons or +use 2 - 4 - 6 - 8 or arrow keys. + +Good luck +Mark Koenig (kroko)</String> + </Section> +</Language> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-05-25 23:30:30
|
Revision: 447 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=447&view=rev Author: chef_koch Date: 2007-05-25 16:30:28 -0700 (Fri, 25 May 2007) Log Message: ----------- added option to enable/disable sound effects in GUI, like in Tetris Modified Paths: -------------- trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml trunk/plugins/MySimon/Skin/MySimon.xml trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj trunk/plugins/MySimon/language/MySimon/strings_de.xml trunk/plugins/MySimon/language/MySimon/strings_en.xml Modified: trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml 2007-05-25 23:30:28 UTC (rev 447) @@ -9,7 +9,7 @@ <control> <description>BackGround</description> <type>image</type> - <id>10</id> + <id>1</id> <posX>0</posX> <posY>0</posY> <width>720</width> @@ -19,7 +19,7 @@ <control> <description>header label</description> <type>label</type> - <id>11</id> + <id>1</id> <posX>250</posX> <posY>70</posY> <label>#header_label</label> @@ -36,59 +36,57 @@ <animation effect="fade" time="500">WindowClose</animation> <animation effect="slide" time="250" start="-300,0">WindowOpen</animation> <animation effect="slide" time="500" end="0,-300">WindowClose</animation> + <posX>60</posX> + <posY>97</posY> + <layout>StackLayout</layout> <control> <description>Start</description> <type>button</type> <id>2</id> - <posX>60</posX> - <posY>97</posY> <onleft>2</onleft> <onright>2</onright> <onup>6</onup> - <ondown>3</ondown> </control> <control> <description>Level</description> <type>button</type> <id>3</id> - <posX>60</posX> - <posY>131</posY> <onleft>3</onleft> <onright>3</onright> - <onup>2</onup> - <ondown>6</ondown> </control> <control> - <description>Round</description> - <type>label</type> + <description>Sounds</description> + <type>togglebutton</type> <id>4</id> - <posX>70</posX> - <posY>170</posY> + <onleft>4</onleft> + <onright>4</onright> + </control> + <control> + <description>Round</description> + <type>button</type> + <id>1</id> <label>#Round</label> <font>font12</font> - <align>Left</align> - <textcolor>White</textcolor> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> </control> <control> <description>Player: / GameOver</description> - <type>label</type> - <id>5</id> - <posX>70</posX> - <posY>204</posY> + <type>button</type> + <id>1</id> <label>#Player</label> <font>font12</font> - <align>Left</align> - <textcolor>White</textcolor> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> </control> <control> <description>What is this?</description> <type>button</type> <id>6</id> - <posX>60</posX> - <posY>233</posY> <onleft>6</onleft> <onright>6</onright> - <onup>3</onup> <ondown>2</ondown> </control> </control> Modified: trunk/plugins/MySimon/Skin/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Skin/MySimon.xml 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/Skin/MySimon.xml 2007-05-25 23:30:28 UTC (rev 447) @@ -1,161 +1,153 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> <window> - <id>04071975</id> - <defaultcontrol>2</defaultcontrol> + <id>04071975</id> + <defaultcontrol>2</defaultcontrol> <allowoverlay>yes</allowoverlay> <autohidetopbar>yes</autohidetopbar> <controls> - <import>common.time.xml</import> + <import>common.time.xml</import> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>header label</description> + <type>label</type> + <id>1</id> + <posX>55</posX> + <posY>20</posY> + <label>#header_label</label> + <font>font48</font> + <align>left</align> + <textcolor>20ffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>header label</description> + <type>label</type> + <id>1</id> + <posX>60</posX> + <posY>70</posY> + <label>#header_label</label> + <font>font16</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>button group</description> + <type>group</type> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + <posX>60</posX> + <posY>97</posY> + <layout>StackLayout</layout> <control> - <description>Simon Say label</description> - <type>label</type> - <posX>55</posX> - <posY>20</posY> - <align>left</align> - <font>font48</font> - <label>Simon Say</label> - <textcolor>20ffffff</textcolor> - <id>1</id> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> + <description>Start</description> + <type>button</type> + <id>2</id> + <onleft>2</onleft> + <onright>2</onright> + <onup>6</onup> </control> - <control> - <description>BackGround</description> - <type>image</type> - <id>1</id> - <posX>0</posX> - <posY>0</posY> - <width>720</width> - <height>576</height> - <texture>background.png</texture> + <control> + <description>Level</description> + <type>button</type> + <id>3</id> + <onleft>3</onleft> + <onright>3</onright> </control> - <control> - <description>text label</description> - <type>label</type> - <id>11</id> - <posX>60</posX> - <posY>70</posY> - <label>Simon Say</label> - <font>font16</font> - <align>Left</align> - <textcolor>ffffffff</textcolor> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> + <control> + <description>Sounds</description> + <type>togglebutton</type> + <id>4</id> + <onleft>4</onleft> + <onright>4</onright> </control> - <control> - <description>Start</description> - <type>button</type> - <id>2</id> - <posX>60</posX> - <posY>97</posY> - <label>Start</label> - <onleft>2</onleft> - <onright>2</onright> - <onup>6</onup> - <ondown>3</ondown> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <description>Level</description> - <type>button</type> - <id>3</id> - <posX>60</posX> - <posY>131</posY> - <label>Level: Amateur</label> - <onleft>3</onleft> - <onright>3</onright> - <onup>2</onup> - <ondown>6</ondown> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> + <control> + <description>Round</description> + <type>button</type> + <id>1</id> + <label>#Round</label> + <font>font12</font> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> </control> <control> - <description>text label</description> - <type>label</type> - <id>4</id> - <posX>70</posX> - <posY>170</posY> - <label>#Round</label> - <font>font12</font> - <align>Left</align> - <textcolor>ffffffff</textcolor> + <description>Player: / GameOver</description> + <type>button</type> + <id>1</id> + <label>#Player</label> + <font>font12</font> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> + </control> + <control> + <description>What is this?</description> + <type>button</type> + <id>6</id> + <onleft>6</onleft> + <onright>6</onright> + <ondown>2</ondown> + </control> + </control> + <control> + <type>button</type> + <id>101</id> + <posX>300</posX> + <posY>80</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso1</textureFocus> + <textureNoFocus>#Senso1</textureNoFocus> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <description>text label</description> - <type>label</type> - <id>4</id> - <posX>70</posX> - <posY>204</posY> - <label>#Player</label> - <font>font12</font> - <align>Left</align> - <textcolor>ffffffff</textcolor> + </control> + <control> + <type>button</type> + <id>102</id> + <posX>386</posX> + <posY>130</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso2</textureFocus> + <textureNoFocus>#Senso2</textureNoFocus> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <description>Whatsthis</description> - <type>button</type> - <id>6</id> - <posX>60</posX> - <posY>233</posY> - <label>What's this?</label> - <onleft>6</onleft> - <onright>6</onright> - <onup>3</onup> - <ondown>2</ondown> + </control> + <control> + <type>button</type> + <id>103</id> + <posX>249</posX> + <posY>131</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso3</textureFocus> + <textureNoFocus>#Senso3</textureNoFocus> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <type>button</type> - <id>101</id> - <posX>300</posX> - <posY>80</posY> - <width>172</width> - <height>137</height> - <textureFocus>#Senso1</textureFocus> - <textureNoFocus>#Senso1</textureNoFocus> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <type>button</type> - <id>102</id> - <posX>386</posX> - <posY>130</posY> - <width>137</width> - <height>172</height> - <textureFocus>#Senso2</textureFocus> - <textureNoFocus>#Senso2</textureNoFocus> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> + </control> <control> - <type>button</type> - <id>103</id> - <posX>249</posX> - <posY>131</posY> - <width>137</width> - <height>172</height> - <textureFocus>#Senso3</textureFocus> - <textureNoFocus>#Senso3</textureNoFocus> + <type>button</type> + <id>104</id> + <posX>300</posX> + <posY>217</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso4</textureFocus> + <textureNoFocus>#Senso4</textureNoFocus> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <type>button</type> - <id>104</id> - <posX>300</posX> - <posY>217</posY> - <width>172</width> - <height>137</height> - <textureFocus>#Senso4</textureFocus> - <textureNoFocus>#Senso4</textureNoFocus> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> - </controls> -</window> + </control> + </controls> +</window> \ No newline at end of file Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-25 23:30:28 UTC (rev 447) @@ -38,28 +38,44 @@ [PluginIcons("MySimon.simon.png", "MySimon.simonDisabled.png")] public class MySimonGUI : GUIWindow, ISetupForm { + #region enums + + private enum Level + { + Easy = 0, + Medium = 1, + Hard = 2 + } + + #endregion + #region SkinControl + [SkinControlAttribute(2)] - protected GUIButtonControl BtnStart = null; + protected GUIButtonControl btnStart = null; [SkinControlAttribute(3)] - protected GUIButtonControl BtnLevel = null; - + protected GUIButtonControl btnLevel = null; + [SkinControlAttribute(4)] + protected GUIToggleButtonControl btnSound = null; [SkinControlAttribute(6)] - protected GUIButtonControl BtnWhatsThis = null; + protected GUIButtonControl btnWhatsThis = null; [SkinControlAttribute(101)] - protected GUIButtonControl BtnRed = null; + protected GUIButtonControl btnRed = null; [SkinControlAttribute(102)] - protected GUIButtonControl BtnBlue = null; + protected GUIButtonControl btnBlue = null; [SkinControlAttribute(103)] - protected GUIButtonControl BtnGreen = null; + protected GUIButtonControl btnGreen = null; [SkinControlAttribute(104)] - protected GUIButtonControl BtnYellow = null; + protected GUIButtonControl btnYellow = null; + #endregion #region Private variables - string Level = "Am"; //Choosen level + Level _currentLevel = Level.Easy; + bool _soundOn = true; + Boolean SimonOn = false; Boolean PlayerOn = false; @@ -152,6 +168,8 @@ #endregion + #region Overrides + public override int GetID { get @@ -174,6 +192,194 @@ return result; } + public override bool OnMessage(GUIMessage message) + { + return base.OnMessage(message); + } + + protected override void OnPageLoad() + { + _Game.Interval = 5; + _Game.Tick += new EventHandler(_Game_Tick); + _Game.Start(); + + SimonOn = false; + PlayerOn = false; + + GUIGraphicsContext.OnNewAction -= ah; + GUIGraphicsContext.OnNewAction += ah; + + base.OnPageLoad(); + + Reset(); + + GUIPropertyManager.SetProperty("#Status", " "); + + GUIPropertyManager.SetProperty("#Round", MySimon.GUILocalizeStrings.Get(5) + "1"); // Round: 1 + GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(6)); // GAME OVER + + GUIControl.EnableControl(GetID, btnWhatsThis.GetID); + + UpdateButtonStates(); + } + + protected override void OnPageDestroy(int new_windowId) + { + _Game.Stop(); + _Game.Tick -= new EventHandler(_Game_Tick); + } + + protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) + { + if (control == btnStart) + OnBtnStart(); + else if (control == btnLevel) + OnBtnLevel(); + else if (control == btnSound) + OnBtnSound(); + else if (control == btnWhatsThis) + OnBtnWhatsThis(); + + if (PlayerOn) + { + if ((controlId >= 101) && (controlId <= 104)) + { //which button has clicked ? + if (controlId == 101) Check(0); + if (controlId == 102) Check(1); + if (controlId == 103) Check(2); + if (controlId == 104) Check(3); + } + } + + base.OnClicked(controlId, control, actionType); + } + + protected override void OnShowContextMenu() + { + base.OnShowContextMenu(); + } + + #endregion + + #region Implementation + + private void OnBtnStart() + { + if ((!PlayerOn) && (!SimonOn)) + { + + test = false; + + Random randObj = new Random(); + for (int i = 0; i <= 99; i++) + { // do random colors for 100 rounds + Code[i] = (int)(randObj.NextDouble() * 4); + } + + // set timebase for game + switch (_currentLevel) + { + case Level.Easy: + timeBase = 20; + break; + case Level.Medium: + timeBase = 10; + break; + case Level.Hard: + timeBase = 4; + break; + } + + + timeActual = timeBase; + Reset(); + + //init round + round = 0; + cnt = 0; + //simonn starts + SimonOn = true; + } + + UpdateButtonStates(); + } + + private void OnBtnLevel() + { + //Choose level for the game + if ((PlayerOn) || (SimonOn)) + return; + + switch (_currentLevel) + { + case Level.Easy: + _currentLevel = Level.Medium; + break; + case Level.Medium: + _currentLevel = Level.Hard; + break; + case Level.Hard: + _currentLevel = Level.Easy; + break; + } + + UpdateButtonStates(); + } + + private void OnBtnSound() + { + _soundOn = btnSound.Selected; + UpdateButtonStates(); + } + + private void OnBtnWhatsThis() + { + GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT); + dlg.SetHeading(MySimon.GUILocalizeStrings.Get(31)); // help dialog heading + dlg.SetText(MySimon.GUILocalizeStrings.Get(32)); // help dialog text + dlg.DoModal(GetID); + } + + private void OnRenderSound(string strFilePath) + { + if (_soundOn) + { + MediaPortal.Util.Utils.PlaySound(strFilePath, false, true); + } + } + + private void UpdateButtonStates() + { + GUIPropertyManager.SetProperty("#header_label", MySimon.GUILocalizeStrings.Get(0)); // My Simon + + GUIControl.SetControlLabel(GetID, btnStart.GetID, MySimon.GUILocalizeStrings.Get(1)); // Start + btnStart.Disabled = (PlayerOn || SimonOn); + + string strLine = MySimon.GUILocalizeStrings.Get(10); // Level: + switch (_currentLevel) + { + case Level.Easy: + strLine += MySimon.GUILocalizeStrings.Get(11); // easy + break; + case Level.Medium: + strLine += MySimon.GUILocalizeStrings.Get(12); // medium + break; + case Level.Hard: + strLine += MySimon.GUILocalizeStrings.Get(13); // difficult + break; + } + GUIControl.SetControlLabel(GetID, btnLevel.GetID, strLine); + btnLevel.Disabled = (PlayerOn || SimonOn); + + GUIControl.SetControlLabel(GetID, btnSound.GetID, MySimon.GUILocalizeStrings.Get(9)); // Sounds + btnSound.Selected = _soundOn; + + GUIControl.SetControlLabel(GetID, btnWhatsThis.GetID, MySimon.GUILocalizeStrings.Get(31)); // What is My Simon? + btnWhatsThis.Disabled = (PlayerOn || SimonOn); + } + + #endregion + #region Actions public override void OnAction(Action action) { @@ -335,175 +541,39 @@ } #endregion - public override bool OnMessage(GUIMessage message) - { - return base.OnMessage(message); - } - public void Dispose() { _Game.Stop(); _Game.Tick -= new EventHandler(_Game_Tick); } - protected override void OnPageLoad() + private void Red() { - _Game.Interval = 5; - _Game.Tick += new EventHandler(_Game_Tick); - _Game.Start(); - - SimonOn = false; - PlayerOn = false; - Level = "Am"; - - GUIGraphicsContext.OnNewAction -= ah; - GUIGraphicsContext.OnNewAction += ah; - - base.OnPageLoad(); - - Reset(); - - - GUIPropertyManager.SetProperty("#header_label", MySimon.GUILocalizeStrings.Get(0)); // My Simon - - GUIControl.SetControlLabel(GetID, BtnStart.GetID, MySimon.GUILocalizeStrings.Get(1)); // Start - GUIControl.SetControlLabel(GetID, BtnWhatsThis.GetID, MySimon.GUILocalizeStrings.Get(31)); // What is My Simon? - - GUIPropertyManager.SetProperty("#Status", " "); - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, - MySimon.GUILocalizeStrings.Get(10) + // Level: - MySimon.GUILocalizeStrings.Get(12)); // Normal - - GUIPropertyManager.SetProperty("#Round", MySimon.GUILocalizeStrings.Get(5) + "1"); // Round: 1 - GUIPropertyManager.SetProperty("#Player", MySimon.GUILocalizeStrings.Get(6)); // GAME OVER - - GUIControl.EnableControl(GetID, 6); // what this - - } - - protected override void OnPageDestroy(int new_windowId) - { - _Game.Stop(); - _Game.Tick -= new EventHandler(_Game_Tick); - } - - protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) - { - if (control == BtnLevel) - OnBtnLevel(); - if (control == BtnWhatsThis) - OnBtnWhatsThis(); - if (control == BtnStart) - { //start game - if ((!PlayerOn) && (!SimonOn)) - { - - test = false; - GUIControl.DisableControl(GetID, 6); // what this - - Random randObj = new Random(); - for (int i = 0; i <= 99; i++) - { // do random colors for 100 rounds - Code[i] = (int)(randObj.NextDouble() * 4); - } - // set timebase for game - if (Level == "Pro") - timeBase = 4; - if (Level == "Nor") - timeBase = 10; - if (Level == "Am") - timeBase = 20; - - // disable level selection - GUIControl.DisableControl(GetID, 3); - - timeActual = timeBase; - Reset(); - - //init round - round = 0; - cnt = 0; - //simonn starts - SimonOn = true; - } - } - if (PlayerOn) - { - if ((controlId >= 101) && (controlId <= 104)) - { //which button has clicked ? - if (controlId == 101) Check(0); - if (controlId == 102) Check(1); - if (controlId == 103) Check(2); - if (controlId == 104) Check(3); - } - } - - base.OnClicked(controlId, control, actionType); - } - - protected override void OnShowContextMenu() - { - base.OnShowContextMenu(); - } - - private void OnBtnLevel() - { //Choose level for the game - if ((!PlayerOn) && (!SimonOn)) - { - if (Level == "Nor") - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, - MySimon.GUILocalizeStrings.Get(10) + // Level: - MySimon.GUILocalizeStrings.Get(13)); // Professional - Level = "Pro"; - } - else if (Level == "Pro") - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, - MySimon.GUILocalizeStrings.Get(10) + // Level: - MySimon.GUILocalizeStrings.Get(11)); // Amateur - Level = "Am"; - } - else - { - GUIControl.SetControlLabel(GetID, BtnLevel.GetID, - MySimon.GUILocalizeStrings.Get(10) + // Level: - MySimon.GUILocalizeStrings.Get(12)); // Normal - Level = "Nor"; - } - } - } - - private void OnBtnWhatsThis() - { - GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT); - dlg.SetHeading(MySimon.GUILocalizeStrings.Get(31)); // help dialog heading - dlg.SetText(MySimon.GUILocalizeStrings.Get(32)); // help dialog text - dlg.DoModal(GetID); - } - - private void Red() - { // draw red field on + // draw red field on GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_c.wav", false, true); + OnRenderSound("MySimon_c.wav"); } private void Blue() - { // draw blue field on + { + // draw blue field on GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_e.wav", false, true); + OnRenderSound("MySimon_e.wav"); } private void Green() - { // draw green field on + { + // draw green field on GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_g.wav", false, true); + OnRenderSound("MySimon_g.wav"); } private void Yellow() - { // draw yellow field on + { + // draw yellow field on GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_a.wav", false, true); + OnRenderSound("MySimon_a.wav"); } private void Error(int errNo) - { // draw correct field on + { + // draw correct field on Reset(); if (errNo == 0) GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); @@ -514,13 +584,14 @@ if (errNo == 3) GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); - MediaPortal.Util.Utils.PlaySound("MySimon_err.wav", false, true); + OnRenderSound("MySimon_err.wav"); // Enable level selection - GUIControl.EnableControl(GetID, 3); + GUIControl.EnableControl(GetID, btnLevel.GetID); } private void Reset() - { // draw all fields off + { + // draw all fields off GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_noFocus.png"); GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_noFocus.png"); GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_noFocus.png"); @@ -533,26 +604,31 @@ timeActual = timeBase; // set time to base if (Button == 0) - { //red is pressed + { + //red is pressed Red(); } if (Button == 1) - { //blue is pressed + { + //blue is pressed Blue(); } if (Button == 2) - { //green is pressed + { + //green is pressed Green(); } if (Button == 3) - { //yellow is pressed + { + //yellow is pressed Yellow(); } if (Code[cnt] != Button) - { //wrong color is pressed + { + //wrong color is pressed PlayerOn = false; Error(Code[cnt]); - GUIControl.EnableControl(GetID, 6); // what this + UpdateButtonStates(); } else { // color is correct @@ -636,7 +712,7 @@ { //Player wait too long PlayerOn = false; Error(Code[cnt]); - GUIControl.EnableControl(GetID, 6); // what this + UpdateButtonStates(); //Reset(); } } Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-05-25 23:30:28 UTC (rev 447) @@ -22,7 +22,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> - <OutputPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\</OutputPath> + <OutputPath>.\bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> @@ -30,12 +30,12 @@ <ItemGroup> <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Core.DLL</HintPath> + <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath> + <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\plugins\Windows\Dialogs.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="System" /> @@ -44,7 +44,7 @@ <Reference Include="System.Xml" /> <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath> + <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> <Private>False</Private> </Reference> </ItemGroup> Modified: trunk/plugins/MySimon/language/MySimon/strings_de.xml =================================================================== --- trunk/plugins/MySimon/language/MySimon/strings_de.xml 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/language/MySimon/strings_de.xml 2007-05-25 23:30:28 UTC (rev 447) @@ -7,6 +7,7 @@ <String id="3">SIMON</String> <String id="5">Runde: </String> <String id="6">GAME OVER</String> + <String id="9">Spielgeräusche</String> <String id="10">Stufe: </String> <String id="11">leicht</String> <String id="12">mittel</String> Modified: trunk/plugins/MySimon/language/MySimon/strings_en.xml =================================================================== --- trunk/plugins/MySimon/language/MySimon/strings_en.xml 2007-05-25 23:28:14 UTC (rev 446) +++ trunk/plugins/MySimon/language/MySimon/strings_en.xml 2007-05-25 23:30:28 UTC (rev 447) @@ -7,6 +7,7 @@ <String id="3">SIMON</String> <String id="5">Round: </String> <String id="6">GAME OVER</String> + <String id="9">Sounds</String> <String id="10">Level: </String> <String id="11">easy</String> <String id="12">medium</String> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-05-27 10:28:41
|
Revision: 475 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=475&view=rev Author: chef_koch Date: 2007-05-27 03:28:38 -0700 (Sun, 27 May 2007) Log Message: ----------- changed id for button sounds to 5 Modified Paths: -------------- trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml trunk/plugins/MySimon/Source/SimonSay/MySimon.cs Modified: trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml 2007-05-27 10:20:21 UTC (rev 474) +++ trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml 2007-05-27 10:28:38 UTC (rev 475) @@ -46,6 +46,7 @@ <onleft>2</onleft> <onright>2</onright> <onup>6</onup> + <ondown>3</ondown> </control> <control> <description>Level</description> @@ -53,13 +54,17 @@ <id>3</id> <onleft>3</onleft> <onright>3</onright> + <onup>2</onup> + <ondown>5</ondown> </control> <control> <description>Sounds</description> <type>togglebutton</type> - <id>4</id> - <onleft>4</onleft> - <onright>4</onright> + <id>5</id> + <onleft>5</onleft> + <onright>5</onright> + <onup>3</onup> + <ondown>6</ondown> </control> <control> <description>Round</description> @@ -87,6 +92,7 @@ <id>6</id> <onleft>6</onleft> <onright>6</onright> + <onup>5</onup> <ondown>2</ondown> </control> </control> Modified: trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2007-05-27 10:20:21 UTC (rev 474) +++ trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2007-05-27 10:28:38 UTC (rev 475) @@ -57,6 +57,7 @@ <onleft>2</onleft> <onright>2</onright> <onup>6</onup> + <ondown>3</ondown> </control> <control> <description>Level</description> @@ -64,13 +65,17 @@ <id>3</id> <onleft>3</onleft> <onright>3</onright> + <onup>2</onup> + <ondown>5</ondown> </control> <control> <description>Sounds</description> <type>togglebutton</type> - <id>4</id> - <onleft>4</onleft> - <onright>4</onright> + <id>5</id> + <onleft>5</onleft> + <onright>5</onright> + <onup>3</onup> + <ondown>6</ondown> </control> <control> <description>Round</description> @@ -98,6 +103,7 @@ <id>6</id> <onleft>6</onleft> <onright>6</onright> + <onup>5</onup> <ondown>2</ondown> </control> </control> Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-27 10:20:21 UTC (rev 474) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-05-27 10:28:38 UTC (rev 475) @@ -55,7 +55,7 @@ protected GUIButtonControl btnStart = null; [SkinControlAttribute(3)] protected GUIButtonControl btnLevel = null; - [SkinControlAttribute(4)] + [SkinControlAttribute(5)] protected GUIToggleButtonControl btnSound = null; [SkinControlAttribute(6)] protected GUIButtonControl btnWhatsThis = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-06-25 22:44:26
|
Revision: 636 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=636&view=rev Author: chef_koch Date: 2007-06-25 15:44:23 -0700 (Mon, 25 Jun 2007) Log Message: ----------- reverted back the last id change to prevent probs with skins Modified Paths: -------------- trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj Modified: trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml 2007-06-25 22:00:55 UTC (rev 635) +++ trunk/plugins/MySimon/Release/skin/BlueTwo/MySimon.xml 2007-06-25 22:44:23 UTC (rev 636) @@ -10,8 +10,6 @@ <description>BackGround</description> <type>image</type> <id>1</id> - <posX>0</posX> - <posY>0</posY> <width>720</width> <height>576</height> <texture>background.png</texture> @@ -55,14 +53,14 @@ <onleft>3</onleft> <onright>3</onright> <onup>2</onup> - <ondown>5</ondown> + <ondown>4</ondown> </control> <control> <description>Sounds</description> <type>togglebutton</type> - <id>5</id> - <onleft>5</onleft> - <onright>5</onright> + <id>4</id> + <onleft>4</onleft> + <onright>4</onright> <onup>3</onup> <ondown>6</ondown> </control> @@ -92,7 +90,7 @@ <id>6</id> <onleft>6</onleft> <onright>6</onright> - <onup>5</onup> + <onup>4</onup> <ondown>2</ondown> </control> </control> Modified: trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2007-06-25 22:00:55 UTC (rev 635) +++ trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2007-06-25 22:44:23 UTC (rev 636) @@ -10,8 +10,6 @@ <description>BackGround</description> <type>image</type> <id>1</id> - <posX>0</posX> - <posY>0</posY> <width>720</width> <height>576</height> <texture>background.png</texture> @@ -66,14 +64,14 @@ <onleft>3</onleft> <onright>3</onright> <onup>2</onup> - <ondown>5</ondown> + <ondown>4</ondown> </control> <control> <description>Sounds</description> <type>togglebutton</type> - <id>5</id> - <onleft>5</onleft> - <onright>5</onright> + <id>4</id> + <onleft>4</onleft> + <onright>4</onright> <onup>3</onup> <ondown>6</ondown> </control> @@ -103,7 +101,7 @@ <id>6</id> <onleft>6</onleft> <onright>6</onright> - <onup>5</onup> + <onup>4</onup> <ondown>2</ondown> </control> </control> Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-06-25 22:00:55 UTC (rev 635) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2007-06-25 22:44:23 UTC (rev 636) @@ -55,7 +55,7 @@ protected GUIButtonControl btnStart = null; [SkinControlAttribute(3)] protected GUIButtonControl btnLevel = null; - [SkinControlAttribute(5)] + [SkinControlAttribute(4)] protected GUIToggleButtonControl btnSound = null; [SkinControlAttribute(6)] protected GUIButtonControl btnWhatsThis = null; Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-06-25 22:00:55 UTC (rev 635) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2007-06-25 22:44:23 UTC (rev 636) @@ -65,8 +65,4 @@ <Target Name="AfterBuild"> </Target> --> - <PropertyGroup> - <PostBuildEvent> - </PostBuildEvent> - </PropertyGroup> </Project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <che...@us...> - 2007-06-26 00:47:42
|
Revision: 639 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=639&view=rev Author: chef_koch Date: 2007-06-25 17:47:40 -0700 (Mon, 25 Jun 2007) Log Message: ----------- added PM3 skin-file Modified Paths: -------------- trunk/plugins/MySimon/readme.txt Added Paths: ----------- trunk/plugins/MySimon/Release/skin/Project Mayhem 3/ trunk/plugins/MySimon/Release/skin/Project Mayhem 3/MySimon.xml Added: trunk/plugins/MySimon/Release/skin/Project Mayhem 3/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/Project Mayhem 3/MySimon.xml (rev 0) +++ trunk/plugins/MySimon/Release/skin/Project Mayhem 3/MySimon.xml 2007-06-26 00:47:40 UTC (rev 639) @@ -0,0 +1,155 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>04071975</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <autohidetopbar>yes</autohidetopbar> + <controls> + <import>common.time.xml</import> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <width>720</width> + <height>576</height> + <texture>background3.png</texture> + </control> + <control> + <description>header label</description> + <type>label</type> + <id>1</id> + <posX>190</posX> + <posY>70</posY> + <label>#header_label</label> + <font>font18</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>button group</description> + <type>group</type> + <animation>FlyInFromLeft</animation> + <posX>5</posX> + <posY>125</posY> + <layout>StackLayout</layout> + <control> + <description>Start</description> + <type>button</type> + <id>2</id> + <onleft>2</onleft> + <onright>2</onright> + <onup>6</onup> + <ondown>3</ondown> + <alignY>center</alignY> + </control> + <control> + <description>Level</description> + <type>button</type> + <id>3</id> + <onleft>3</onleft> + <onright>3</onright> + <onup>2</onup> + <ondown>4</ondown> + <alignY>center</alignY> + </control> + <control> + <description>Sounds</description> + <type>togglebutton</type> + <id>4</id> + <onleft>4</onleft> + <onright>4</onright> + <onup>3</onup> + <ondown>6</ondown> + <width>190</width> + <height>32</height> + <AltTextureFocus>togglebutton-off-focus.png</AltTextureFocus> + <AltTextureNoFocus>togglebutton-off-nofocus.png</AltTextureNoFocus> + <textureFocus>togglebutton-on-focus.png</textureFocus> + <textureNoFocus>togglebutton-on-nofocus.png</textureNoFocus> + <alignY>center</alignY> + </control> + <control> + <description>Round</description> + <type>button</type> + <id>1</id> + <label>#Round</label> + <font>font12</font> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> + <alignY>center</alignY> + </control> + <control> + <description>Player: / GameOver</description> + <type>button</type> + <id>1</id> + <label>#Player</label> + <font>font12</font> + <enabled>false</enabled> + <textureFocus>-</textureFocus> + <textureNoFocus>-</textureNoFocus> + <alignY>center</alignY> + </control> + <control> + <description>What is this?</description> + <type>button</type> + <id>6</id> + <onleft>6</onleft> + <onright>6</onright> + <onup>4</onup> + <ondown>2</ondown> + <alignY>center</alignY> + </control> + </control> + <control> + <type>button</type> + <id>101</id> + <posX>380</posX> + <posY>160</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso1</textureFocus> + <textureNoFocus>#Senso1</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>102</id> + <posX>466</posX> + <posY>210</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso2</textureFocus> + <textureNoFocus>#Senso2</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>103</id> + <posX>329</posX> + <posY>211</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso3</textureFocus> + <textureNoFocus>#Senso3</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>104</id> + <posX>380</posX> + <posY>297</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso4</textureFocus> + <textureNoFocus>#Senso4</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Modified: trunk/plugins/MySimon/readme.txt =================================================================== --- trunk/plugins/MySimon/readme.txt 2007-06-26 00:42:56 UTC (rev 638) +++ trunk/plugins/MySimon/readme.txt 2007-06-26 00:47:40 UTC (rev 639) @@ -1,8 +1,25 @@ Visit the forum http://forum.team-mediaportal.com/new_game_simon_say-t19473.html +SimonSay +------------------------ + +V0.5 + + - MediaPortal 0.2.3.0 ready + - added option to enable/disable sounds, while playing + - plugin should be full localisable now + - minor improvements + - added skin-file: BlueTwo wide + - added skin-file: Project Mayhem 3 + +regards +chefkoch + +------------------------------------------ + V0.4 ----- + -turn design of the board 45 degrees , thanks to Mikael -make it possible to test the buttons (before start) -playable with arrow keys @@ -12,6 +29,8 @@ Greetz kroko +------------------------------------------ + V0.3.1 ------ -added time display on skin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2008-03-29 20:57:37
|
Revision: 1560 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1560&view=rev Author: kroko_koenig Date: 2008-03-29 13:57:32 -0700 (Sat, 29 Mar 2008) Log Message: ----------- update for v0.5 release Modified Paths: -------------- trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml trunk/plugins/MySimon/Release/skin/_default/Media/hover_my simon.png trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.cs trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs trunk/plugins/MySimon/readme.txt Added Paths: ----------- trunk/plugins/MySimon/Release/plugins/Windows/MySimon.dll trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/ trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_NoFocus.png Removed Paths: ------------- trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Blue_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Blue_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Green_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Green_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Red_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Red_NoFocus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Yellow_Focus.png trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Yellow_NoFocus.png Modified: trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml =================================================================== --- trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml 2008-03-29 20:57:32 UTC (rev 1560) @@ -23,6 +23,6 @@ use 2 - 4 - 6 - 8 or arrow keys. Good luck -Mark Koenig (kroko)</String> +Mark Koenig 2008 (kroko)</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml =================================================================== --- trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml 2008-03-29 20:57:32 UTC (rev 1560) @@ -23,6 +23,6 @@ use 2 - 4 - 6 - 8 or arrow keys. Good luck -Mark Koenig (kroko)</String> +Mark Koenig 2008 (kroko)</String> </Section> </Language> \ No newline at end of file Added: trunk/plugins/MySimon/Release/plugins/Windows/MySimon.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/plugins/Windows/MySimon.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml =================================================================== --- trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Release/skin/SimpleMP/MySimon.xml 2008-03-29 20:57:32 UTC (rev 1560) @@ -1,157 +1,161 @@ -<?xml version="1.0" encoding="utf-8" standalone="yes"?> <window> - <id>04071975</id> - <defaultcontrol>2</defaultcontrol> + <id>04071975</id> + <defaultcontrol>2</defaultcontrol> <allowoverlay>yes</allowoverlay> <autohidetopbar>yes</autohidetopbar> <controls> - <import>common.time.xml</import> - <control> - <description>BackGround</description> - <type>image</type> - <id>1</id> - <width>720</width> - <height>576</height> - <texture>background.png</texture> - </control> - <control> - <description>header label</description> - <type>label</type> - <id>1</id> - <posX>55</posX> - <posY>20</posY> - <label>#header_label</label> - <font>font48</font> - <align>left</align> - <textcolor>20ffffff</textcolor> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <description>header label</description> - <type>label</type> - <id>1</id> - <posX>60</posX> - <posY>70</posY> - <label>#header_label</label> - <font>font16</font> - <align>Left</align> - <textcolor>ffffffff</textcolor> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <description>button group</description> - <type>group</type> - <animation effect="fade" time="150">WindowOpen</animation> - <animation effect="fade" time="150">WindowClose</animation> - <posX>60</posX> - <posY>97</posY> - <layout>StackLayout</layout> + <import>common.time.xml</import> <control> - <description>Start</description> - <type>button</type> - <id>2</id> - <onleft>2</onleft> - <onright>2</onright> - <onup>6</onup> - <ondown>3</ondown> + <description>Simon Say label</description> + <type>label</type> + <posX>55</posX> + <posY>20</posY> + <align>left</align> + <font>font48</font> + <label>Simon Say</label> + <textcolor>20ffffff</textcolor> + <id>1</id> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> </control> - <control> - <description>Level</description> - <type>button</type> - <id>3</id> - <onleft>3</onleft> - <onright>3</onright> - <onup>2</onup> - <ondown>4</ondown> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> </control> - <control> - <description>Sounds</description> - <type>togglebutton</type> - <id>4</id> - <onleft>4</onleft> - <onright>4</onright> - <onup>3</onup> - <ondown>6</ondown> + <control> + <description>text label</description> + <type>label</type> + <id>11</id> + <posX>60</posX> + <posY>70</posY> + <label>Simon Say</label> + <font>font16</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> </control> - <control> - <description>Round</description> - <type>button</type> - <id>1</id> - <label>#Round</label> - <font>font12</font> - <enabled>false</enabled> - <textureFocus>-</textureFocus> - <textureNoFocus>-</textureNoFocus> + <control> + <description>Start</description> + <type>button</type> + <id>2</id> + <posX>60</posX> + <posY>97</posY> + <label>Start</label> + <onleft>2</onleft> + <onright>2</onright> + <onup>6</onup> + <ondown>3</ondown> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <description>Level</description> + <type>button</type> + <id>3</id> + <posX>60</posX> + <posY>131</posY> + <label>Level: Amateur</label> + <onleft>3</onleft> + <onright>3</onright> + <onup>2</onup> + <ondown>6</ondown> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> </control> <control> - <description>Player: / GameOver</description> - <type>button</type> - <id>1</id> - <label>#Player</label> - <font>font12</font> - <enabled>false</enabled> - <textureFocus>-</textureFocus> - <textureNoFocus>-</textureNoFocus> - </control> - <control> - <description>What is this?</description> - <type>button</type> - <id>6</id> - <onleft>6</onleft> - <onright>6</onright> - <onup>4</onup> - <ondown>2</ondown> - </control> - </control> - <control> - <type>button</type> - <id>101</id> - <posX>300</posX> - <posY>80</posY> - <width>172</width> - <height>137</height> - <textureFocus>#Senso1</textureFocus> - <textureNoFocus>#Senso1</textureNoFocus> + <description>text label</description> + <type>label</type> + <id>4</id> + <posX>70</posX> + <posY>170</posY> + <label>#Round</label> + <font>font12</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <type>button</type> - <id>102</id> - <posX>386</posX> - <posY>130</posY> - <width>137</width> - <height>172</height> - <textureFocus>#Senso2</textureFocus> - <textureNoFocus>#Senso2</textureNoFocus> + </control> + <control> + <description>text label</description> + <type>label</type> + <id>4</id> + <posX>70</posX> + <posY>204</posY> + <label>#Player</label> + <font>font12</font> + <align>Left</align> + <textcolor>ffffffff</textcolor> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - <control> - <type>button</type> - <id>103</id> - <posX>249</posX> - <posY>131</posY> - <width>137</width> - <height>172</height> - <textureFocus>#Senso3</textureFocus> - <textureNoFocus>#Senso3</textureNoFocus> + </control> + <control> + <description>Whatsthis</description> + <type>button</type> + <id>6</id> + <posX>60</posX> + <posY>233</posY> + <label>What's this?</label> + <onleft>6</onleft> + <onright>6</onright> + <onup>3</onup> + <ondown>2</ondown> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> + </control> + <control> + <type>button</type> + <id>101</id> + <posX>300</posX> + <posY>80</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso1</textureFocus> + <textureNoFocus>#Senso1</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + <control> + <type>button</type> + <id>102</id> + <posX>386</posX> + <posY>130</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso2</textureFocus> + <textureNoFocus>#Senso2</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> <control> - <type>button</type> - <id>104</id> - <posX>300</posX> - <posY>217</posY> - <width>172</width> - <height>137</height> - <textureFocus>#Senso4</textureFocus> - <textureNoFocus>#Senso4</textureNoFocus> + <type>button</type> + <id>103</id> + <posX>249</posX> + <posY>131</posY> + <width>137</width> + <height>172</height> + <textureFocus>#Senso3</textureFocus> + <textureNoFocus>#Senso3</textureNoFocus> <animation effect="fade" time="150">WindowOpen</animation> <animation effect="fade" time="150">WindowClose</animation> - </control> - </controls> -</window> \ No newline at end of file + </control> + <control> + <type>button</type> + <id>104</id> + <posX>300</posX> + <posY>217</posY> + <width>172</width> + <height>137</height> + <textureFocus>#Senso4</textureFocus> + <textureNoFocus>#Senso4</textureNoFocus> + <animation effect="fade" time="150">WindowOpen</animation> + <animation effect="fade" time="150">WindowClose</animation> + </control> + </controls> +</window> Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Blue_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Green_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Red_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_Focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_Focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_NoFocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon/MySimon_Yellow_NoFocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Blue_Focus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Blue_NoFocus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Green_Focus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Green_NoFocus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Red_Focus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Red_NoFocus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Yellow_Focus.png =================================================================== (Binary files differ) Deleted: trunk/plugins/MySimon/Release/skin/_default/Media/MySimon_Yellow_NoFocus.png =================================================================== (Binary files differ) Modified: trunk/plugins/MySimon/Release/skin/_default/Media/hover_my simon.png =================================================================== (Binary files differ) Modified: trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Source/SimonSay/LocalizeStrings.cs 2008-03-29 20:57:32 UTC (rev 1560) @@ -1,7 +1,7 @@ -#region Copyright (C) 2005-2007 Team MediaPortal +#region Copyright (C) 2005-2008 Team MediaPortal /* - * Copyright (C) 2005-2007 Team MediaPortal + * Copyright (C) 2005-2008 Team MediaPortal * http://www.team-mediaportal.com * * This Program is free software; you can redistribute it and/or modify Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.cs 2008-03-29 20:57:32 UTC (rev 1560) @@ -1,7 +1,7 @@ -#region Copyright (C) 2005-2007 Team MediaPortal +#region Copyright (C) 2005-2008 Team MediaPortal /* - * Copyright (C) 2005-2007 Team MediaPortal + * Copyright (C) 2005-2008 Team MediaPortal * http://www.team-mediaportal.com * * This Program is free software; you can redistribute it and/or modify @@ -112,7 +112,7 @@ // Returns the author of the plugin which is shown in the plugin menu public string Author() { - return "Mark Koenig (kroko)"; + return "Mark Koenig 2008 (kroko)"; } // show the setup dialog @@ -236,14 +236,16 @@ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) { if (control == btnStart) + { OnBtnStart(); + } else if (control == btnLevel) OnBtnLevel(); else if (control == btnSound) OnBtnSound(); else if (control == btnWhatsThis) OnBtnWhatsThis(); - + if (PlayerOn) { if ((controlId >= 101) && (controlId <= 104)) @@ -359,6 +361,7 @@ btnStart.Disabled = (PlayerOn || SimonOn); btnLevel.Disabled = (PlayerOn || SimonOn); btnWhatsThis.Disabled = (PlayerOn || SimonOn); + btnSound.Disabled = (PlayerOn || SimonOn); // refresh label for btnLevel string strLine = MySimon.GUILocalizeStrings.Get(10); // Level: @@ -468,43 +471,43 @@ //my PC case Action.ActionType.ACTION_SHOW_GUI: Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_ASPECT_RATIO: Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_NEXT_AUDIO: Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_SHOW_INFO: Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_MOVE_UP: Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_MOVE_RIGHT: Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_MOVE_DOWN: Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_Focus.png"); timeWait = 30; break; case Action.ActionType.ACTION_MOVE_LEFT: Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_Focus.png"); timeWait = 30; break; @@ -513,22 +516,22 @@ { case '2': Reset(); - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_Focus.png"); timeWait = 30; break; case '6': Reset(); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_Focus.png"); timeWait = 30; break; case '8': Reset(); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_Focus.png"); timeWait = 30; break; case '4': Reset(); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_Focus.png"); timeWait = 30; break; } @@ -549,25 +552,25 @@ private void Red() { // draw red field on - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_Focus.png"); OnRenderSound("MySimon_c.wav"); } private void Blue() { // draw blue field on - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_Focus.png"); OnRenderSound("MySimon_e.wav"); } private void Green() { // draw green field on - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_Focus.png"); OnRenderSound("MySimon_g.wav"); } private void Yellow() { // draw yellow field on - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_Focus.png"); OnRenderSound("MySimon_a.wav"); } private void Error(int errNo) @@ -575,13 +578,13 @@ // draw correct field on Reset(); if (errNo == 0) - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_Focus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_Focus.png"); if (errNo == 1) - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_Focus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_Focus.png"); if (errNo == 2) - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_Focus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_Focus.png"); if (errNo == 3) - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_Focus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_Focus.png"); OnRenderSound("MySimon_err.wav"); @@ -591,10 +594,10 @@ private void Reset() { // draw all fields off - GUIPropertyManager.SetProperty("#Senso1", "MySimon_Red_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso2", "MySimon_Blue_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso3", "MySimon_Green_noFocus.png"); - GUIPropertyManager.SetProperty("#Senso4", "MySimon_Yellow_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso1", "MySimon\\MySimon_Red_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso2", "MySimon\\MySimon_Blue_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso3", "MySimon\\MySimon_Green_noFocus.png"); + GUIPropertyManager.SetProperty("#Senso4", "MySimon\\MySimon_Yellow_noFocus.png"); } private void Check(int Button) Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2008-03-29 20:57:32 UTC (rev 1560) @@ -22,7 +22,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> - <OutputPath>.\bin\Release\</OutputPath> + <OutputPath>..\..\..\..\..\..\Mediaportal\xbmc\bin\Debug\plugins\Windows\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> @@ -30,12 +30,12 @@ <ItemGroup> <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> + <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Core.DLL</HintPath> <Private>False</Private> </Reference> <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\plugins\Windows\Dialogs.dll</HintPath> + <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath> <Private>False</Private> </Reference> <Reference Include="System" /> @@ -44,7 +44,7 @@ <Reference Include="System.Xml" /> <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> + <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath> <Private>False</Private> </Reference> </ItemGroup> Modified: trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs 2008-03-29 20:57:32 UTC (rev 1560) @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MySimonSay")] -[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyCopyright("Copyright © 2008")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -31,5 +31,5 @@ // // Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern // übernehmen, indem Sie "*" eingeben: -[assembly: AssemblyVersion("0.4.0.0")] -[assembly: AssemblyFileVersion("0.4.0.0")] +[assembly: AssemblyVersion("0.5.0.0")] +[assembly: AssemblyFileVersion("0.5.0.0")] Modified: trunk/plugins/MySimon/readme.txt =================================================================== --- trunk/plugins/MySimon/readme.txt 2008-03-29 20:13:49 UTC (rev 1559) +++ trunk/plugins/MySimon/readme.txt 2008-03-29 20:57:32 UTC (rev 1560) @@ -1,9 +1,14 @@ Visit the forum http://forum.team-mediaportal.com/new_game_simon_say-t19473.html -SimonSay ------------------------- +Copy the plugin and skin files into your favorite skin folder. +COpy the language files into the language folder +I had to adjust my remote a little in the setup. It was to sensitve. + +Simon Say +--------- + V0.5 - MediaPortal 0.2.3.0 ready @@ -16,6 +21,13 @@ regards chefkoch +also + - added new skin files for SimpleMP + - buttons are disabled while playing + +Greetz +kroko + ------------------------------------------ V0.4 @@ -56,5 +68,3 @@ - remote color buttons - action keys -Copy the plugin and skin files into your favorite skin folder. -I had to adjust my remote a little in the setup. It was to sensitve. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kro...@us...> - 2008-07-14 18:57:40
|
Revision: 1919 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1919&view=rev Author: kroko_koenig Date: 2008-07-14 11:57:36 -0700 (Mon, 14 Jul 2008) Log Message: ----------- RC2 ready, small text changes Modified Paths: -------------- trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml trunk/plugins/MySimon/Release/plugins/Windows/MySimon.dll trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs trunk/plugins/MySimon/readme.txt Modified: trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml =================================================================== --- trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml 2008-07-13 17:52:07 UTC (rev 1918) +++ trunk/plugins/MySimon/Release/language/MySimon/strings_de.xml 2008-07-14 18:57:36 UTC (rev 1919) @@ -13,16 +13,15 @@ <String id="12">mittel</String> <String id="13">schwer</String> <String id="31">Was ist Simon Say?</String> - <String id="32">Simon Say is a game where your object is to repeat a code of -tones and colors. -Level Amateur/Normal/Professional: Speed is increasing + <String id="32">Simon Say ist ein Spiel, wo man ein Folge von Tönen und Farben wiederholen muss. +Stufe Leicht/Mittel/Schwer: Geschwindigkeit erhöht sich -Gameboard design by Mikael Söderström. +Gameboard Design by Mikael Söderström. -Remote play with the colored buttons or -use 2 - 4 - 6 - 8 or arrow keys. +Auf der Fernbedienung die farbigen Tasten, +2 - 4 - 6 - 8 oder die Pfeil Tasten benutzen. -Good luck -Mark Koenig 2008 (kroko)</String> +Viel Glück +Mark König 2008 (kroko)</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml =================================================================== --- trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml 2008-07-13 17:52:07 UTC (rev 1918) +++ trunk/plugins/MySimon/Release/language/MySimon/strings_en.xml 2008-07-14 18:57:36 UTC (rev 1919) @@ -15,7 +15,7 @@ <String id="31">What's Simon Say</String> <String id="32">Simon Say is a game where your object is to repeat a code of tones and colors. -Level Amateur/Normal/Professional: Speed is increasing +Level easy/medium/difficult: Speed is increasing Gameboard design by Mikael Söderström. Modified: trunk/plugins/MySimon/Release/plugins/Windows/MySimon.dll =================================================================== (Binary files differ) Modified: trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2008-07-13 17:52:07 UTC (rev 1918) +++ trunk/plugins/MySimon/Source/SimonSay/MySimon.csproj 2008-07-14 18:57:36 UTC (rev 1919) @@ -28,23 +28,23 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Core, Version=0.9.2.25607, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Core.DLL</HintPath> + <HintPath>..\..\..\..\..\..\Mediaportal\xbmc\bin\Debug\Core.dll</HintPath> <Private>False</Private> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Dialogs, Version=0.9.2.25610, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath> + <HintPath>..\..\..\..\..\..\Mediaportal\xbmc\bin\Debug\plugins\Windows\Dialogs.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> - <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Utils, Version=2.2.6.25604, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath> + <HintPath>..\..\..\..\..\..\Mediaportal\xbmc\bin\Debug\Utils.dll</HintPath> <Private>False</Private> </Reference> </ItemGroup> Modified: trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs 2008-07-13 17:52:07 UTC (rev 1918) +++ trunk/plugins/MySimon/Source/SimonSay/Properties/AssemblyInfo.cs 2008-07-14 18:57:36 UTC (rev 1919) @@ -31,5 +31,5 @@ // // Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern // übernehmen, indem Sie "*" eingeben: -[assembly: AssemblyVersion("0.5.0.0")] -[assembly: AssemblyFileVersion("0.5.0.0")] +[assembly: AssemblyVersion("0.5.1.0")] +[assembly: AssemblyFileVersion("0.5.1.0")] Modified: trunk/plugins/MySimon/readme.txt =================================================================== --- trunk/plugins/MySimon/readme.txt 2008-07-13 17:52:07 UTC (rev 1918) +++ trunk/plugins/MySimon/readme.txt 2008-07-14 18:57:36 UTC (rev 1919) @@ -9,6 +9,11 @@ Simon Say --------- +V0.5.1 + - Mediaportal 1.0 RC2 ready + - Medaiportal 1.0 RC1 crashes with stack overflow in the core + - small language file improvments + V0.5 - MediaPortal 0.2.3.0 ready This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |