You can subscribe to this list here.
| 2007 |
Jan
(36) |
Feb
(79) |
Mar
(123) |
Apr
(95) |
May
(119) |
Jun
(172) |
Jul
(124) |
Aug
(100) |
Sep
(83) |
Oct
(52) |
Nov
(97) |
Dec
(87) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(131) |
Feb
(80) |
Mar
(163) |
Apr
(178) |
May
(73) |
Jun
(54) |
Jul
(106) |
Aug
(118) |
Sep
(50) |
Oct
(125) |
Nov
(100) |
Dec
(99) |
| 2009 |
Jan
(104) |
Feb
(99) |
Mar
(68) |
Apr
(81) |
May
(52) |
Jun
(87) |
Jul
(67) |
Aug
(33) |
Sep
(27) |
Oct
(37) |
Nov
(60) |
Dec
(116) |
| 2010 |
Jan
(82) |
Feb
(79) |
Mar
(38) |
Apr
(50) |
May
(45) |
Jun
(53) |
Jul
(23) |
Aug
(86) |
Sep
(22) |
Oct
(96) |
Nov
(97) |
Dec
(73) |
| 2011 |
Jan
(24) |
Feb
(45) |
Mar
(28) |
Apr
(31) |
May
(42) |
Jun
(25) |
Jul
|
Aug
(12) |
Sep
(28) |
Oct
(13) |
Nov
(43) |
Dec
(13) |
| 2012 |
Jan
(62) |
Feb
(28) |
Mar
(6) |
Apr
(16) |
May
(7) |
Jun
|
Jul
(16) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
| 2013 |
Jan
(5) |
Feb
|
Mar
(34) |
Apr
(9) |
May
(6) |
Jun
(10) |
Jul
(32) |
Aug
(8) |
Sep
(11) |
Oct
(35) |
Nov
(24) |
Dec
(22) |
| 2014 |
Jan
(44) |
Feb
(9) |
Mar
(9) |
Apr
(15) |
May
(25) |
Jun
(34) |
Jul
(16) |
Aug
(11) |
Sep
(7) |
Oct
(6) |
Nov
(1) |
Dec
(12) |
| 2015 |
Jan
(33) |
Feb
(19) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
|
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-25 23:28:19
|
Revision: 446
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=446&view=rev
Author: chef_koch
Date: 2007-05-25 16:28:14 -0700 (Fri, 25 May 2007)
Log Message:
-----------
test2
Removed Paths:
-------------
trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml
Deleted: trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml
===================================================================
--- trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml 2007-05-25 23:27:19 UTC (rev 445)
+++ trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml 2007-05-25 23:28:14 UTC (rev 446)
@@ -1,153 +0,0 @@
-<?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>
- <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>Start</description>
- <type>button</type>
- <id>2</id>
- <onleft>2</onleft>
- <onright>2</onright>
- <onup>6</onup>
- </control>
- <control>
- <description>Level</description>
- <type>button</type>
- <id>3</id>
- <onleft>3</onleft>
- <onright>3</onright>
- </control>
- <control>
- <description>Sounds</description>
- <type>togglebutton</type>
- <id>4</id>
- <onleft>4</onleft>
- <onright>4</onright>
- </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>
- <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>
- <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>
- <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>
\ 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:27:21
|
Revision: 445
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=445&view=rev
Author: chef_koch
Date: 2007-05-25 16:27:19 -0700 (Fri, 25 May 2007)
Log Message:
-----------
test1
Added Paths:
-----------
trunk/plugins/MySimon/Skin/SimpleMP/
trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml
Added: trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml
===================================================================
--- trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml (rev 0)
+++ trunk/plugins/MySimon/Skin/SimpleMP/MySimon.xml 2007-05-25 23:27:19 UTC (rev 445)
@@ -0,0 +1,153 @@
+<?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>
+ <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>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>6</onup>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>3</id>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ </control>
+ <control>
+ <description>Sounds</description>
+ <type>togglebutton</type>
+ <id>4</id>
+ <onleft>4</onleft>
+ <onright>4</onright>
+ </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>
+ <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>
+ <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>
+ <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>
\ 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: <chr...@us...> - 2007-05-25 17:34:07
|
Revision: 444
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=444&view=rev
Author: chreekar
Date: 2007-05-25 10:34:06 -0700 (Fri, 25 May 2007)
Log Message:
-----------
Added line in Readme.txt about translating title of plugin
Modified Paths:
--------------
trunk/plugins/MyEmulators/Readme.txt
Modified: trunk/plugins/MyEmulators/Readme.txt
===================================================================
--- trunk/plugins/MyEmulators/Readme.txt 2007-05-25 17:29:51 UTC (rev 443)
+++ trunk/plugins/MyEmulators/Readme.txt 2007-05-25 17:34:06 UTC (rev 444)
@@ -124,7 +124,9 @@
Line 9 - No grade
Note that the setup is not translated, only
-the buttons in the main program.
+the buttons in the main program. If you want
+to translate the title of the plugin, you
+can do that from the plugin setup.
============================================
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-25 17:29:54
|
Revision: 443
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=443&view=rev
Author: chreekar
Date: 2007-05-25 10:29:51 -0700 (Fri, 25 May 2007)
Log Message:
-----------
The header label is now changed to match the string "shown name" set up in Configuration
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.resx
trunk/plugins/MyEmulators/output.rar
trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -20,6 +20,9 @@
private int previouslySelectedIndex;
//Translation strings
private String[] translation = { "View: List", "View: Large Icons", "View: Icons", "Most played", "Recently played", "Top graded", "Select grade for this game", "Set grade to", "No grade" };
+ //The header label
+ [SkinControlAttribute(9)] protected GUILabelControl headerText = null;
+
//The emulator/rom list control
[SkinControlAttribute(50)] protected GUIFacadeControl lstEmulators = null;
//The buttons in the menu to the left
@@ -162,6 +165,7 @@
stars[5] = starimage6; stars[6] = starimage7; stars[7] = starimage8; stars[8] = starimage9; stars[9] = starimage10;
displayStars(0);
+ headerText.Label = Options.getStringOption("shown_name");
text_description.Label = String.Empty;
button_mostPlayed.Label = translation[3];
button_recentlyPlayed.Label = translation[4];
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -48,6 +48,8 @@
this.Dateplayed = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ROM_DB_List_Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.label3 = new System.Windows.Forms.Label();
this.display_desc = new System.Windows.Forms.CheckBox();
this.display_stars = new System.Windows.Forms.CheckBox();
this.shown_name = new System.Windows.Forms.TextBox();
@@ -55,8 +57,6 @@
this.shutdownonload = new System.Windows.Forms.CheckBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.apply = new System.Windows.Forms.Button();
- this.label3 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -259,6 +259,25 @@
this.tabPage3.Text = "Options";
this.tabPage3.UseVisualStyleBackColor = true;
//
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "English (default)"});
+ this.comboBox1.Location = new System.Drawing.Point(72, 112);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(121, 21);
+ this.comboBox1.TabIndex = 9;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(8, 116);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(58, 13);
+ this.label3.TabIndex = 8;
+ this.label3.Text = "Language:";
+ //
// display_desc
//
this.display_desc.AutoSize = true;
@@ -282,6 +301,7 @@
// shown_name
//
this.shown_name.Location = new System.Drawing.Point(156, 32);
+ this.shown_name.MaxLength = 30;
this.shown_name.Name = "shown_name";
this.shown_name.Size = new System.Drawing.Size(195, 20);
this.shown_name.TabIndex = 5;
@@ -328,25 +348,6 @@
this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click);
//
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(8, 116);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(58, 13);
- this.label3.TabIndex = 8;
- this.label3.Text = "Language:";
- //
- // comboBox1
- //
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "English (default)"});
- this.comboBox1.Location = new System.Drawing.Point(72, 112);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(121, 21);
- this.comboBox1.TabIndex = 9;
- //
// setupForm
//
this.AcceptButton = this.save;
@@ -402,8 +403,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn ROM_DB_List_Description;
private System.Windows.Forms.CheckBox display_desc;
private System.Windows.Forms.CheckBox display_stars;
- private static System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBox1;
+ private static System.Windows.Forms.ListBox listBox1;
}
}
\ No newline at end of file
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -39,7 +39,10 @@
{
//Save options
Options.updateBoolOption("shutdownonlaunch", shutdownonload.Checked);
- Options.updateStringOption("shown_name", shown_name.Text);
+ if (shown_name.Text.Length > 0)
+ {
+ Options.updateStringOption("shown_name", shown_name.Text);
+ }
Options.updateBoolOption("display_stars", display_stars.Checked);
Options.updateBoolOption("display_desc", display_desc.Checked);
//Save language
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.resx
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.resx 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.resx 2007-05-25 17:29:51 UTC (rev 443)
@@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 17</value>
- </metadata>
<metadata name="ROM_DB_List_Path.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -141,27 +138,6 @@
<metadata name="ROM_DB_List_Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="ROM_DB_List_Path.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Emulator.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Grade.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="Dateplayed.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
Modified: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml 2007-05-25 17:29:51 UTC (rev 443)
@@ -4,12 +4,27 @@
<id>5001</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
- <define>#header.label:My Emulators</define>
+ <define>#header.label:</define>
<define>#header.hover:hover_myEmulators.png</define>
<define>#header.image:myEmulators_logo.png</define>
<controls>
<import>common.window.xml</import>
+ <!-- HEADER LABEL -->
+ <control>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>label</type>
+ <id>9</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
+
<!-- SIDE BUTTONS -->
<control>
<type>group</type>
Modified: trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml 2007-05-25 17:29:51 UTC (rev 443)
@@ -4,11 +4,26 @@
<id>5001</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
- <define>#header.label:My Emulators</define>
+ <define>#header.label:</define>
<define>#header.hover:hover_myEmulators.png</define>
<define>#header.image:myEmulators_logo.png</define>
<controls>
<import>common.window.xml</import>
+
+ <!-- HEADER LABEL -->
+ <control>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>label</type>
+ <id>9</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
<!-- SIDE BUTTONS -->
<control>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-25 16:04:33
|
Revision: 442
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=442&view=rev
Author: chreekar
Date: 2007-05-25 09:04:28 -0700 (Fri, 25 May 2007)
Log Message:
-----------
Correct Encoding when reading translation strings which allows special characters
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/output.rar
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-24 22:13:07 UTC (rev 441)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-25 16:04:28 UTC (rev 442)
@@ -137,7 +137,7 @@
Log.Info("My Emulators - Language is set to {0}", Options.getStringOption("language"));
if (Options.getStringOption("language") != "English")
{
- StreamReader translationFile = new StreamReader("language\\" + Options.getStringOption("language") + "\\myEmulators.txt");
+ StreamReader translationFile = new StreamReader("language\\" + Options.getStringOption("language") + "\\myEmulators.txt", Encoding.Default);
int i = 0;
for (; i < translation.Length; i++)
{
Modified: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-24 22:13:42
|
Revision: 441
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=441&view=rev
Author: chef_koch
Date: 2007-05-24 15:13:07 -0700 (Thu, 24 May 2007)
Log Message:
-----------
obsolete file
Removed Paths:
-------------
trunk/plugins/My Connect4/Source/MyConnect4.suo
Deleted: trunk/plugins/My Connect4/Source/MyConnect4.suo
===================================================================
(Binary files differ)
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:43:11
|
Revision: 440
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=440&view=rev
Author: chef_koch
Date: 2007-05-24 14:42:48 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/plugins/My Connect4/Skin/Blue Two/
trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml
trunk/plugins/My Connect4/Skin/SimpleMP/
trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml
Removed Paths:
-------------
trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml
trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml
trunk/plugins/My Connect4/Skin/Skin Blue Two/
trunk/plugins/My Connect4/Skin/Skin SimpleMP/
Copied: trunk/plugins/My Connect4/Skin/Blue Two (from rev 435, trunk/plugins/My Connect4/Skin/Skin Blue Two)
Deleted: trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-24 20:29:18 UTC (rev 435)
+++ trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml 2007-05-24 21:42:48 UTC (rev 440)
@@ -1,602 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?>
-<window>
- <id>22031969</id>
- <defaultcontrol>2</defaultcontrol>
- <allowoverlay>yes</allowoverlay>
- <autohidetopbar>yes</autohidetopbar>
- <controls>
- <import>common.time.xml</import>
- <control>
- <description>BackGround</description>
- <type>image</type>
- <id>10</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>11</id>
- <posX>250</posX>
- <posY>70</posY>
- <label>#header_label</label>
- <font>font16</font>
- <align>right</align>
- <textcolor>White</textcolor>
- <animation effect="fade" time="200">WindowOpen</animation>
- <animation effect="fade" time="200">WindowClose</animation>
- </control>
- <control>
- <description>button group</description>
- <type>group</type>
- <animation effect="fade" time="250">WindowOpen</animation>
- <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>
- <control>
- <description>Start</description>
- <type>button</type>
- <id>2</id>
- <posX>60</posX>
- <posY>97</posY>
- <onleft>2</onleft>
- <onright>301</onright>
- <onup>7</onup>
- <ondown>3</ondown>
- </control>
- <control>
- <description>Mode</description>
- <type>button</type>
- <id>3</id>
- <posX>60</posX>
- <posY>131</posY>
- <onleft>3</onleft>
- <onright>301</onright>
- <onup>2</onup>
- <ondown>4</ondown>
- </control>
- <control>
- <description>Level</description>
- <type>button</type>
- <id>4</id>
- <posX>60</posX>
- <posY>165</posY>
- <onleft>4</onleft>
- <onright>301</onright>
- <onup>3</onup>
- <ondown>7</ondown>
- </control>
- <control>
- <description>Round</description>
- <type>label</type>
- <id>5</id>
- <posX>70</posX>
- <posY>205</posY>
- <label>#Round</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Player: / GameOver</description>
- <type>label</type>
- <id>6</id>
- <posX>70</posX>
- <posY>240</posY>
- <label>#Player</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>What is this?</description>
- <type>button</type>
- <id>7</id>
- <posX>60</posX>
- <posY>270</posY>
- <onleft>7</onleft>
- <onright>301</onright>
- <onup>4</onup>
- <ondown>2</ondown>
- </control>
- </control>
- <control>
- <description>BackGround Game</description>
- <type>image</type>
- <id>15</id>
- <posX>260</posX>
- <posY>120</posY>
- <width>440</width>
- <height>380</height>
- <texture>MyConnBack.png</texture>
- <animation effect="fade" time="250">WindowOpen</animation>
- <animation effect="fade" time="500">WindowClose</animation>
- <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
- <animation effect="slide" time="400" end="800,0">WindowClose</animation>
- </control>
- <control>
- <description>game group</description>
- <type>group</type>
- <animation effect="fade" time="250">WindowOpen</animation>
- <animation effect="fade" time="500">WindowClose</animation>
- <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
- <animation effect="slide" time="400" end="800,0">WindowClose</animation>
- <control>
- <type>image</type>
- <id>101</id>
- <posX>280</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>102</id>
- <posX>340</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>103</id>
- <posX>400</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>104</id>
- <posX>460</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>105</id>
- <posX>520</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>106</id>
- <posX>580</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>107</id>
- <posX>640</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>111</id>
- <posX>280</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>112</id>
- <posX>340</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>113</id>
- <posX>400</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>114</id>
- <posX>460</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>115</id>
- <posX>520</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>116</id>
- <posX>580</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>117</id>
- <posX>640</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>121</id>
- <posX>280</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>122</id>
- <posX>340</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>123</id>
- <posX>400</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>124</id>
- <posX>460</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>125</id>
- <posX>520</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>126</id>
- <posX>580</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>127</id>
- <posX>640</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>131</id>
- <posX>280</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>132</id>
- <posX>340</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>133</id>
- <posX>400</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>134</id>
- <posX>460</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>135</id>
- <posX>520</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>136</id>
- <posX>580</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>137</id>
- <posX>640</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>141</id>
- <posX>280</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>142</id>
- <posX>340</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>143</id>
- <posX>400</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>144</id>
- <posX>460</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>145</id>
- <posX>520</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>146</id>
- <posX>580</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>147</id>
- <posX>640</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>151</id>
- <posX>280</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>152</id>
- <posX>340</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>153</id>
- <posX>400</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>154</id>
- <posX>460</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>155</id>
- <posX>520</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>156</id>
- <posX>580</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>157</id>
- <posX>640</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_7</texture>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>18</id>
- <posX>260</posX>
- <posY>510</posY>
- <label>#Status</label>
- <font>font16</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Pointer 01</description>
- <type>button</type>
- <id>301</id>
- <posX>280</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>2</onleft>
- <onright>302</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 02</description>
- <type>button</type>
- <id>302</id>
- <posX>340</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>301</onleft>
- <onright>303</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 03</description>
- <type>button</type>
- <id>303</id>
- <posX>400</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>302</onleft>
- <onright>304</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 04</description>
- <type>button</type>
- <id>304</id>
- <posX>460</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>303</onleft>
- <onright>305</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 05</description>
- <type>button</type>
- <id>305</id>
- <posX>520</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>304</onleft>
- <onright>306</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 06</description>
- <type>button</type>
- <id>306</id>
- <posX>580</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>305</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 07</description>
- <type>button</type>
- <id>307</id>
- <posX>640</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>306</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- </control>
- </controls>
-</window>
Copied: trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml (from rev 439, trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml)
===================================================================
--- trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml (rev 0)
+++ trunk/plugins/My Connect4/Skin/Blue Two/MyConnect4.xml 2007-05-24 21:42:48 UTC (rev 440)
@@ -0,0 +1,602 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>22031969</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>BackGround</description>
+ <type>image</type>
+ <id>10</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>11</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>#header_label</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
+ <control>
+ <description>button group</description>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <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>
+ <control>
+ <description>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <onleft>2</onleft>
+ <onright>301</onright>
+ <onup>7</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>Mode</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <onleft>3</onleft>
+ <onright>301</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <onleft>4</onleft>
+ <onright>301</onright>
+ <onup>3</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>Round</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>205</posY>
+ <label>#Round</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>White</textcolor>
+ </control>
+ <control>
+ <description>Player: / GameOver</description>
+ <type>label</type>
+ <id>6</id>
+ <posX>70</posX>
+ <posY>240</posY>
+ <label>#Player</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>White</textcolor>
+ </control>
+ <control>
+ <description>What is this?</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>60</posX>
+ <posY>270</posY>
+ <onleft>7</onleft>
+ <onright>301</onright>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>BackGround Game</description>
+ <type>image</type>
+ <id>15</id>
+ <posX>260</posX>
+ <posY>120</posY>
+ <width>440</width>
+ <height>380</height>
+ <texture>MyConnBack.png</texture>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">WindowClose</animation>
+ </control>
+ <control>
+ <description>game group</description>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">WindowClose</animation>
+ <control>
+ <type>image</type>
+ <id>101</id>
+ <posX>280</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>102</id>
+ <posX>340</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>103</id>
+ <posX>400</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>104</id>
+ <posX>460</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>105</id>
+ <posX>520</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>106</id>
+ <posX>580</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>107</id>
+ <posX>640</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>111</id>
+ <posX>280</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>112</id>
+ <posX>340</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>113</id>
+ <posX>400</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>114</id>
+ <posX>460</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>115</id>
+ <posX>520</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>116</id>
+ <posX>580</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>117</id>
+ <posX>640</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>121</id>
+ <posX>280</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>122</id>
+ <posX>340</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>123</id>
+ <posX>400</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>124</id>
+ <posX>460</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>125</id>
+ <posX>520</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>126</id>
+ <posX>580</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>127</id>
+ <posX>640</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>131</id>
+ <posX>280</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>132</id>
+ <posX>340</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>133</id>
+ <posX>400</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>134</id>
+ <posX>460</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>135</id>
+ <posX>520</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>136</id>
+ <posX>580</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>137</id>
+ <posX>640</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>141</id>
+ <posX>280</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>142</id>
+ <posX>340</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>143</id>
+ <posX>400</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>144</id>
+ <posX>460</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>145</id>
+ <posX>520</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>146</id>
+ <posX>580</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>147</id>
+ <posX>640</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>151</id>
+ <posX>280</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>152</id>
+ <posX>340</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>153</id>
+ <posX>400</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>154</id>
+ <posX>460</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>155</id>
+ <posX>520</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>156</id>
+ <posX>580</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>157</id>
+ <posX>640</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_7</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>18</id>
+ <posX>260</posX>
+ <posY>510</posY>
+ <label>#Status</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Pointer 01</description>
+ <type>button</type>
+ <id>301</id>
+ <posX>280</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>2</onleft>
+ <onright>302</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 02</description>
+ <type>button</type>
+ <id>302</id>
+ <posX>340</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>301</onleft>
+ <onright>303</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 03</description>
+ <type>button</type>
+ <id>303</id>
+ <posX>400</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>302</onleft>
+ <onright>304</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 04</description>
+ <type>button</type>
+ <id>304</id>
+ <posX>460</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>303</onleft>
+ <onright>305</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 05</description>
+ <type>button</type>
+ <id>305</id>
+ <posX>520</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>304</onleft>
+ <onright>306</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 06</description>
+ <type>button</type>
+ <id>306</id>
+ <posX>580</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>305</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 07</description>
+ <type>button</type>
+ <id>307</id>
+ <posX>640</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>306</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Copied: trunk/plugins/My Connect4/Skin/SimpleMP (from rev 435, trunk/plugins/My Connect4/Skin/Skin SimpleMP)
Deleted: trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml 2007-05-24 20:29:18 UTC (rev 435)
+++ trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml 2007-05-24 21:42:48 UTC (rev 440)
@@ -1,613 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?>
-<window>
- <id>22031969</id>
- <defaultcontrol>2</defaultcontrol>
- <allowoverlay>yes</allowoverlay>
- <autohidetopbar>yes</autohidetopbar>
- <controls>
- <import>common.time.xml</import>
- <control>
- <description>BackGround</description>
- <type>image</type>
- <id>10</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>11</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>
- <type>group</type>
- <description>group element</description>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- <control>
- <description>Start</description>
- <type>button</type>
- <id>2</id>
- <posX>60</posX>
- <posY>97</posY>
- <label>Start</label>
- <onleft>2</onleft>
- <onright>301</onright>
- <onup>7</onup>
- <ondown>3</ondown>
- </control>
- <control>
- <description>Mode</description>
- <type>button</type>
- <id>3</id>
- <posX>60</posX>
- <posY>131</posY>
- <label>Mode: Play vs Player</label>
- <onleft>3</onleft>
- <onright>3</onright>
- <onup>2</onup>
- <ondown>4</ondown>
- </control>
- <control>
- <description>Level</description>
- <type>button</type>
- <id>4</id>
- <posX>60</posX>
- <posY>165</posY>
- <label>Level: Amateur</label>
- <onleft>4</onleft>
- <onright>4</onright>
- <onup>3</onup>
- <ondown>7</ondown>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>5</id>
- <posX>70</posX>
- <posY>205</posY>
- <label>#Round</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>6</id>
- <posX>70</posX>
- <posY>240</posY>
- <label>#Player</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Whatsthis</description>
- <type>button</type>
- <id>7</id>
- <posX>60</posX>
- <posY>270</posY>
- <label>What's this?</label>
- <onleft>7</onleft>
- <onright>301</onright>
- <onup>4</onup>
- <ondown>2</ondown>
- </control>
- </control>
- <control>
- <description>BackGround Game</description>
- <type>image</type>
- <id>15</id>
- <posX>260</posX>
- <posY>120</posY>
- <width>440</width>
- <height>380</height>
- <texture>MyConnBack.png</texture>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- </control>
- <control>
- <type>group</type>
- <description>group element</description>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- <control>
- <type>image</type>
- <id>101</id>
- <posX>280</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>102</id>
- <posX>340</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>103</id>
- <posX>400</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>104</id>
- <posX>460</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>105</id>
- <posX>520</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>106</id>
- <posX>580</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>107</id>
- <posX>640</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>111</id>
- <posX>280</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>112</id>
- <posX>340</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>113</id>
- <posX>400</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>114</id>
- <posX>460</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>115</id>
- <posX>520</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>116</id>
- <posX>580</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>117</id>
- <posX>640</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>121</id>
- <posX>280</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>122</id>
- <posX>340</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>123</id>
- <posX>400</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>124</id>
- <posX>460</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>125</id>
- <posX>520</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>126</id>
- <posX>580</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>127</id>
- <posX>640</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>131</id>
- <posX>280</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>132</id>
- <posX>340</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>133</id>
- <posX>400</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>134</id>
- <posX>460</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>135</id>
- <posX>520</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>136</id>
- <posX>580</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>137</id>
- <posX>640</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>141</id>
- <posX>280</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>142</id>
- <posX>340</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>143</id>
- <posX>400</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>144</id>
- <posX>460</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>145</id>
- <posX>520</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>146</id>
- <posX>580</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>147</id>
- <posX>640</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_7</texture>
- </control>
- <control>
- <type>image</type>
- <id>151</id>
- <posX>280</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>152</id>
- <posX>340</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>153</id>
- <posX>400</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>154</id>
- <posX>460</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>155</id>
- <posX>520</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>156</id>
- <posX>580</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>157</id>
- <posX>640</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_7</texture>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>18</id>
- <posX>260</posX>
- <posY>510</posY>
- <label>#Status</label>
- <font>font16</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Pointer 01</description>
- <type>button</type>
- <id>301</id>
- <posX>280</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>2</onleft>
- <onright>302</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 02</description>
- <type>button</type>
- <id>302</id>
- <posX>340</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>301</onleft>
- <onright>303</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 03</description>
- <type>button</type>
- <id>303</id>
- <posX>400</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>302</onleft>
- <onright>304</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 04</description>
- <type>button</type>
- <id>304</id>
- <posX>460</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>303</onleft>
- <onright>305</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 05</description>
- <type>button</type>
- <id>305</id>
- <posX>520</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>304</onleft>
- <onright>306</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 06</description>
- <type>button</type>
- <id>306</id>
- <posX>580</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>305</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 07</description>
- <type>button</type>
- <id>307</id>
- <posX>640</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>306</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- </control>
- </controls>
-</window>
Copied: trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml (from rev 439, trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml)
===================================================================
--- trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml (rev 0)
+++ trunk/plugins/My Connect4/Skin/SimpleMP/MyConnect4.xml 2007-05-24 21:42:48 UTC (rev 440)
@@ -0,0 +1,613 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>22031969</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>BackGround</description>
+ <type>image</type>
+ <id>10</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>11</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>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <description>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>Start</label>
+ <onleft>2</onleft>
+ <onright>301</onright>
+ <onup>7</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>Mode</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>Mode: Play vs Player</label>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>Level: Amateur</label>
+ <onleft>4</onleft>
+ <onright>4</onright>
+ <onup>3</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>205</posY>
+ <label>#Round</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>6</id>
+ <posX>70</posX>
+ <posY>240</posY>
+ <label>#Player</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Whatsthis</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>60</posX>
+ <posY>270</posY>
+ <label>What's this?</label>
+ <onleft>7</onleft>
+ <onright>301</onright>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>BackGround Game</description>
+ <type>image</type>
+ <id>15</id>
+ <posX>260</posX>
+ <posY>120</posY>
+ <width>440</width>
+ <height>380</height>
+ <texture>MyConnBack.png</texture>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <type>image</type>
+ <id>101</id>
+ <posX>280</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>102</id>
+ <posX>340</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>103</id>
+ <posX>400</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>104</id>
+ <posX>460</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>105</id>
+ <posX>520</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>106</id>
+ <posX>580</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>107</id>
+ <posX>640</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>111</id>
+ <posX>280</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>112</id>
+ <posX>340</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>113</id>
+ <posX>400</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>114</id>
+ <posX>460</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>115</id>
+ <posX>520</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>116</id>
+ <posX>580</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>117</id>
+ <posX>640</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>121</id>
+ <posX>280</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>122</id>
+ <posX>340</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>123</id>
+ <posX>400</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>124</id>
+ <posX>460</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>125</id>
+ <posX>520</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ ...
[truncated message content] |
|
From: <che...@us...> - 2007-05-24 21:39:44
|
Revision: 439
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=439&view=rev
Author: chef_koch
Date: 2007-05-24 14:39:34 -0700 (Thu, 24 May 2007)
Log Message:
-----------
typos
Modified Paths:
--------------
trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
Modified: trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-24 21:35:25 UTC (rev 438)
+++ trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-24 21:39:34 UTC (rev 439)
@@ -78,7 +78,7 @@
<label>#Round</label>
<font>font12</font>
<align>Left</align>
- <textcolor>ffffffff</textcolor>
+ <textcolor>White</textcolor>
</control>
<control>
<description>Player: / GameOver</description>
@@ -89,7 +89,7 @@
<label>#Player</label>
<font>font12</font>
<align>Left</align>
- <textcolor>ffffffff</textcolor>
+ <textcolor>White</textcolor>
</control>
<control>
<description>What is this?</description>
@@ -599,4 +599,4 @@
</control>
</control>
</controls>
-</window>
+</window>
\ 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 21:35:27
|
Revision: 438
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=438&view=rev
Author: chef_koch
Date: 2007-05-24 14:35:25 -0700 (Thu, 24 May 2007)
Log Message:
-----------
fixed position of colored textures
Modified Paths:
--------------
trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml
Modified: trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml
===================================================================
--- trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml 2007-05-24 21:16:06 UTC (rev 437)
+++ trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml 2007-05-24 21:35:25 UTC (rev 438)
@@ -95,8 +95,8 @@
<control>
<type>button</type>
<id>101</id>
- <posX>300</posX>
- <posY>80</posY>
+ <posX>380</posX>
+ <posY>160</posY>
<width>172</width>
<height>137</height>
<textureFocus>#Senso1</textureFocus>
@@ -109,8 +109,8 @@
<control>
<type>button</type>
<id>102</id>
- <posX>386</posX>
- <posY>130</posY>
+ <posX>466</posX>
+ <posY>210</posY>
<width>137</width>
<height>172</height>
<textureFocus>#Senso2</textureFocus>
@@ -123,8 +123,8 @@
<control>
<type>button</type>
<id>103</id>
- <posX>249</posX>
- <posY>131</posY>
+ <posX>329</posX>
+ <posY>211</posY>
<width>137</width>
<height>172</height>
<textureFocus>#Senso3</textureFocus>
@@ -137,8 +137,8 @@
<control>
<type>button</type>
<id>104</id>
- <posX>300</posX>
- <posY>217</posY>
+ <posX>380</posX>
+ <posY>297</posY>
<width>172</width>
<height>137</height>
<textureFocus>#Senso4</textureFocus>
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-24 21:11:24
|
Revision: 436
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=436&view=rev
Author: chef_koch
Date: 2007-05-24 14:11:19 -0700 (Thu, 24 May 2007)
Log Message:
-----------
added skinfile for b2
Added Paths:
-----------
trunk/plugins/MySimon/Skin/BlueTwo/
trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml
Added: trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml
===================================================================
--- trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml (rev 0)
+++ trunk/plugins/MySimon/Skin/BlueTwo/MySimon.xml 2007-05-24 21:11:19 UTC (rev 436)
@@ -0,0 +1,152 @@
+<?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>10</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>11</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>#header_label</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
+ <control>
+ <description>button group</description>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <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>
+ <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>
+ <id>4</id>
+ <posX>70</posX>
+ <posY>170</posY>
+ <label>#Round</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>White</textcolor>
+ </control>
+ <control>
+ <description>Player: / GameOver</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>204</posY>
+ <label>#Player</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>White</textcolor>
+ </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>
+ <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="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">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="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">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="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">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="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0">WindowClose</animation>
+ </control>
+ </controls>
+</window>
\ 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: <kro...@us...> - 2007-05-24 20:29:25
|
Revision: 435
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=435&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:29:18 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/plugins/My Streamradio/Release/
trunk/plugins/My Streamradio/Release/Radio/
trunk/plugins/My Streamradio/Release/Radio/106!8.asx
trunk/plugins/My Streamradio/Release/Radio/1Live.asx
trunk/plugins/My Streamradio/Release/Radio/Antenne Th?\195?\188ringen.asx
trunk/plugins/My Streamradio/Release/Radio/Bremen4.asx
trunk/plugins/My Streamradio/Release/Radio/Energy HH.asx
trunk/plugins/My Streamradio/Release/Radio/FFN.asx
trunk/plugins/My Streamradio/Release/Radio/HR3.asx
trunk/plugins/My Streamradio/Release/Radio/Hitradio RTL.asx
trunk/plugins/My Streamradio/Release/Radio/KissFM.asx
trunk/plugins/My Streamradio/Release/Radio/MDR Jump.asx
trunk/plugins/My Streamradio/Release/Radio/N-Joy.asx
trunk/plugins/My Streamradio/Release/Radio/NDR2.asx
trunk/plugins/My Streamradio/Release/Radio/PSR.asx
trunk/plugins/My Streamradio/Release/Radio/RMNrelax.asx
trunk/plugins/My Streamradio/Release/Radio/RSH.asx
trunk/plugins/My Streamradio/Release/Radio/Radio Hamburg.asx
trunk/plugins/My Streamradio/Release/Radio/Radio Regenbogen.asx
trunk/plugins/My Streamradio/Release/Radio/bigFM.asx
trunk/plugins/My Streamradio/Release/Radio/delta radio.asx
trunk/plugins/My Streamradio/Release/Skin/
trunk/plugins/My Streamradio/Release/Skin/mystreamradio.xml
trunk/plugins/My Streamradio/Release/Thumbs/
trunk/plugins/My Streamradio/Release/Thumbs/Radio/
trunk/plugins/My Streamradio/Release/Thumbs/Radio/106!8.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/1Live.PNG
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Antenne Th?\195?\188ringen.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Bremen4.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Energy HH.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/FFN.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/HR3.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Hitradio RTL.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/KissFM.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/MDR Jump.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/N-Joy.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/NDR2.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/PSR.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/RMNrelax.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/RSH.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Radio Hamburg.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/Radio Regenbogen.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/bigFM.png
trunk/plugins/My Streamradio/Release/Thumbs/Radio/delta radio.png
trunk/plugins/My Streamradio/Source/
trunk/plugins/My Streamradio/Source/MyStreamRadio/
trunk/plugins/My Streamradio/Source/MyStreamRadio/GUIRadio.cs
trunk/plugins/My Streamradio/Source/MyStreamRadio/MyStreamRadio.csproj
trunk/plugins/My Streamradio/Source/MyStreamRadio/MyStreamRadio.csproj.user
trunk/plugins/My Streamradio/Source/MyStreamRadio/Properties/
trunk/plugins/My Streamradio/Source/MyStreamRadio/Properties/AssemblyInfo.cs
trunk/plugins/My Streamradio/Source/MyStreamRadio/StreamRadio.png
trunk/plugins/My Streamradio/Source/MyStreamRadio/StreamRadioDisabled.png
trunk/plugins/My Streamradio/Source/MyStreamRadio/obj/
trunk/plugins/My Streamradio/Source/MyStreamRadio/obj/Debug/
trunk/plugins/My Streamradio/Source/MyStreamRadio/obj/Debug/TempPE/
trunk/plugins/My Streamradio/Source/MyStreamRadio.sln
trunk/plugins/My Streamradio/Source/MyStreamRadio.suo
Added: trunk/plugins/My Streamradio/Release/Radio/106!8.asx
===================================================================
--- trunk/plugins/My Streamradio/Release/Radio/106!8.asx (rev 0)
+++ trunk/plugins/My Streamradio/Release/Radio/106!8.asx 2007-05-24 20:29:18 UTC (rev 435)
@@ -0,0 +1,5 @@
+<ASX VERSION="3"><TITLE>StreamRadio</title>
+<ENTRY>
+ <Ref href = "http://62.75.132.19:80" />
+</ENTRY>
+</ASX>
\ No newline at end of file
Added: trunk/plugins/My Streamradio/Release/Radio/1Live.asx
===================================================================
--- trunk/plugins/My Streamradio/Release/Radio/1Live.asx (rev 0)
+++ trunk/plugins/My Streamradio/Release/Radio/1Live.asx 2007-05-24 20:29:18 UTC (rev 435)
@@ -0,0 +1,5 @@
+<ASX VERSION="3"><TITLE>StreamRadio</title>
+<ENTRY>
+ <Ref href = "http://www.wdr.de/wdrlive/media/einslive-wm32.asx" />
+</ENTRY>
+</ASX>
\ No newline at end of file
Added: trunk/plugins/My Streamradio/Release/Radio/Antenne Th?\195?\188ringen.asx
===================================================================
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-24 20:24:32
|
Revision: 434
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=434&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:24:27 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Created folder remotely
Added Paths:
-----------
trunk/plugins/My Streamradio/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-24 20:13:29
|
Revision: 433
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=433&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:13:23 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Version 0.1
Added Paths:
-----------
trunk/plugins/My Minesweeper/Release/
trunk/plugins/My Minesweeper/Release/Skin/
trunk/plugins/My Minesweeper/Release/Skin/MyMinesweeper.xml
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bomb.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bombexplode.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomborder.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomleftcorner.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomrightcorner.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8sel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8unsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/leftborder.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbom.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbomsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmark.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmarksel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/rightborder.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topborder.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topleftcorner.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/toprightcorner.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/unchecksel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/uncheckunsel.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/cool.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/ohno.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/sad.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/smile.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/hover_my_minesweeper.png
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/bomb.wav
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/highscore.wav
trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/tick.wav
trunk/plugins/My Minesweeper/Source/
trunk/plugins/My Minesweeper/Source/MyMinesweeper/
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.cs
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.csproj
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.csproj.user
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/Properties/
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/Properties/AssemblyInfo.cs
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/minesweeper.png
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/minesweeperDisabled.png
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper.sln
trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper.suo
trunk/plugins/My Minesweeper/minesweeper.jpg
trunk/plugins/My Minesweeper/readme.txt
Added: trunk/plugins/My Minesweeper/Release/Skin/MyMinesweeper.xml
===================================================================
--- trunk/plugins/My Minesweeper/Release/Skin/MyMinesweeper.xml (rev 0)
+++ trunk/plugins/My Minesweeper/Release/Skin/MyMinesweeper.xml 2007-05-24 20:13:23 UTC (rev 433)
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>32327501</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>Minesweeper label</description>
+ <type>label</type>
+ <posX>55</posX>
+ <posY>20</posY>
+ <align>left</align>
+ <font>font48</font>
+ <label>Minesweeper</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>250</posX>
+ <posY>70</posY>
+ <label>Minesweeper</label>
+ <font>font16</font>
+ <align>right</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>21</onright>
+ <onup>8</onup>
+ <ondown>4</ondown>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>Level: Amateur</label>
+ <onleft>4</onleft>
+ <onright>21</onright>
+ <onup>2</onup>
+ <ondown>8</ondown>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <description>Smily</description>
+ <type>image</type>
+ <id>1</id>
+ <posX>60</posX>
+ <posY>185</posY>
+ <width>60</width>
+ <height>60</height>
+ <texture>#minesweeper_smiley</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>264</posY>
+ <label>#minesweeper_bombs</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>6</id>
+ <posX>70</posX>
+ <posY>298</posY>
+ <label>#minesweeper_seconds</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>7</id>
+ <posX>70</posX>
+ <posY>332</posY>
+ <label>#minesweeper_record</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>8</id>
+ <posX>60</posX>
+ <posY>361</posY>
+ <label>What's this?</label>
+ <onleft>8</onleft>
+ <onright>21</onright>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+
+ <control>
+ <description>hidden hex</description>
+ <type>image</type>
+ <id>1200</id>
+ <posX>280</posX>
+ <posY>120</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture>\Minesweeper\Board\topleftcorner.jpg</texture>
+ </control>
+ </controls>
+</window>
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bomb.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bomb.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bombexplode.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bombexplode.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomborder.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomborder.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomleftcorner.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomleftcorner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomrightcorner.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/bottomrightcorner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check0unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check1unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check2unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check3unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check4unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check5unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check6unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check7unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8sel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8sel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8unsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/check8unsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/leftborder.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/leftborder.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbom.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbom.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbomsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/markedasbomsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmark.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmark.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmarksel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/questionmarksel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/rightborder.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/rightborder.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topborder.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topborder.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topleftcorner.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/topleftcorner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/toprightcorner.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/toprightcorner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/unchecksel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/unchecksel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/uncheckunsel.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/Board/uncheckunsel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/cool.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/cool.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/ohno.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/ohno.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/sad.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/sad.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/smile.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/Minesweeper/smile.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/hover_my_minesweeper.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Media/hover_my_minesweeper.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/bomb.wav
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/bomb.wav
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/highscore.wav
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/highscore.wav
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/tick.wav
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Minesweeper/Release/Skin/SimpleMP/Sounds/tick.wav
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.cs
===================================================================
--- trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.cs (rev 0)
+++ trunk/plugins/My Minesweeper/Source/MyMinesweeper/MyMinesweeper/MyMinesweeper.cs 2007-05-24 20:13:23 UTC (rev 433)
@@ -0,0 +1,1065 @@
+#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 System.Drawing;
+
+using MediaPortal.GUI.Library;
+using MediaPortal.Dialogs;
+using MediaPortal.Util;
+using MediaPortal.Configuration;
+
+namespace MediaPortal.GUI.MyMinesweeper
+{
+ [PluginIcons("MyMinesweeper.minesweeper.png", "MyMinesweeper.minesweeperDisabled.png")]
+ public class MyMinesweeper : GUIWindow, ISetupForm
+ {
+ #region SkinControl
+
+ [SkinControlAttribute(2)]
+ protected GUIButtonControl BtnStart = null;
+ [SkinControlAttribute(4)]
+ protected GUIButtonControl BtnLevel = null;
+ [SkinControlAttribute(8)]
+ protected GUIButtonControl BtnWhatsThis = null;
+
+ #endregion
+
+ #region Private variables
+
+ string Level = "Am"; // Choosen level
+ bool GameOver = false; // not game over
+ bool GameON = false; // Game is on
+
+ int[,] board = new int[30, 30];
+ int[,] bombs = new int[30, 30];
+ bool initBoard = false;
+
+ int bx = 10;
+ int by = 10;
+ int bcnt = 10;
+
+ int time = 0;
+ string time_rec = "999";
+ string time_name = "unknown";
+
+ string t_pro;
+ string t_nor;
+ string t_am;
+
+ string n_pro;
+ string n_nor;
+ string n_am;
+
+ int ID = 0;
+
+ private static OnActionHandler ah;
+
+ // game ticker for the timer
+ private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer();
+
+ int[] posX = { -1, 0, 1, -1, 1, -1 , 0 , 1 };
+ int[] posY = { -1, -1, -1, 0, 0, 1, 1, 1 };
+
+ #endregion
+
+ #region ISetupForm Members
+
+ // Returns the name of the plugin which is shown in the plugin menu
+ public string PluginName()
+ {
+ return "My Minesweeper";
+ }
+
+ // Returns the description of the plugin is shown in the plugin menu
+ public string Description()
+ {
+ return "My Minesweeper";
+ }
+
+ // 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 32327501;
+ }
+
+ // 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)
+ {
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
+ {
+ if (xmlreader.GetValue("general", "myprefix")=="no")
+ {
+ strButtonText = "Minesweeper";
+ }
+ else
+ {
+ strButtonText = "My Minesweeper";
+ }
+
+ }
+ //strButtonText = PluginName();
+ strButtonImage = String.Empty;
+ strButtonImageFocus = String.Empty;
+ strPictureImage = @"hover_my_minesweeper.png";
+ return true;
+ }
+
+ #endregion
+
+ public override int GetID
+ {
+ get
+ {
+ return 32327501;
+ }
+ set
+ {
+ base.GetID = value;
+ }
+ }
+
+ public override bool Init()
+ {
+ if (ah == null) ah = new OnActionHandler(OnAction2);
+ bool result = Load(GUIGraphicsContext.Skin + @"\MyMinesweeper.xml");
+ return result;
+ }
+
+ #region Actions
+
+ public override void OnAction(Action action)
+ {
+ base.OnAction(action);
+ }
+
+ public void OnAction2(Action action)
+ {
+ switch (action.wID)
+ {
+ case Action.ActionType.ACTION_KEY_PRESSED:
+ switch (action.m_key.KeyChar)
+ {
+ case '1':
+ SetBomb();
+ break;
+ case '2':
+ SetQuest();
+ break;
+ case '3':
+ Check9();
+ break;
+ case '0':
+ NewGame();
+ break;
+ }
+ break;
+ }
+ }
+
+ #endregion
+
+ public override bool OnMessage(GUIMessage message)
+ {
+ if (message.Message == GUI.Library.GUIMessage.MessageType.GUI_MSG_SETFOCUS)
+ {
+ ID = message.TargetControlId;
+ }
+ return base.OnMessage(message);
+ }
+
+ public void Dispose()
+ {
+ _Game.Stop();
+ _Game.Tick -= new EventHandler(_Game_Tick);
+ }
+
+ protected override void OnPageLoad()
+ {
+
+ // start game ticker
+ _Game.Interval = 1000;
+ _Game.Tick += new EventHandler(_Game_Tick);
+ _Game.Start();
+
+ base.OnPageLoad();
+
+ LoadSettings();
+
+ NewGame();
+ ShowLevel();
+
+ GUIGraphicsContext.OnNewAction -= ah;
+ GUIGraphicsContext.OnNewAction += ah;
+
+ GUIPropertyManager.SetProperty("#minesweeper_bombs", "Bombs: " + bcnt.ToString());
+ GUIPropertyManager.SetProperty("#minesweeper_seconds", "Time: " + time.ToString());
+
+ GUIPropertyManager.SetProperty("#minesweeper_smiley", @"\Minesweeper\smile.png");
+
+ }
+
+ protected override void OnPageDestroy(int new_windowId)
+ {
+ _Game.Stop();
+ _Game.Tick -= new EventHandler(_Game_Tick);
+
+ SaveSettings();
+ }
+
+ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
+ {
+ if ((controlId >= 500) && (!GameOver))
+ {
+ GameON = true;
+
+ int y = controlId - 500;
+ y = (int)y / 30;
+
+ int x = controlId - 500;
+ x = x - (y * 30);
+
+ x = x - 1;
+ y = y - 1;
+
+ if ((x >= 0) && (y >= 0) && (x < bx) && (y < by))
+ {
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+
+ SetPlace(pt);
+ }
+ }
+
+
+ if (control == BtnWhatsThis)
+ {
+ OnBtnWhatsThis();
+ }
+ if (control == BtnLevel)
+ {
+ OnBtnLevel();
+ }
+ if (control == BtnStart)
+ {
+ NewGame();
+ }
+
+
+ }
+
+ protected override void OnShowContextMenu()
+ {
+ base.OnShowContextMenu();
+ }
+
+ private void CreateButton(int ID, int posx, int posy, int height, int width, string focusimg, string nofocusimg)
+ {
+ GUIButtonControl button = new GUIButtonControl(GetID, ID, posx, posy, width, height, focusimg, nofocusimg);
+ button.AllocResources();
+ GUIControl btnControl = (GUIControl)button;
+ Add(ref btnControl);
+ }
+
+ void _Game_Tick(object sender, EventArgs e)
+ {
+ if ((!GameOver) && (time<999) && (GameON == true))
+ {
+ time++;
+ }
+ GUIPropertyManager.SetProperty("#minesweeper_seconds", "Time: " + time.ToString());
+ GUIPropertyManager.SetProperty("#minesweeper_bombs", "Bombs: " + bcnt.ToString());
+ }
+
+ private void OnBtnWhatsThis()
+ {
+ GUIDialogText dlg = (GUIDialogText)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_TEXT);
+ dlg.SetHeading("What's Minesweeper");
+ dlg.SetText("Your goal in Minesweeper is to discover all\n" +
+ "hidden mines as soon as possible. If you click\n" +
+ "on a hidden mine it will explode and the game\n" +
+ "ends.\n" +
+ "Game board design by Mikael S\xF6derstr\xF6m\n\n" +
+ "OK check actual position\n" +
+ "1 mark as bomb\n" +
+ "2 mark as not sure\n" +
+ "3 check surrounding\n" +
+ "0 new game\n\n" +
+ "Good luck\nMark Koenig (kroko)");
+ dlg.DoModal(GetID);
+ }
+
+ private void OnBtnLevel()
+ { //Choose level for the game
+ {
+ if (Level == "Nor")
+ {
+ Level = "Pro";
+ }
+ else if (Level == "Pro")
+ {
+ Level = "Am";
+ }
+ else
+ {
+ Level = "Nor";
+ }
+ NewGame();
+ ShowLevel();
+ }
+ }
+
+ private void ShowLevel()
+ {
+ if (Level == "Pro")
+ {
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Professional");
+ }
+ if (Level == "Am")
+ {
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Amateur");
+ }
+ if (Level == "Nor")
+ {
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Normal");
+ }
+ }
+
+ private void Init_board()
+ {
+ // get position from the start button
+ int StartX = GetControl(1200).XPosition;
+ int StartY = GetControl(1200).YPosition;
+ // Disable level control
+ GUIControl.HideControl(GetID, 1200);
+
+ try
+ {
+ int StartT = GetControl(500).XPosition;
+ }
+ catch
+ {
+ initBoard = false;
+ }
+
+ if (!initBoard)
+ {
+ initBoard = true;
+
+ // set start button navigation
+ GetControl(2).SetNavigation(8, 4, 2, 531);
+
+ for (int y = 0; y < (by+2); y++)
+ {
+ for (int x = 0; x < (bx+2); x++)
+ {
+ int nr = 500 + x + (y * 30);
+
+ int xp = StartX + (20 * x);
+ int yp = StartY + (20 * y);
+
+ //default navigation
+ int up = nr - 30;
+ int dn = nr + 30;
+ int le = nr - 1;
+ int ri = nr + 1;
+ //top bottom navigation
+ if ((y == 0) || (y==by+1))
+ {
+ up = nr;
+ dn = nr;
+ le = nr;
+ ri = nr;
+ }
+ //left right navigation
+ if ((x == 0) || (x == bx + 1))
+ {
+ up = nr;
+ dn = nr;
+ le = nr;
+ ri = nr;
+ }
+ //left to start
+ if (x == 1)
+ {
+ le = 2;
+ }
+ // right stop
+ if (x == bx)
+ {
+ ri = nr;
+ }
+ // top stop
+ if (y == 1)
+ {
+ up = nr;
+ }
+ // right stop
+ if (y == by)
+ {
+ dn = nr;
+ }
+
+ CreateButton(nr, xp, yp, 20, 20, "#F" + nr, "#NF" + nr);
+ GetControl(nr).SetNavigation(up, dn, le, ri);
+
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\unchecksel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\uncheckunsel.png");
+
+ }
+ }
+ for (int x = 0; x < (bx + 2); x++)
+ {
+ int nr = 500 + x;
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\topborder.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\topborder.png");
+ }
+ for (int x = 0; x < (bx + 2); x++)
+ {
+ int nr = 500 + (30*(by+1)) + x;
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\bottomborder.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\bottomborder.png");
+ }
+ for (int y = 0; y < by; y++)
+ {
+ int nr = 530 + (y*30);
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\leftborder.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\leftborder.png");
+ nr = nr + bx + 1;
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\rightborder.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\rightborder.png");
+ }
+ GUIPropertyManager.SetProperty("#F" + 500, @"\Minesweeper\Board\topleftcorner.png");
+ GUIPropertyManager.SetProperty("#NF" + 500, @"\Minesweeper\Board\topleftcorner.png");
+ GUIPropertyManager.SetProperty("#F" + (501+bx), @"\Minesweeper\Board\toprightcorner.png");
+ GUIPropertyManager.SetProperty("#NF" + (501+bx), @"\Minesweeper\Board\toprightcorner.png");
+
+ GUIPropertyManager.SetProperty("#F" + (500+(30*(by+1))), @"\Minesweeper\Board\bottomleftcorner.png");
+ GUIPropertyManager.SetProperty("#NF" + (500+(30*(by+1))), @"\Minesweeper\Board\bottomleftcorner.png");
+ GUIPropertyManager.SetProperty("#F" + (501+(30*(by+1)+bx)), @"\Minesweeper\Board\bottomrightcorner.png");
+ GUIPropertyManager.SetProperty("#NF" + (501+(30*(by+1)+bx)), @"\Minesweeper\Board\bottomrightcorner.png");
+
+ }
+
+ GUIControl.FocusControl(GetID, 531);
+ }
+
+ private void SetPlace(Point pos)
+ {
+ if ((bombs[pos.X, pos.Y] != 0) && (board[pos.X, pos.Y] != 9))
+ {
+ GUIPropertyManager.SetProperty("#minesweeper_smiley", @"\Minesweeper\sad.png");
+ GameOver = true;
+ MediaPortal.Util.Utils.PlaySound("bomb.wav", false, true);
+ EndGame();
+ board[pos.X, pos.Y] = 12;
+ SetPoint(pos);
+ }
+ if (board[pos.X, pos.Y] == 20)
+ {
+ board[pos.X, pos.Y] = GetValue(pos);
+ SetPoint(pos);
+ if (board[pos.X, pos.Y] == 0)
+ {
+ EmptyPos();
+ }
+ if (Finished() == true)
+ {
+ CheckAllBoms();
+ GameOver = true;
+ GUIPropertyManager.SetProperty("#minesweeper_smiley", @"\Minesweeper\cool.png");
+ CheckHiScore();
+ }
+ }
+ }
+
+ private void SetPoint(Point pos)
+ {
+ int nr = 531 + (pos.Y * 30) + pos.X;
+
+ if (board[pos.X, pos.Y] == 0)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check0sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check0unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 1)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check1sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check1unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 2)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check2sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check2unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 3)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check3sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check3unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 4)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check4sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check4unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 5)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check5sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check5unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 6)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check6sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check6unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 7)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check7sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check7unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 8)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\check8sel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\check8unsel.png");
+ }
+ if (board[pos.X, pos.Y] == 9)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\markedasbomsel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\markedasbom.png");
+ }
+ if (board[pos.X, pos.Y] == 10)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\questionmarksel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\questionmark.png");
+ }
+ if (board[pos.X, pos.Y] == 11)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\bomb.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\bomb.png");
+ }
+ if (board[pos.X, pos.Y] == 12)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\bombexplode.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\bombexplode.png");
+ }
+ if (board[pos.X, pos.Y] == 20)
+ {
+ GUIPropertyManager.SetProperty("#F" + nr, @"\Minesweeper\Board\unchecksel.png");
+ GUIPropertyManager.SetProperty("#NF" + nr, @"\Minesweeper\Board\uncheckunsel.png");
+ }
+ }
+
+ private void NewGame()
+ {
+ GameOver = false;
+ GameON = false;
+ time = 0;
+ ID = 0;
+
+ GUIPropertyManager.SetProperty("#minesweeper_smiley", @"\Minesweeper\smile.png");
+
+ if (Level == "Am")
+ {
+ bx = 10;
+ by = 10;
+ bcnt = 10;
+ time_rec = t_am;
+ time_name = n_am;
+ }
+ if (Level == "Nor")
+ {
+ bx = 15;
+ by = 15;
+ bcnt = 40;
+ time_rec = t_nor;
+ time_name = n_nor;
+ }
+ if (Level == "Pro")
+ {
+ bx = 20;
+ by = 20;
+ bcnt = 100;
+ time_rec = t_pro;
+ time_name = n_pro;
+ }
+
+ GUIPropertyManager.SetProperty("#minesweeper_record", "Record: " + time_rec + "s - " + time_name);
+
+ // remove controls from form
+ try
+ {
+ for (int i = 500; i < 1180; i++)
+ {
+ Remove(i);
+ }
+ }
+ catch
+ {
+
+ }
+
+ for (int i = 0; i < 30; i++)
+ {
+ for (int j = 0; j < 30; j++)
+ { // 20 = not checked
+ board[i, j] = 20;
+ // no bombs
+ bombs[i, j] = 0;
+ }
+ }
+
+ Random rnd = new Random();
+
+ for (int i = 0; i < bcnt ; i++)
+ {
+ int x = rnd.Next(0,bx);
+ int y = rnd.Next(0,by);
+ if (bombs[x, y] == 1)
+ { // already bomb
+ i = i - 1;
+ }
+ else
+ {
+ Point px = new Point();
+ px.X=x;
+ px.Y=y;
+ if (GetValue(px) < 4)
+ {
+ bombs[x, y] = 1;
+ }
+ else
+ {
+ i = i - 1;
+ }
+ }
+
+ }
+
+ Init_board();
+ }
+
+ private int GetValue(Point pos)
+ {
+ int val=0;
+
+ for (int i = 0; i < 8; i++)
+ {
+ int x = pos.X + posX[i];
+ int y = pos.Y + posY[i];
+ if ((x>=0) && (y>=0) && (x<bx) && (y<by))
+ {
+ if (bombs[x, y] != 0)
+ {
+ val++;
+ }
+ }
+
+ }
+ return val;
+ }
+
+ private int GetMBombs(Point pos)
+ {
+ int val = 0;
+
+ for (int i = 0; i < 8; i++)
+ {
+ int x = pos.X + posX[i];
+ int y = pos.Y + posY[i];
+ if ((x >= 0) && (y >= 0) && (x < 30) && (y < 30))
+ {
+ if (board[x, y] == 9)
+ {
+ val++;
+ }
+ }
+
+ }
+ return val;
+ }
+
+ private void EndGame()
+ {
+ for (int y = 0; y < by; y++)
+ {
+ for (int x = 0; x < bx; x++)
+ {
+ if (bombs[x, y] != 0)
+ {
+ board[x, y] = 11;
+ Point pos = new Point();
+ pos.X = x;
+ pos.Y = y;
+ SetPoint(pos);
+ }
+ }
+ }
+ }
+
+ private void EmptyPos()
+ {
+ bool rep = true;
+
+ while (rep)
+ {
+ rep = false;
+ for (int y = 0; y < by; y++)
+ {
+ for (int x = 0; x < bx; x++)
+ {
+ if (board[x, y] == 0)
+ {
+ // bomb counter = 0
+ int cnt = 0;
+ for (int i = 0; i < 8; i++)
+ {
+ int x1 = x + posX[i];
+ int y1 = y + posY[i];
+ if ((x1 >= 0) && (y1 >= 0) && (x1 < bx) && (y1 < by))
+ {
+ if (bombs[x1, y1] != 0)
+ { // found bomb
+ cnt++;
+ }
+ }
+ }
+
+ if (cnt == 0)
+ {
+ for (int i = 0; i < 8; i++)
+ {
+ int x1 = x + posX[i];
+ int y1 = y + posY[i];
+ if ((x1 >= 0) && (y1 >= 0) && (x1 < bx) && (y1 < by))
+ {
+ if (board[x1, y1] == 20)
+ {
+ Point pos = new Point();
+ pos.X = x1;
+ pos.Y = y1;
+
+ board[x1, y1] = GetValue(pos) ;
+ SetPoint(pos);
+ rep = true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ }
+
+ private void SetBomb()
+ {
+ if ((ID >= 500) && (!GameOver))
+ {
+ GameON = true;
+
+ int y = ID - 500;
+ y = (int)y / 30;
+
+ int x = ID - 500;
+ x = x - (y * 30);
+
+ x = x - 1;
+ y = y - 1;
+
+ int val = board[x, y];
+
+ if ((x >= 0) && (y >= 0) && (x < bx) && (y < by))
+ {
+ if (val == 20)
+ {
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+ board[x, y] = 9;
+ SetPoint(pt);
+ bcnt--;
+ }
+ if (val == 9)
+ {
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+ board[x, y] = 20;
+ SetPoint(pt);
+ bcnt++;
+ }
+ }
+ if (Finished() == true)
+ {
+ CheckAllBoms();
+ GameOver = true;
+ GUIPropertyManager.SetProperty("#minesweeper_smiley", @"\Minesweeper\cool.png");
+ CheckHiScore();
+ }
+ }
+ }
+
+ private void SetQuest()
+ {
+ if ((ID >= 500) && (!GameOver))
+ {
+ GameON = true;
+
+ int y = ID - 500;
+ y = (int)y / 30;
+
+ int x = ID - 500;
+ x = x - (y * 30);
+
+ x = x - 1;
+ y = y - 1;
+
+ int val = board[x, y];
+
+ if ((x >= 0) && (y >= 0) && (x < bx) && (y < by))
+ {
+ if (val == 20)
+ {
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+ board[x, y] = 10;
+ SetPoint(pt);
+ }
+ if (val == 10)
+ {
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+ board[x, y] = 20;
+ SetPoint(pt);
+ }
+ }
+ }
+ }
+
+ private void Check9()
+ {
+ if ((ID >= 500) && (!GameOver) && (GameON))
+ {
+ int y = ID - 500;
+ y = (int)y / 30;
+
+ int x = ID - 500;
+ x = x - (y * 30);
+
+ x = x - 1;
+ y = y - 1;
+
+ if ((x >= 0) && (y >= 0) && (x < bx) && (y < by))
+ {
+ int val = board[x, y];
+ Point pt = new Point();
+ pt.X = x;
+ pt.Y = y;
+
+ if (val == GetMBombs(pt))
+ {
+ for (int i = 0; i < 8; i++)
+ {
+ Point px = new Point();
+ px.X = x + posX[i];
+ px.Y = y + posY[i];
+
+ if ((px.X >= 0) && (px.Y >= 0) && (px.X < bx) && (px.Y < by))
+ {
+ SetPlace(px);
+ }
+ }
+ ...
[truncated message content] |
|
From: <kro...@us...> - 2007-05-24 20:11:41
|
Revision: 432
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=432&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:11:40 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Created folder remotely
Added Paths:
-----------
trunk/plugins/My Minesweeper/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-24 20:11:16
|
Revision: 431
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=431&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:11:14 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Removed file/folder
Removed Paths:
-------------
trunk/plugins/IPTVPlugin/My Minesweeper/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-24 20:09:12
|
Revision: 430
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=430&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:09:11 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Created folder remotely
Added Paths:
-----------
trunk/plugins/IPTVPlugin/My Minesweeper/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-24 20:05:21
|
Revision: 429
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=429&view=rev
Author: kroko_koenig
Date: 2007-05-24 13:05:15 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Update to version 0.3
Modified Paths:
--------------
trunk/plugins/My Hexxagon/Skin/SimpleMP/MyHexxagon.xml
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.cs
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/Properties/AssemblyInfo.cs
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon.suo
trunk/plugins/My Hexxagon/hexxagon.jpg
trunk/plugins/My Hexxagon/readme.txt
Added Paths:
-----------
trunk/plugins/My Hexxagon/HexLayout.txt
trunk/plugins/My Hexxagon/Skin/SimpleMP/Media/Hexxagon/MyHexx0X.png
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj.user
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagon.png
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagonDisabled.png
Removed Paths:
-------------
trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.xml
Added: trunk/plugins/My Hexxagon/HexLayout.txt
===================================================================
--- trunk/plugins/My Hexxagon/HexLayout.txt (rev 0)
+++ trunk/plugins/My Hexxagon/HexLayout.txt 2007-05-24 20:05:15 UTC (rev 429)
@@ -0,0 +1,15 @@
+ 62
+ 52 73
+ 42 84
+ 32 95
+22 106
+
+ 65
+ 56 77
+
+
+26 110
+ 37 100
+ 48 90
+ 59 80
+ 70
\ No newline at end of file
Added: trunk/plugins/My Hexxagon/Skin/SimpleMP/Media/Hexxagon/MyHexx0X.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Hexxagon/Skin/SimpleMP/Media/Hexxagon/MyHexx0X.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/plugins/My Hexxagon/Skin/SimpleMP/MyHexxagon.xml
===================================================================
--- trunk/plugins/My Hexxagon/Skin/SimpleMP/MyHexxagon.xml 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/Skin/SimpleMP/MyHexxagon.xml 2007-05-24 20:05:15 UTC (rev 429)
@@ -51,7 +51,35 @@
<label>Start</label>
<onleft>2</onleft>
<onright>22</onright>
- <onup>4</onup>
+ <onup>6</onup>
+ <ondown>15</ondown>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <description>Board</description>
+ <type>button</type>
+ <id>15</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>Board: 1</label>
+ <onleft>15</onleft>
+ <onright>22</onright>
+ <onup>2</onup>
+ <ondown>10</ondown>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <description>Undo</description>
+ <type>button</type>
+ <id>10</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>Undo</label>
+ <onleft>2</onleft>
+ <onright>22</onright>
+ <onup>15</onup>
<ondown>3</ondown>
<animation effect="fade" time="150">WindowOpen</animation>
<animation effect="fade" time="150">WindowClose</animation>
@@ -61,11 +89,11 @@
<type>button</type>
<id>3</id>
<posX>60</posX>
- <posY>131</posY>
+ <posY>199</posY>
<label>Mode: Play vs Computer</label>
<onleft>3</onleft>
<onright>3</onright>
- <onup>2</onup>
+ <onup>10</onup>
<ondown>4</ondown>
<animation effect="fade" time="150">WindowOpen</animation>
<animation effect="fade" time="150">WindowClose</animation>
@@ -75,7 +103,7 @@
<type>button</type>
<id>4</id>
<posX>60</posX>
- <posY>165</posY>
+ <posY>233</posY>
<label>Level: Amateur</label>
<onleft>4</onleft>
<onright>4</onright>
@@ -89,7 +117,7 @@
<type>label</type>
<id>5</id>
<posX>70</posX>
- <posY>204</posY>
+ <posY>272</posY>
<label>#Round</label>
<font>font12</font>
<align>Left</align>
@@ -102,7 +130,7 @@
<type>label</type>
<id>7</id>
<posX>70</posX>
- <posY>238</posY>
+ <posY>306</posY>
<label>#Player</label>
<font>font12</font>
<align>Left</align>
@@ -115,7 +143,7 @@
<type>button</type>
<id>6</id>
<posX>60</posX>
- <posY>267</posY>
+ <posY>335</posY>
<label>What's this?</label>
<onleft>6</onleft>
<onright>6</onright>
@@ -124,13 +152,13 @@
<animation effect="fade" time="150">WindowOpen</animation>
<animation effect="fade" time="150">WindowClose</animation>
</control>
-
+
<control>
<description>text label</description>
<type>label</type>
<id>12</id>
<posX>70</posX>
- <posY>310</posY>
+ <posY>394</posY>
<label>#Ply1.Count</label>
<font>font12</font>
<align>Left</align>
@@ -143,7 +171,7 @@
<type>label</type>
<id>13</id>
<posX>70</posX>
- <posY>340</posY>
+ <posY>424</posY>
<label>#Ply2.Count</label>
<font>font12</font>
<align>Left</align>
@@ -156,7 +184,7 @@
<type>progress</type>
<id>8</id>
<posX>100</posX>
- <posY>310</posY>
+ <posY>394</posY>
<width>180</width>
<label>#Ply1.Percentage</label>
<visible>yes</visible>
@@ -168,12 +196,35 @@
<type>progress</type>
<id>9</id>
<posX>100</posX>
- <posY>340</posY>
+ <posY>424</posY>
<width>180</width>
<label>#Ply2.Percentage</label>
<visible>yes</visible>
<animation effect="fade" time="150">WindowOpen</animation>
<animation effect="fade" time="150">WindowClose</animation>
</control>
+ <control>
+ <description>hidden hex</description>
+ <type>image</type>
+ <id>198</id>
+ <posX>270</posX>
+ <posY>220</posY>
+ <width>40</width>
+ <height>60</height>
+ <texture>\Hexxagon\MyHexx01.png</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>14</id>
+ <posX>70</posX>
+ <posY>458</posY>
+ <label>#Time</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>
</controls>
</window>
Modified: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.cs
===================================================================
--- trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.cs 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.cs 2007-05-24 20:05:15 UTC (rev 429)
@@ -30,9 +30,11 @@
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
using MediaPortal.Util;
+using MediaPortal.Configuration;
namespace MediaPortal.GUI.MyHexxagon
{
+ [PluginIcons("MyHexxagon.hexxagon.png", "MyHexxagon.hexxagonDisabled.png")]
public class MyHexxagonGUI : GUIWindow, ISetupForm
{
#region SkinControl
@@ -44,6 +46,10 @@
protected GUIButtonControl BtnLevel = null;
[SkinControlAttribute(6)]
protected GUIButtonControl BtnWhatsThis = null;
+ [SkinControlAttribute(10)]
+ protected GUIButtonControl BtnUndo = null;
+ [SkinControlAttribute(15)]
+ protected GUIButtonControl BtnBoard = null;
#endregion
@@ -58,15 +64,20 @@
int wait = 0; // init wait timer for computer
+ int time = 0; // timer for game
+ int boardNo = 1; // default board
+
+ int[] time_rec = { 999, 999, 999, 999, 999 };
+
// init board
int[] board = {0,0,0,0,0,0,0,0,0,0, // 0-9
0,0,0,0,0,0,0,0,0,0, //10-19
0,0,1,1,1,1,1,0,0,0, //20-29
0,0,1,1,1,1,1,1,0,0, //30-39
0,0,1,1,1,1,1,1,1,0, //40-49
- 0,0,1,1,1,1,0,1,1,1, //50-59
- 0,0,1,1,1,0,1,1,1,1, //60-69
- 1,0,0,1,1,1,1,0,1,1, //70-79
+ 0,0,1,1,1,1,1,1,1,1, //50-59
+ 0,0,1,1,1,1,1,1,1,1, //60-69
+ 1,0,0,1,1,1,1,1,1,1, //70-79
1,0,0,0,1,1,1,1,1,1, //80-89
1,0,0,0,0,1,1,1,1,1, //90-99
1,0,0,0,0,0,1,1,1,1, //100-109
@@ -74,6 +85,9 @@
0,0,0,0,0,0,0,0,0,0, //120-129
0,0,0}; //130-132
+ int[,] rem_board = new int [80,140];
+ bool initBoard = false;
+
// distances for moves
int[] MoveDouble = { 10, 11, 1, -10, -11, -1 };
int[] MoveJump = { 9, 20, 21, 22, 12, 2, -9, -20, -21, -22, -12, -2 };
@@ -94,6 +108,11 @@
// Off Double Jump On1 On1Select On2 On2Select
// 1 2 3 4 5 6 7
+ private int[] ani01 = { 0, 0, 0, 0, 0, 0, 0, 0 };
+ // possible moves 0-5, player 6 , cnt 7
+ private int[] ani02 = { 0, 0 , 0};
+ // last move, player, counter
+
// game ticker for the computer
private System.Windows.Forms.Timer _Game = new System.Windows.Forms.Timer();
@@ -203,94 +222,107 @@
protected override void OnPageLoad()
{
+
// start game ticker
_Game.Interval = 100;
_Game.Tick += new EventHandler(_Game_Tick);
- _Game.Start();
+ _Game.Start();
base.OnPageLoad();
// get position from the start button
- int StartX = GetControl(BtnStart.GetID).XPosition;
- int StartY = GetControl(BtnStart.GetID).YPosition;
- int Width = GetControl(BtnStart.GetID).Width;
+ int StartX = GetControl(198).XPosition;
+ int StartY = GetControl(198).YPosition;
+ // Disable level control
+ GUIControl.HideControl(GetID, 198);
- // calc the position of the hexxagon
- StartX = StartX + Width + 10;
- StartY = StartY + 100;
+ try
+ {
+ int StartT = GetControl(22).XPosition;
+ }
+ catch
+ {
+ initBoard = false;
+ }
- // draw buttons
- for (int j = 0; j < 9; j++)
+ if (initBoard == false)
{
- for (int i = 0; i < DrawCnt[j]; i++)
+ initBoard = true;
+ // draw buttons
+ for (int j = 0; j < 9; j++)
{
+ for (int i = 0; i < DrawCnt[j]; i++)
+ {
- int Nr = Draw[j] + i;
- int XPos = StartX + (j * 45);
- int YPos = 0;
+ int Nr = Draw[j] + i;
+ int XPos = StartX + (j * 45);
+ int YPos = 0;
- if (j < 5)
- YPos = StartY + (i * 37) - (19 * j);
+ if (j < 5)
+ YPos = StartY + (i * 37) - (19 * j);
- if (j > 4)
- YPos = StartY + (i * 37) - (19 * (8 - j));
+ if (j > 4)
+ YPos = StartY + (i * 37) - (19 * (8 - j));
- CreateButton(Nr, XPos, YPos, 40, 60, "#F" + Nr, "#NF" + Nr);
+ CreateButton(Nr, XPos, YPos, 40, 60, "#F" + Nr, "#NF" + Nr);
- //default navigation
- int up = Nr - 1;
- int dn = Nr + 1;
- int le = Nr - 10;
- int ri = Nr + 10;
+ //default navigation
+ int up = Nr - 1;
+ int dn = Nr + 1;
+ int le = Nr - 10;
+ int ri = Nr + 10;
- //make it easier to navigate
- if (j == 0 || j == 2 || j == 4 || j == 6 || j == 8)
- {
- le = Nr - 11;
- ri = Nr + 11;
- }
- //block to top
- if (i == 0)
- up = Nr;
- //block to bottom
- if (i == (DrawCnt[j]-1))
- dn = Nr;
- //goto to start on left side
- if (j == 0)
- le = 2;
- //block to right
- if (j == 8)
- ri = Nr;
- // some exeption top row
- if (i==0)
- {
- if (j == 2 || j == 4)
+ //make it easier to navigate
+ if (j == 0 || j == 2 || j == 4 || j == 6 || j == 8)
{
- le = Nr - 10;
+ le = Nr - 11;
+ ri = Nr + 11;
}
- if (j == 5 || j==7)
+ //block to top
+ if (i == 0)
+ up = Nr;
+ //block to bottom
+ if (i == (DrawCnt[j] - 1))
+ dn = Nr;
+ //goto to start on left side
+ if (j == 0)
+ le = 2;
+ //block to right
+ if (j == 8)
+ ri = Nr;
+ // some exeption top row
+ if (i == 0)
{
- ri = Nr + 11 ;
+ if (j == 2 || j == 4)
+ {
+ le = Nr - 10;
+ }
+ if (j == 5 || j == 7)
+ {
+ ri = Nr + 11;
+ }
}
+ // some exeption bottom row
+ if ((i == 5 && j == 1) || (i == 7 && j == 3))
+ le = Nr - 11;
+ if ((i == 8 && j == 4) || (i == 6 && j == 6))
+ ri = Nr + 10;
+
+ //SetNavigation(U, D, L, R)
+ GetControl(Nr).SetNavigation(up, dn, le, ri);
+
}
- // some exeption bottom row
- if ((i==5 && j==1) || (i==7 && j==3))
- le = Nr - 11;
- if ((i==8 && j==4) || (i==6 && j==6))
- ri = Nr + 10;
-
- //SetNavigation(U, D, L, R)
- GetControl(Nr).SetNavigation(up, dn, le, ri);
-
}
}
+
- // Disable some buttons
- GUIControl.DisableControl(GetID, 56);
- GUIControl.DisableControl(GetID, 65);
- GUIControl.DisableControl(GetID, 77);
+ // Disable level control
+ GUIControl.DisableControl(GetID, 4);
// Draw field
+ ResetBoard();
+ SetLevel();
+ Count();
UpdateBoard();
}
@@ -304,33 +336,30 @@
{
if (control == BtnWhatsThis)
OnBtnWhatsThis();
+ if (control == BtnUndo)
+ OnBtnUndo();
+ if (control == BtnBoard)
+ OnBtnBoard();
if (control == BtnStart)
{
ActPly = 4; // Player 1 starts
round = 1; // reset round counter
- // clear board
- for (int i = 22; i < 111; i++)
- {
- if (board[i] > 1)
- board[i] = 1;
- }
+ time = 0;
- // Set first tokens
- board[22] = 4;
- board[70] = 4;
- board[106] = 4;
- board[26] = 6;
- board[62] = 6;
- board[110] = 6;
+ ResetBoard();
+ SetLevel();
- // reset score
- cntPly1 = 3;
- cntPly2 = 3;
+ Count();
+ for (int i = 0; i < 133; i++)
+ {
+ rem_board[0,i] = board [i];
+ }
+
// draw field
UpdateBoard();
-
+
}
if (control == BtnLevel)
OnBtnLevel();
@@ -340,8 +369,10 @@
// check if some has clicked
if (board[controlId] == ActPly)
{
- if (ActPly == 4 || (ActPly == 6 && Mode=="2p"))
- Select(ActPly, controlId);
+ if (ActPly == 4 || (ActPly == 6 && Mode == "2p"))
+ {
+ Select(ActPly, controlId);
+ }
}
if (board[controlId] == 2 || board[controlId] == 3)
Move(ActPly, controlId);
@@ -362,6 +393,25 @@
void _Game_Tick(object sender, EventArgs e)
{
+
+ if ((ActPly > 0) && (round>1))
+ time++;
+ if (round <=1)
+ time = 0;
+
+
+ GUIPropertyManager.SetProperty("#Time", "Time: " + (time/10).ToString() + "s");
+
+
+ if ((round > 1) && (ActPly!=0))
+ {
+ GUIControl.EnableControl(GetID, 10); // Undo
+ }
+ else
+ {
+ GUIControl.DisableControl(GetID, 10); // Undo
+ }
+
// wait some time
if (wait > 0)
wait = wait - 1;
@@ -372,6 +422,69 @@
// move the computer
CompSelect();
}
+
+ // ------------------------------------------------
+ // animation 01
+
+ if ((ani01[0] != 0) && (ani01[7] > 0))
+ {
+ int tmp;
+ // select different color
+ if (board[ani01[0]]== player)
+ {
+ tmp = computer;
+ }
+ else
+ {
+ tmp = player;
+ }
+
+ // last animation
+ if (ani01[7] == 1)
+ {
+ tmp = ani01[06];
+ }
+
+ // set board take over
+ for (int i = 0; i < 6; i++)
+ {
+ if (board[ani01[i]] != 0)
+ {
+ board[ani01[i]] = tmp;
+ }
+ }
+ UpdateBoard();
+ ani01[7]--;
+ }
+ // ------------------------------------------------
+ // animation 02
+
+ if ((ani02[0] != 0) && (ani02[2] > 0))
+ {
+ int tmp;
+ // select different
+ if (board[ani02[0]] != 1)
+ {
+ tmp = 1;
+ }
+ else
+ {
+ tmp = ani02[1];
+ }
+
+ // last animation
+ if (ani02[2] == 1)
+ {
+ tmp = ani02[01];
+ }
+
+ board[ani02[0]] = tmp;
+
+ UpdateBoard();
+ ani02[2]--;
+
+ }
+
}
private void UpdateBoard()
@@ -414,6 +527,11 @@
GUIPropertyManager.SetProperty("#F" + i, @"\Hexxagon\MyHexx07F.png");
GUIPropertyManager.SetProperty("#NF" + i, @"\Hexxagon\MyHexx07.png");
}
+ if (board[i] == 10)
+ {
+ GUIPropertyManager.SetProperty("#F" + i, @"\Hexxagon\MyHexx0X.png");
+ GUIPropertyManager.SetProperty("#NF" + i, @"\Hexxagon\MyHexx0X.png");
+ }
if (ActPly == 4)
GUIPropertyManager.SetProperty("#Player", "Player 1");
if (ActPly == 6)
@@ -431,7 +549,7 @@
GUIPropertyManager.SetProperty("#Ply1.Percentage", p1.ToString());
GUIPropertyManager.SetProperty("#Ply2.Percentage", p2.ToString());
- GUIPropertyManager.SetProperty("#Round", "Round: " + round);
+ GUIPropertyManager.SetProperty("#Round", "Round: " + round.ToString());
}
}
@@ -481,6 +599,11 @@
{
// double
board[pos] = ply;
+
+ ani02[0] = pos;
+ ani02[1] = ply;
+ ani02[2] = 10;
+
Check(ply, pos);
MediaPortal.Util.Utils.PlaySound("HexxDouble.wav", false, true);
}
@@ -489,6 +612,11 @@
// jump
board[lastHexx] = 1;
board[pos] = ply;
+
+ ani02[0] = pos;
+ ani02[1] = ply;
+ ani02[2] = 10;
+
Check(ply, pos);
MediaPortal.Util.Utils.PlaySound("HexxMove.wav", false, true);
}
@@ -515,7 +643,14 @@
private void Check(int ply, int pos)
{
- bool signal = false;
+ int cnt = 0;
+ // reset ani
+ for (int i = 0; i < 6; i++)
+ {
+ ani01[i] = 0;
+ }
+ // remember player
+ ani01[6] = ply;
// after move turn arround all surrounding tokens
for (int i = 0; i < 6; i++)
@@ -525,8 +660,12 @@
if (board[pos + MoveDouble[i]] == next)
{
+ //SetFlowDirection board
board[pos + MoveDouble[i]] = ply;
- signal = true;
+ // set values for animation
+ ani01[7] = 10; // counter for animation
+ ani01[cnt]=pos + MoveDouble[i];
+ cnt++;
}
}
}
@@ -537,12 +676,18 @@
{
ActPly = 6;
wait = 25;
- //CompSelect();
}
else
{
ActPly = 4;
+
+ for (int i = 0; i < 133; i++)
+ {
+ rem_board[round, i] = board[i];
+ }
+
round = round + 1;
+
}
// check if there is a move left
NoMove(ActPly);
@@ -595,17 +740,7 @@
}
}
- // set counter to 0
- cntPly1 = 0;
- cntPly2 = 0;
- //count all fields
- for (int j = 22; j < 111; j++)
- {
- if (board[j] == 4 || board[j] == 5)
- cntPly1 = cntPly1 + 1;
- if (board[j] == 6 || board[j] == 7)
- cntPly2 = cntPly2 + 1;
- }
+ Count();
UpdateBoard();
// set message for game over
@@ -733,6 +868,11 @@
// Count attacks for each move
attackCount++;
}
+ if (board[tryDest + MoveDouble[k]] == 1)
+ {
+ // Count attacks for each move
+ attackCount = attackCount + 0.1;
+ }
}
}
if (attackCount>=highestRanking)
@@ -781,8 +921,9 @@
"board games of strategy, loosely based upon\n" +
"Othello and Attaxx!. The original version was\n" +
"written in 1992 by Argo Games, and has been\n" +
- "updated for the web by Neave. Finally I updated\n" +
- "it for th MP.\n\n" +
+ "updated for the web by Neave.\n" +
+ "http://www.neave.com/games/\n\n" +
+ "Finally I updated it for the MP\n\n" +
"Game board design by Mikael S\xF6derstr\xF6m\n\n" +
"YOUR AIM: To take over the world! You can\n" +
"choose to play against the computer, or\n" +
@@ -790,12 +931,13 @@
"two types of move, a jump or double, indicated\n" +
"hexxagon occupied by an opponent's piece will\n" +
"transform them into yours.\n\n" +
- "Good luck\nkroko");
+ "Good luck\nMark Koenig (kroko)");
dlg.DoModal(GetID);
}
private void OnBtnLevel()
{ //Choose level for the game
+
if (ActPly == 0 || (round==1 && ActPly == player ))
{
if (Level == "Nor")
@@ -825,18 +967,278 @@
GUIControl.SetControlLabel(GetID, BtnMode.GetID, "Mode: Play vs Computer");
Mode = "1p";
// Enable level selection
- GUIControl.EnableControl(GetID, 4);
+ //GUIControl.EnableControl(GetID, 4);
}
else
{
GUIControl.SetControlLabel(GetID, BtnMode.GetID, "Mode: Play vs Player");
Mode = "2p";
// Disable level selection
- GUIControl.DisableControl(GetID, 4);
+ //GUIControl.DisableControl(GetID, 4);
}
}
}
+ private void OnBtnBoard()
+ { //Choose mode for the game
+ if (ActPly == 0 || (round == 1 && ActPly == player))
+ {
+ switch (boardNo)
+ {
+ case 1:
+ boardNo = 2;
+ break;
+ case 2:
+ boardNo = 3;
+ break;
+ case 3:
+ boardNo = 4;
+ break;
+ case 4:
+ boardNo = 5;
+ break;
+ case 5:
+ boardNo = 1;
+ break;
+ }
+ GUIControl.SetControlLabel(GetID, BtnBoard.GetID, "Board: " + boardNo.ToString());
+
+ ResetBoard();
+ SetLevel();
+ Count();
+ UpdateBoard();
+
+ }
+ }
+
+ private void OnBtnUndo()
+ {
+ if (round > 1)
+ {
+ for (int i = 0; i < 133; i++)
+ {
+ board[i] = rem_board[round - 2, i];
+ }
+ round = round - 1;
+ ActPly = player;
+ Count();
+ UpdateBoard();
+ }
+ }
+
+ private void Count()
+ {
+ // set counter to 0
+ cntPly1 = 0;
+ cntPly2 = 0;
+ //count all fields
+ for (int j = 22; j < 111; j++)
+ {
+ if (board[j] == 4 || board[j] == 5)
+ cntPly1 = cntPly1 + 1;
+ if (board[j] == 6 || board[j] == 7)
+ cntPly2 = cntPly2 + 1;
+ }
+ }
+
+ private void ResetBoard()
+ {
+ for (int i = 22; i <= 26; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 32; i <= 37; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 42; i <= 48; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 52; i <= 59; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 62; i <= 70; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 73; i <= 80; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 84; i <= 90; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 95; i <= 100; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ for (int i = 106; i <= 110; i++)
+ {
+ board[i] = 1;
+ GUIControl.EnableControl(GetID, i);
+ }
+ }
+
+ private void SetLevel()
+ {
+ GetControl(98).SetNavigation(97, 99, 88, 108);
+
+ GetControl(64).SetNavigation(63, 65, 54, 74);
+
+ switch(boardNo)
+ {
+ case 1:
+ GUIControl.DisableControl(GetID, 56);
+ GUIControl.DisableControl(GetID, 65);
+ GUIControl.DisableControl(GetID, 77);
+ board[56] = 10;
+ board[65] = 10;
+ board[77] = 10;
+
+ board[22] = 4;
+ board[70] = 4;
+ board[106] = 4;
+ board[26] = 6;
+ board[62] = 6;
+ board[110] = 6;
+ break;
+ case 2:
+ board[22] = 4;
+ board[70] = 4;
+ board[106] = 4;
+ board[26] = 6;
+ board[62] = 6;
+ board[110] = 6;
+ break;
+ case 3:
+ GetControl(98).SetNavigation(97, 99, 88, 98);
+ GUIControl.DisableControl(GetID, 24);
+ GUIControl.DisableControl(GetID, 66);
+ GUIControl.DisableControl(GetID, 108);
+ GUIControl.DisableControl(GetID, 44);
+ GUIControl.DisableControl(GetID, 64);
+ GUIControl.DisableControl(GetID, 86);
+ GUIControl.DisableControl(GetID, 46);
+ GUIControl.DisableControl(GetID, 68);
+ GUIControl.DisableControl(GetID, 88);
+
+ board[24] = 10;
+ board[66] = 10;
+ board[108] = 10;
+ board[44] = 10;
+ board[64] = 10;
+ board[86] = 10;
+ board[46] = 10;
+ board[68] = 10;
+ board[88] = 10;
+
+ board[65] = 4;
+ board[67] = 4;
+ board[55] = 4;
+ board[56] = 4;
+ board[76] = 4;
+ board[77] = 4;
+
+ board[22] = 6;
+ board[62] = 6;
+ board[106] = 6;
+ board[26] = 6;
+ board[70] = 6;
+ board[110] = 6;
+ break;
+ case 4:
+ GetControl(64).SetNavigation(64, 65, 54, 74); // block UP
+ GUIControl.DisableControl(GetID, 62);
+ GUIControl.DisableControl(GetID, 43);
+ GUIControl.DisableControl(GetID, 63);
+ GUIControl.DisableControl(GetID, 85);
+ GUIControl.DisableControl(GetID, 105);
+ GUIControl.DisableControl(GetID, 34);
+ GUIControl.DisableControl(GetID, 55);
+ GUIControl.DisableControl(GetID, 76);
+ GUIControl.DisableControl(GetID, 97);
+ GUIControl.DisableControl(GetID, 56);
+ GUIControl.DisableControl(GetID, 67);
+ GUIControl.DisableControl(GetID, 77);
+ GUIControl.DisableControl(GetID, 36);
+ GUIControl.DisableControl(GetID, 58);
+ GUIControl.DisableControl(GetID, 79);
+ GUIControl.DisableControl(GetID, 99);
+ GUIControl.DisableControl(GetID, 70);
+
+ board[62] = 10;
+ board[43] = 10;
+ board[63] = 10;
+ board[85] = 10;
+ board[105] = 10;
+ board[34] = 10;
+ board[55] = 10;
+ board[76] = 10;
+ board[97] = 10;
+ board[56] = 10;
+ board[67] = 10;
+ board[77] = 10;
+ board[36] = 10;
+ board[58] = 10;
+ board[79] = 10;
+ board[99] = 10;
+ board[70] = 10;
+
+ board[22] = 4;
+ board[26] = 6;
+ break;
+ case 5:
+ GUIControl.DisableControl(GetID, 44);
+ GUIControl.DisableControl(GetID, 45);
+ GUIControl.DisableControl(GetID, 46);
+
+ GUIControl.DisableControl(GetID, 86);
+ GUIControl.DisableControl(GetID, 87);
+ GUIControl.DisableControl(GetID, 88);
+
+ GUIControl.DisableControl(GetID, 54);
+ GUIControl.DisableControl(GetID, 64);
+ GUIControl.DisableControl(GetID, 75);
+
+ GUIControl.DisableControl(GetID, 57);
+ GUIControl.DisableControl(GetID, 68);
+ GUIControl.DisableControl(GetID, 78);
+
+ board[44] = 10;
+ board[45] = 10;
+ board[46] = 10;
+ board[86] = 10;
+ board[87] = 10;
+ board[88] = 10;
+
+ board[54] = 10;
+ board[64] = 10;
+ board[75] = 10;
+
+ board[57] = 10;
+ board[68] = 10;
+ board[78] = 10;
+
+ board[24] = 4;
+ board[108] = 6;
+
+ board[62] = 6;
+ board[70] = 4;
+ break;
+ }
+ }
+
}
}
\ No newline at end of file
Modified: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj
===================================================================
--- trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj 2007-05-24 20:05:15 UTC (rev 429)
@@ -21,7 +21,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
+ <Optimize>false</Optimize>
<OutputPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@@ -42,11 +42,22 @@
<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">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath>
+ <Private>False</Private>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="MyHexxagon.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="hexxagon.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="hexxagonDisabled.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.
Added: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj.user
===================================================================
--- trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj.user (rev 0)
+++ trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.csproj.user 2007-05-24 20:05:15 UTC (rev 429)
@@ -0,0 +1,9 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <StartAction>Program</StartAction>
+ <StartProgram>C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe</StartProgram>
+ </PropertyGroup>
+ <PropertyGroup>
+ <ReferencePath>C:\Programme\Team MediaPortal\MediaPortal\;C:\Programme\Team MediaPortal\MediaPortal\Plugins\</ReferencePath>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Deleted: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.xml
===================================================================
--- trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.xml 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/MyHexxagon.xml 2007-05-24 20:05:15 UTC (rev 429)
@@ -1,151 +0,0 @@
-<window>
- <id>1234711</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>
- <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>Hexxagon</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>
- <description>text label</description>
- <type>label</type>
- <id>12</id>
- <posX>70</posX>
- <posY>280</posY>
- <label>#Ply1.Count</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ff000000</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>13</id>
- <posX>70</posX>
- <posY>310</posY>
- <label>#Ply2.Count</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>progress bar</description>
- <type>progress</type>
- <id>8</id>
- <posX>100</posX>
- <posY>280</posY>
- <width>180</width>
- <label>#Ply1.Percentage</label>
- <visible>yes</visible>
- <animation effect="fade" time="250">WindowOpen</animation>
- <animation effect="fade" time="500">WindowClose</animation>
- </control>
- <control>
- <description>progress bar</description>
- <type>progress</type>
- <id>9</id>
- <posX>100</posX>
- <posY>310</posY>
- <width>180</width>
- <label>#Ply2.Percentage</label>
- <visible>yes</visible>
- <animation effect="fade" time="250">WindowOpen</animation>
- <animation effect="fade" time="500">WindowClose</animation>
- </control>
- </controls>
-</window>
Modified: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/Properties/AssemblyInfo.cs 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/Properties/AssemblyInfo.cs 2007-05-24 20:05:15 UTC (rev 429)
@@ -31,5 +31,5 @@
//
// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
// übernehmen, indem Sie "*" eingeben:
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
+[assembly: AssemblyVersion("0.3.0.0")]
+[assembly: AssemblyFileVersion("0.3.0.0")]
Added: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagon.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagon.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagonDisabled.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon/hexxagonDisabled.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/plugins/My Hexxagon/Source/MyHexxagon/MyHexxagon.suo
===================================================================
(Binary files differ)
Modified: trunk/plugins/My Hexxagon/hexxagon.jpg
===================================================================
(Binary files differ)
Modified: trunk/plugins/My Hexxagon/readme.txt
===================================================================
--- trunk/plugins/My Hexxagon/readme.txt 2007-05-24 19:27:07 UTC (rev 428)
+++ trunk/plugins/My Hexxagon/readme.txt 2007-05-24 20:05:15 UTC (rev 429)
@@ -3,6 +3,22 @@
Hexxagon
--------
+V0.3
+-5 board to play
+-small bugfix in the AI for new boards
+
+V0.21
+-fixed a bug add buttons to form (thanks mikael)
+-add a hidden button for the layout (cedric)
+-fixed small bug Undo/count (just my fault)
+
+V0.2
+
+-Undo button
+-nice icon in configuration
+-some animations( very basic)
+
+V0.1
-Initial release
-1 and 2 player support
-Gameboard design by Mikael S\xF6derstr\xF6m for the SimpleMP
@@ -32,11 +48,4 @@
transform them into yours.
Good luck
-kroko
-
-
-
-Have fun.
-
-Greetz
-kroko
\ No newline at end of file
+Mark Koenig (kroko)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-24 19:27:15
|
Revision: 428
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=428&view=rev
Author: chef_koch
Date: 2007-05-24 12:27:07 -0700 (Thu, 24 May 2007)
Log Message:
-----------
folder cleanup
Modified Paths:
--------------
trunk/plugins/My Connect4/Source/MyConnect4.suo
trunk/plugins/mypoker/mypoker.csproj
trunk/plugins/mypoker/mypoker.sln
trunk/plugins/mypoker/mypoker.suo
Added Paths:
-----------
trunk/plugins/MyClickmania/
trunk/plugins/MyExplorer/
trunk/plugins/MyRecipes/
trunk/plugins/MyStatus/
Removed Paths:
-------------
trunk/plugins/My Explorer/
trunk/plugins/My Recipes/
trunk/plugins/My Status/
trunk/plugins/My clickmania/
Modified: trunk/plugins/My Connect4/Source/MyConnect4.suo
===================================================================
(Binary files differ)
Copied: trunk/plugins/MyClickmania (from rev 425, trunk/plugins/My clickmania)
Copied: trunk/plugins/MyExplorer (from rev 425, trunk/plugins/My Explorer)
Copied: trunk/plugins/MyRecipes (from rev 425, trunk/plugins/My Recipes)
Copied: trunk/plugins/MyStatus (from rev 425, trunk/plugins/My Status)
Modified: trunk/plugins/mypoker/mypoker.csproj
===================================================================
--- trunk/plugins/mypoker/mypoker.csproj 2007-05-24 16:58:25 UTC (rev 427)
+++ trunk/plugins/mypoker/mypoker.csproj 2007-05-24 19:27:07 UTC (rev 428)
@@ -51,7 +51,7 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\mediaportal\xbmc\bin\Release\plugins\windows\</OutputPath>
+ <OutputPath>.\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
@@ -76,17 +76,17 @@
<ItemGroup>
<Reference Include="Core, Version=0.2.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\mediaportal\xbmc\bin\Release\Core.dll</HintPath>
+ <HintPath>..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Databases, Version=0.2.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\mediaportal\xbmc\bin\Release\Databases.dll</HintPath>
+ <HintPath>..\..\mediaportal\xbmc\bin\Release\Databases.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>..\..\mediaportal\xbmc\bin\Release\plugins\Windows\Dialogs.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System">
@@ -103,7 +103,7 @@
</Reference>
<Reference Include="Utils, Version=2.1.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath>
+ <HintPath>..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
Modified: trunk/plugins/mypoker/mypoker.sln
===================================================================
--- trunk/plugins/mypoker/mypoker.sln 2007-05-24 16:58:25 UTC (rev 427)
+++ trunk/plugins/mypoker/mypoker.sln 2007-05-24 19:27:07 UTC (rev 428)
@@ -1,5 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual C# Express 2005
+# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mypoker", "mypoker.csproj", "{5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}"
EndProject
Global
Modified: trunk/plugins/mypoker/mypoker.suo
===================================================================
(Binary files differ)
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 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:36:44
|
Revision: 425
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=425&view=rev
Author: chef_koch
Date: 2007-05-24 09:36:32 -0700 (Thu, 24 May 2007)
Log Message:
-----------
cleanup for simplemp skin file
Modified Paths:
--------------
trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml
Modified: trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml 2007-05-24 16:27:10 UTC (rev 424)
+++ trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml 2007-05-24 16:36:32 UTC (rev 425)
@@ -1,111 +1,111 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
- <id>22031969</id>
- <defaultcontrol>2</defaultcontrol>
- <allowoverlay>yes</allowoverlay>
- <autohidetopbar>yes</autohidetopbar>
- <controls>
- <import>common.time.xml</import>
- <control>
- <description>Connect4 label</description>
- <type>label</type>
- <posX>55</posX>
- <posY>20</posY>
- <align>left</align>
- <font>font48</font>
- <label>Connect 4</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>10</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>Connect 4</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>
+ <id>22031969</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>BackGround</description>
+ <type>image</type>
+ <id>10</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>11</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>
<type>group</type>
<description>group element</description>
<animation effect="fade" time="150">WindowOpen</animation>
<animation effect="fade" time="150">WindowClose</animation>
- <control>
- <description>Start</description>
- <type>button</type>
- <id>2</id>
- <posX>60</posX>
- <posY>97</posY>
- <label>Start</label>
- <onleft>2</onleft>
- <onright>301</onright>
- <onup>7</onup>
- <ondown>3</ondown>
- </control>
- <control>
- <description>Mode</description>
- <type>button</type>
- <id>3</id>
- <posX>60</posX>
+ <control>
+ <description>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>Start</label>
+ <onleft>2</onleft>
+ <onright>301</onright>
+ <onup>7</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>Mode</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
<posY>131</posY>
- <label>Mode: Play vs Player</label>
- <onleft>3</onleft>
- <onright>3</onright>
- <onup>2</onup>
- <ondown>4</ondown>
- </control>
- <control>
- <description>Level</description>
- <type>button</type>
- <id>4</id>
- <posX>60</posX>
+ <label>Mode: Play vs Player</label>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
<posY>165</posY>
- <label>Level: Amateur</label>
- <onleft>4</onleft>
- <onright>4</onright>
- <onup>3</onup>
- <ondown>7</ondown>
- </control>
- <control>
+ <label>Level: Amateur</label>
+ <onleft>4</onleft>
+ <onright>4</onright>
+ <onup>3</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
<description>text label</description>
<type>label</type>
<id>5</id>
<posX>70</posX>
<posY>205</posY>
<label>#Round</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
<description>text label</description>
<type>label</type>
<id>6</id>
<posX>70</posX>
<posY>240</posY>
<label>#Player</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
<description>Whatsthis</description>
<type>button</type>
<id>7</id>
@@ -116,503 +116,498 @@
<onright>301</onright>
<onup>4</onup>
<ondown>2</ondown>
- </control>
- </control>
- <control>
- <description>BackGround Game</description>
- <type>image</type>
- <id>15</id>
- <posX>260</posX>
- <posY>120</posY>
- <width>440</width>
- <height>380</height>
- <texture>MyConnBack.png</texture>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
</control>
- <control>
- <type>group</type>
- <description>group element</description>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- <control>
- <type>image</type>
- <id>101</id>
- <posX>280</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>102</id>
- <posX>340</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>103</id>
- <posX>400</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>104</id>
- <posX>460</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>105</id>
- <posX>520</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>106</id>
- <posX>580</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>107</id>
- <posX>640</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>111</id>
- <posX>280</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>112</id>
- <posX>340</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>113</id>
- <posX>400</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>114</id>
- <posX>460</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>115</id>
- <posX>520</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>116</id>
- <posX>580</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>117</id>
- <posX>640</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>121</id>
- <posX>280</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>122</id>
- <posX>340</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>123</id>
- <posX>400</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>124</id>
- <posX>460</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>125</id>
- <posX>520</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>126</id>
- <posX>580</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>127</id>
- <posX>640</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>131</id>
- <posX>280</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>132</id>
- <posX>340</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>133</id>
- <posX>400</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>134</id>
- <posX>460</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>135</id>
- <posX>520</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>136</id>
- <posX>580</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>137</id>
- <posX>640</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>141</id>
- <posX>280</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>142</id>
- <posX>340</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>143</id>
- <posX>400</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>144</id>
- <posX>460</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>145</id>
- <posX>520</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>146</id>
- <posX>580</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>147</id>
- <posX>640</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>151</id>
- <posX>280</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>152</id>
- <posX>340</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>153</id>
- <posX>400</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>154</id>
- <posX>460</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>155</id>
- <posX>520</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>156</id>
- <posX>580</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>157</id>
- <posX>640</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_7</texture>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>18</id>
- <posX>260</posX>
- <posY>510</posY>
- <label>#Status</label>
- <font>font16</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Pointer 01</description>
- <type>button</type>
- <id>301</id>
- <posX>280</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>2</onleft>
- <onright>302</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 02</description>
- <type>button</type>
- <id>302</id>
- <posX>340</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>301</onleft>
- <onright>303</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 03</description>
- <type>button</type>
- <id>303</id>
- <posX>400</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>302</onleft>
- <onright>304</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 04</description>
- <type>button</type>
- <id>304</id>
- <posX>460</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>303</onleft>
- <onright>305</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 05</description>
- <type>button</type>
- <id>305</id>
- <posX>520</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>304</onleft>
- <onright>306</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 06</description>
- <type>button</type>
- <id>306</id>
- <posX>580</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>305</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 07</description>
- <type>button</type>
- <id>307</id>
- <posX>640</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>306</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- </control>
- </controls>
+ </control>
+ <control>
+ <description>BackGround Game</description>
+ <type>image</type>
+ <id>15</id>
+ <posX>260</posX>
+ <posY>120</posY>
+ <width>440</width>
+ <height>380</height>
+ <texture>MyConnBack.png</texture>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <type>image</type>
+ <id>101</id>
+ <posX>280</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>102</id>
+ <posX>340</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>103</id>
+ <posX>400</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>104</id>
+ <posX>460</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>105</id>
+ <posX>520</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>106</id>
+ <posX>580</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>107</id>
+ <posX>640</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>111</id>
+ <posX>280</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>112</id>
+ <posX>340</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>113</id>
+ <posX>400</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>114</id>
+ <posX>460</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>115</id>
+ <posX>520</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>116</id>
+ <posX>580</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>117</id>
+ <posX>640</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>121</id>
+ <posX>280</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>122</id>
+ <posX>340</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>123</id>
+ <posX>400</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>124</id>
+ <posX>460</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>125</id>
+ <posX>520</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>126</id>
+ <posX>580</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>127</id>
+ <posX>640</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>131</id>
+ <posX>280</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>132</id>
+ <posX>340</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>133</id>
+ <posX>400</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>134</id>
+ <posX>460</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>135</id>
+ <posX>520</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>136</id>
+ <posX>580</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>137</id>
+ <posX>640</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>141</id>
+ <posX>280</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>142</id>
+ <posX>340</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>143</id>
+ <posX>400</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>144</id>
+ <posX>460</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>145</id>
+ <posX>520</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>146</id>
+ <posX>580</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>147</id>
+ <posX>640</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_7</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>151</id>
+ <posX>280</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>152</id>
+ <posX>340</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>153</id>
+ <posX>400</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>154</id>
+ <posX>460</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>155</id>
+ <posX>520</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>156</id>
+ <posX>580</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>157</id>
+ <posX>640</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_7</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>18</id>
+ <posX>260</posX>
+ <posY>510</posY>
+ <label>#Status</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Pointer 01</description>
+ <type>button</type>
+ <id>301</id>
+ <posX>280</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>2</onleft>
+ <onright>302</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 02</description>
+ <type>button</type>
+ <id>302</id>
+ <posX>340</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>301</onleft>
+ <onright>303</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 03</description>
+ <type>button</type>
+ <id>303</id>
+ <posX>400</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>302</onleft>
+ <onright>304</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 04</description>
+ <type>button</type>
+ <id>304</id>
+ <posX>460</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>303</onleft>
+ <onright>305</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 05</description>
+ <type>button</type>
+ <id>305</id>
+ <posX>520</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>304</onleft>
+ <onright>306</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 06</description>
+ <type>button</type>
+ <id>306</id>
+ <posX>580</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>305</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 07</description>
+ <type>button</type>
+ <id>307</id>
+ <posX>640</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>306</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ </control>
+ </controls>
</window>
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:27:28
|
Revision: 424
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=424&view=rev
Author: chef_koch
Date: 2007-05-24 09:27:10 -0700 (Thu, 24 May 2007)
Log Message:
-----------
header label is now set by setproperty (#header_label), no more by setcontrollabel(11)
Modified Paths:
--------------
trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
Modified: trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-24 16:15:49 UTC (rev 423)
+++ trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-24 16:27:10 UTC (rev 424)
@@ -22,6 +22,7 @@
<id>11</id>
<posX>250</posX>
<posY>70</posY>
+ <label>#header_label</label>
<font>font16</font>
<align>right</align>
<textcolor>White</textcolor>
Modified: trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
===================================================================
--- trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 16:15:49 UTC (rev 423)
+++ trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 16:27:10 UTC (rev 424)
@@ -224,7 +224,8 @@
Mode = "1p";
AI = 5;
- GUIControl.SetControlLabel(GetID, 11, MyConnect.GUILocalizeStrings.Get(0)); // My Connect 4
+ GUIPropertyManager.SetProperty("#header_label", MyConnect.GUILocalizeStrings.Get(0)); // My Connect 4
+
GUIControl.SetControlLabel(GetID, BtnStart.GetID, MyConnect.GUILocalizeStrings.Get(1)); // Start
GUIControl.SetControlLabel(GetID, BtnWhatsThis.GetID, MyConnect.GUILocalizeStrings.Get(31)); // What is Connect4?
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:15:58
|
Revision: 423
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=423&view=rev
Author: chef_koch
Date: 2007-05-24 09:15:49 -0700 (Thu, 24 May 2007)
Log Message:
-----------
fixed some strings, now all should be translatable
Modified Paths:
--------------
trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml
trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml
Modified: trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
===================================================================
--- trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 16:15:49 UTC (rev 423)
@@ -138,7 +138,7 @@
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
{
- strButtonText = PluginName();
+ strButtonText = MyConnect.GUILocalizeStrings.Get(0);
strButtonImage = String.Empty;
strButtonImageFocus = String.Empty;
strPictureImage = "hover_my connect4.png";
@@ -229,8 +229,12 @@
GUIControl.SetControlLabel(GetID, BtnWhatsThis.GetID, MyConnect.GUILocalizeStrings.Get(31)); // What is Connect4?
GUIPropertyManager.SetProperty("#Status", " ");
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(12)); // Level: Normal
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(21)); // Mode: Play vs Comp
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(12)); // Normal
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(21)); // Comp
// Disable level selection
GUIControl.DisableControl(GetID, 4);
@@ -314,19 +318,25 @@
{
if (Level == "Nor")
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(13)); // Level: Professional
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(13)); // Professional
Level = "Pro";
AI = 8;
}
else if (Level == "Pro")
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(11)); // Level: Amateur
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(11)); // Amateur
Level = "Am";
AI = 3;
}
else
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(12)); // Level: Normal
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(12)); // Normal
Level = "Nor";
AI = 5;
}
@@ -339,14 +349,18 @@
{
if (Mode == "2p")
{
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(21)); // Mode: Play vs Comp
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(21)); // Comp
Mode = "1p";
// Enable level selection
GUIControl.EnableControl(GetID, 4);
}
else
{
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(22)); // Mode: Play vs Player
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(22)); // Player
Mode = "2p";
// Disable level selection
GUIControl.DisableControl(GetID, 4);
@@ -398,7 +412,11 @@
if (gameEngine.isWinner(Player - 1) == true)
{
int tmp = Player;
- GUIPropertyManager.SetProperty("#Status", "Player " + tmp + " wins the game !");
+ GUIPropertyManager.SetProperty("#Status",
+ MyConnect.GUILocalizeStrings.Get(2) + // Player
+ " " + tmp + " " +
+ MyConnect.GUILocalizeStrings.Get(3) // wins the game!
+ );
Player = 0;
RelButtons();
gameEngine.getState().flashit(3);
@@ -406,7 +424,7 @@
}
if (gameEngine.isTie() == true)
{
- GUIPropertyManager.SetProperty("#Status", "Nobody wins the game ! Its a draw !");
+ GUIPropertyManager.SetProperty("#Status", MyConnect.GUILocalizeStrings.Get(4)); // Nobody wins the game ! Its a draw !
Player = 0;
RelButtons();
GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
@@ -445,12 +463,14 @@
{
//display status of the game
if (Player == 0)
- GUIPropertyManager.SetProperty("#Player", "GAME OVER");
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(6)); // GAME OVER
if (Player == 1)
- GUIPropertyManager.SetProperty("#Player", "PLAYER 1");
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(2) + " 1"); // PLAYER 1
if (Player == 2)
- GUIPropertyManager.SetProperty("#Player", "PLAYER 2");
- GUIPropertyManager.SetProperty("#Round", "Round: " + round);
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(2) + " 2"); // PLAYER 2
+ GUIPropertyManager.SetProperty("#Round", MyConnect.GUILocalizeStrings.Get(5) + round); // Round:
+
+
//wait time
if (wait > 0)
{
@@ -470,7 +490,11 @@
if (gameEngine.isWinner(Player - 1) == true)
{
- GUIPropertyManager.SetProperty("#Status", "Player 2 wins the game !");
+ GUIPropertyManager.SetProperty("#Status",
+ MyConnect.GUILocalizeStrings.Get(2) + // Player
+ " 2 " +
+ MyConnect.GUILocalizeStrings.Get(3) // wins the game!
+ );
gameEngine.getState().flashit(3);
Drawfield();
Player = 0;
@@ -478,7 +502,7 @@
}
if (gameEngine.isTie() == true)
{
- GUIPropertyManager.SetProperty("#Status", "Nobody wins the game ! Its a draw !");
+ GUIPropertyManager.SetProperty("#Status", MyConnect.GUILocalizeStrings.Get(4)); // Nobody wins the game ! Its a draw !
Player = 0;
RelButtons();
}
Modified: trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml
===================================================================
--- trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml 2007-05-24 16:15:49 UTC (rev 423)
@@ -2,12 +2,19 @@
<Language name="German" characters="255">
<Section name="unmapped">
<String id="0" prefix="Mein ">Vier gewinnt</String>
- <String id="1">Start</String>
- <String id="11">Stufe: Anfänger</String>
- <String id="12">Stufe: Normal</String>
- <String id="13">Stufe: Profi</String>
- <String id="21">Modus: Play vs Comp</String>
- <String id="22">Modus: Play vs Player</String>
+ <String id="1">Neues Spiel</String>
+ <String id="2">Spieler</String>
+ <String id="3">gewinnt das Spiel!</String>
+ <String id="4">Unentschieden! Keiner hat gewonnen!</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="20">Spieler vs. </String>
+ <String id="21">Computer</String>
+ <String id="22">Spieler</String>
<String id="31">Was ist Vier gewinnt?</String>
<String id="32">Connect 4 is a game where your object is to get 4 tokens in a row.
This could be vertically, horizontal or diagonally.
Modified: trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml
===================================================================
--- trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml 2007-05-24 16:15:49 UTC (rev 423)
@@ -3,11 +3,18 @@
<Section name="unmapped">
<String id="0" prefix="My ">Connect 4</String>
<String id="1">Start</String>
- <String id="11">Level: Amateur</String>
- <String id="12">Level: Normal</String>
- <String id="13">Level: Professional</String>
- <String id="21">Mode: Play vs Comp</String>
- <String id="22">Mode: Play vs Player</String>
+ <String id="2">Player</String>
+ <String id="3">wins the game!</String>
+ <String id="4">Nobody wins the game ! Its a draw !</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="20">Player vs. </String>
+ <String id="21">Computer</String>
+ <String id="22">Player</String>
<String id="31">What's Connect 4</String>
<String id="32">Connect 4 is a game where your object is to get 4 tokens in a row.
This could be vertically, horizontal or diagonally.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|