|
From: <du...@us...> - 2007-05-11 21:31:18
|
Revision: 397
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=397&view=rev
Author: dukus
Date: 2007-05-11 14:31:08 -0700 (Fri, 11 May 2007)
Log Message:
-----------
Initial import
Added Paths:
-----------
trunk/plugins/mypoker/
trunk/plugins/mypoker/AssemblyInfo.cs
trunk/plugins/mypoker/Properties/
trunk/plugins/mypoker/cards.cs
trunk/plugins/mypoker/mypoker.cs
trunk/plugins/mypoker/mypoker.csproj
trunk/plugins/mypoker/mypoker.csproj.user
trunk/plugins/mypoker/mypoker.sln
trunk/plugins/mypoker/mypoker.suo
trunk/plugins/mypoker/mypoketwin.cs
trunk/plugins/mypoker/skin/
trunk/plugins/mypoker/skin/MCE/
trunk/plugins/mypoker/skin/MCE/media/
trunk/plugins/mypoker/skin/MCE/media/mypoker.xml
trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml
trunk/plugins/mypoker/skin/MCE/media/poker/
trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
trunk/plugins/mypoker/skin/MCE/media/poker/card21.png
trunk/plugins/mypoker/skin/MCE/media/poker/card22.png
trunk/plugins/mypoker/skin/MCE/media/poker/card23.png
trunk/plugins/mypoker/skin/MCE/media/poker/card24.png
trunk/plugins/mypoker/skin/MCE/media/poker/card25.png
trunk/plugins/mypoker/skin/MCE/media/poker/card26.png
trunk/plugins/mypoker/skin/MCE/media/poker/card27.png
trunk/plugins/mypoker/skin/MCE/media/poker/card28.png
trunk/plugins/mypoker/skin/MCE/media/poker/card29.png
trunk/plugins/mypoker/skin/MCE/media/poker/card3.png
trunk/plugins/mypoker/skin/MCE/media/poker/card30.png
trunk/plugins/mypoker/skin/MCE/media/poker/card31.png
trunk/plugins/mypoker/skin/MCE/media/poker/card32.png
trunk/plugins/mypoker/skin/MCE/media/poker/card33.png
trunk/plugins/mypoker/skin/MCE/media/poker/card34.png
trunk/plugins/mypoker/skin/MCE/media/poker/card35.png
trunk/plugins/mypoker/skin/MCE/media/poker/card36.png
trunk/plugins/mypoker/skin/MCE/media/poker/card37.png
trunk/plugins/mypoker/skin/MCE/media/poker/card38.png
trunk/plugins/mypoker/skin/MCE/media/poker/card39.png
trunk/plugins/mypoker/skin/MCE/media/poker/card4.png
trunk/plugins/mypoker/skin/MCE/media/poker/card40.png
trunk/plugins/mypoker/skin/MCE/media/poker/card41.png
trunk/plugins/mypoker/skin/MCE/media/poker/card42.png
trunk/plugins/mypoker/skin/MCE/media/poker/card43.png
trunk/plugins/mypoker/skin/MCE/media/poker/card44.png
trunk/plugins/mypoker/skin/MCE/media/poker/card45.png
trunk/plugins/mypoker/skin/MCE/media/poker/card46.png
trunk/plugins/mypoker/skin/MCE/media/poker/card47.png
trunk/plugins/mypoker/skin/MCE/media/poker/card48.png
trunk/plugins/mypoker/skin/MCE/media/poker/card49.png
trunk/plugins/mypoker/skin/MCE/media/poker/card5.png
trunk/plugins/mypoker/skin/MCE/media/poker/card50.png
trunk/plugins/mypoker/skin/MCE/media/poker/card51.png
trunk/plugins/mypoker/skin/MCE/media/poker/card52.png
trunk/plugins/mypoker/skin/MCE/media/poker/card6.png
trunk/plugins/mypoker/skin/MCE/media/poker/card7.png
trunk/plugins/mypoker/skin/MCE/media/poker/card8.png
trunk/plugins/mypoker/skin/MCE/media/poker/card9.png
trunk/plugins/mypoker/skin/MCE/media/poker/deck_background.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/
trunk/plugins/mypoker/skin/MCE/media/poker/old/card1.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card10.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card11.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card12.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card13.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card14.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card15.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card16.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card17.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card18.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card19.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card2.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card20.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card21.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card22.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card23.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card24.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card25.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card26.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card27.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card28.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card29.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card3.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card30.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card31.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card32.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card33.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card34.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card35.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card36.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card37.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card38.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card39.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card4.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card40.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card41.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card42.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card43.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card44.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card45.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card46.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card47.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card48.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card49.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card5.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card50.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card51.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card52.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card6.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card7.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card8.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card9.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/deck_background.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/play.wav
trunk/plugins/mypoker/skin/MCE/media/poker/play.wav
Added: trunk/plugins/mypoker/AssemblyInfo.cs
===================================================================
--- trunk/plugins/mypoker/AssemblyInfo.cs (rev 0)
+++ trunk/plugins/mypoker/AssemblyInfo.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,60 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.*")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the project output directory which is
+// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
+[assembly: ComVisibleAttribute(false)]
Added: trunk/plugins/mypoker/cards.cs
===================================================================
--- trunk/plugins/mypoker/cards.cs (rev 0)
+++ trunk/plugins/mypoker/cards.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,287 @@
+using System;
+using System.IO;
+using System.Collections;
+using MediaPortal.GUI.Library;
+
+namespace GUIPoker
+{
+ public class Tcardsgame
+ {
+ protected int[] _cards = new int[52];
+ protected bool[] _iscardmoved = new bool[52];
+ public Tcardsgame()
+ {
+ }
+
+ public void init()
+ {
+ int i;
+ for (i = 0; i < 52; i++)
+ {
+ _cards[i] = i+1;
+ _iscardmoved[i] = false;
+ }
+
+ }
+ public bool isRed(int card)
+ {
+ int suit = getSuit(card);
+ if (suit == 1 || suit == 2) return true;
+ else return false;
+ }
+
+ public bool isBlack(int card)
+ {
+ int suit = getSuit(card);
+ if (suit == 0 || suit == 3) return true;
+ else return false;
+ }
+ public void suffle()
+ {
+ int i,j;
+ int rand1;
+ int rand2;
+ Random r = new Random();
+ init ();
+ for (i = 1; i < 53*2; i++)
+ {
+ rand1 = r.Next(51);
+ rand2 = r.Next(51);
+ j = _cards[rand1];
+ _cards[rand1] = _cards[rand2];
+ _cards[rand2] = j;
+
+ }
+
+ }
+
+ public int getCard()
+ {
+ int i=0;
+ try
+ {
+ bool canExit=false;
+ Random r = new Random();
+ while (!canExit)
+ {
+ i = r.Next(51) ;
+ if (!_iscardmoved[i]) {
+ canExit = true;
+ _iscardmoved[i] = true;
+ }
+
+ }
+ }
+ catch (System.IndexOutOfRangeException ex)
+ {
+ Log.Write(" Index out :{0}, {1}, i= {2} ", ex.Message, ex.StackTrace, i.ToString());
+ }
+
+ return i+1;
+ }
+
+ public int getSuit(int card)
+ {
+ int suit = (card-1) / 13;
+ return suit;
+ }
+
+ public int getFace(int card)
+ {
+ int face = (card) % 13;
+ if (face == 1) face = 14;
+ if (face == 0) face = 13;
+ return face;
+ }
+ public string getScorToString(int scor)
+ {
+ string strScor = "";
+ if (scor == 10) { strScor = "royal flush"; }
+ if (scor == 9) { strScor = "straight flush"; }
+ if (scor == 7) { strScor = "four of a kind"; }
+ if (scor == 6) { strScor = "full house"; }
+ if (scor == 5) { strScor = "flush"; }
+ if (scor == 4) { strScor = "straight"; }
+ if (scor == 3) { strScor = "three of a kind"; }
+ if (scor == 2) { strScor = "two pair"; }
+ if (scor == 1) { strScor = "jacks or better"; }
+ return strScor;
+ }
+
+ //calcScore() comes from this site:
+ //http://www.codeproject.com/books/1930110197_3.asp#34054
+ //it was modified a little.
+ public int calcScore(int[] index)
+ {
+
+
+ // are cards all of the same suit?
+ int score = 0;
+ bool isFlush = true;
+ int s = getSuit(index[0]);
+ for (int i = 1; i < 5; i++)
+ {
+ if (s != getSuit(index[i]))
+ {
+ isFlush = false;
+ break;
+ }
+ }
+ // sort card values...
+ int[] sortedValues = new int[5];
+
+ for (int i = 0; i < 5; i++)
+ sortedValues[i] = getFace(index[i]);
+ Array.Sort(sortedValues);
+
+ // are cards all of the same suit?
+ // do we have a straight?
+ bool isStraight = true;
+ for (int i = 0; i < 4; i++)
+ {
+ if (sortedValues[i] + 1 != sortedValues[i + 1])
+ {
+ isStraight = false;
+ break;
+ }
+ }
+
+ // is it a straight to the ace?
+ bool isTopStraight = (isStraight && sortedValues[4] == 14);
+ // maybe it is a straight from the ace (i.e. A, 2, 3, 4, 5)
+ if (!isStraight)
+ if (sortedValues[0] == 2 &&
+ sortedValues[1] == 3 &&
+ sortedValues[2] == 4 &&
+ sortedValues[3] == 5 &&
+ sortedValues[4] == 14) // ace on top
+ isStraight = true;
+ // now calculate score...
+ // royal flush...
+ if (isTopStraight && isFlush)
+ {
+ score = 10;
+ return score;
+ }
+ // straight flush...
+ if (isStraight && isFlush)
+ {
+ score = 9;
+ return score;
+ }
+ // four of a kind...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 7;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 7;
+ return score;
+ }
+ // full house...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 6;
+ return score;
+ }
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 6;
+ return score;
+ }
+ // flush...
+ if (isFlush)
+ {
+ score = 5;
+ return score;
+ }
+ // straight...
+ if (isStraight)
+ {
+ score = 4;
+ return score;
+ }
+ // three of a kind...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2])
+ {
+ score = 3;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 3;
+ return score;
+ }
+ if (sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 3;
+ return score;
+ }
+ // two pair...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 2;
+ return score;
+ }
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 2;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 2;
+ return score;
+ }
+ // jacks or better...
+ if (sortedValues[0] > 9 &&
+ sortedValues[0] == sortedValues[1])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[1] > 9 &&
+ sortedValues[1] == sortedValues[2])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[2] > 9 &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[3] > 9 &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 1;
+ return score;
+ }
+
+ score = -1;
+ return score;
+
+
+ }
+
+
+
+ }
+}
Added: trunk/plugins/mypoker/mypoker.cs
===================================================================
--- trunk/plugins/mypoker/mypoker.cs (rev 0)
+++ trunk/plugins/mypoker/mypoker.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,400 @@
+using System;
+using System.Collections;
+using System.Windows.Forms;
+using MediaPortal.GUI.Library;
+using MediaPortal.Util;
+using MediaPortal.Dialogs;
+using SQLite.NET;
+
+
+namespace GUIPoker
+{
+ /// <summary>
+ /// Summary description for MyPoker.
+ /// </summary>
+ public class MyPoker : GUIWindow, ISetupForm
+ {
+
+ float timeCount = 0;
+ int curentCard = 0;
+ int bet = 0;
+ int money = 100;
+ int turn_left = 100;
+ bool canDraw = false;
+ bool _isStarted = false;
+ bool _isfirsttime = true;
+ bool _isdrawfinish = true;
+ bool _iswin = false;
+ bool[] heldCards = new bool[5] { false, false, false, false, false };
+ int[] deckCards = new int[5] { 0, 0, 0, 0, 0 };
+ Tcardsgame pokercards= new Tcardsgame();
+ enum Controls : int
+ {
+ btn_play = 2,
+ btn_deal = 3,
+ btn_bet = 4,
+ card1 = 24,
+ card2 = 25,
+ card3 = 26,
+ card4 = 27,
+ card5 = 28,
+ txtheld1 = 29,
+ txtheld2 = 30,
+ txtheld3 = 31,
+ txtheld4 = 32,
+ txtheld5 = 33,
+ btnheld1 = 34,
+ btnheld2 = 35,
+ btnheld3 = 36,
+ btnheld4 = 37,
+ btnheld5 = 38
+ }
+ enum Option : int
+ {
+ waitTime = 100
+ }
+ public MyPoker()
+ {
+
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+ #region ISetupForm Members
+
+ // Returns the name of the plugin which is shown in the plugin menu
+ public string PluginName()
+ {
+ return "My Poker";
+ }
+
+ // Returns the description of the plugin is shown in the plugin menu
+ public string Description()
+ {
+ return "My Poker";
+ }
+
+ // Returns the author of the plugin which is shown in the plugin menu
+ public string Author()
+ {
+ return "Dukus";
+ }
+
+ // show the setup dialog
+ public void ShowPlugin()
+ {
+ MessageBox.Show("Nothing to configure");
+ }
+
+ // Indicates whether plugin can be enabled/disabled
+ public bool CanEnable()
+ {
+ return true;
+ }
+
+ // get ID of windowplugin belonging to this setup
+ public int GetWindowId()
+ {
+ return 7178;
+ }
+
+ // 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 true;
+ }
+
+ /// <summary>
+ /// If the plugin should have its own button on the main menu of Mediaportal then it
+ /// should return true to this method, otherwise if it should not be on home
+ /// it should return false
+ /// </summary>
+ /// <param name="strButtonText">text the button should have</param>
+ /// <param name="strButtonImage">image for the button, or empty for default</param>
+ /// <param name="strButtonImageFocus">image for the button, or empty for default</param>
+ /// <param name="strPictureImage">subpicture for the button or empty for none</param>
+ /// <returns>true : plugin needs its own button on home
+ /// false : plugin does not need its own button on home</returns>
+ public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
+ {
+ strButtonText=PluginName();
+ strButtonImage=String.Empty;
+ strButtonImageFocus=String.Empty;
+ strPictureImage=String.Empty;
+ return true;
+ }
+
+
+ public override int GetID
+ {
+ get
+ {
+ return 7178;
+ }
+ set
+ {
+ }
+ }
+
+ public override bool Init()
+ {
+ return Load(GUIGraphicsContext.Skin+@"\mypoker.xml");
+ }
+ #endregion
+
+ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
+ {
+ base.OnClicked (controlId, control, actionType);
+ }
+ protected override void OnPageLoad()
+ {
+ }
+
+ private void setCard(int cardNum, int cardType, bool playSound )
+ {
+ GUIImage image = (GUIImage)GetControl((int)Controls.card1-1+cardNum);
+ if (cardType == 0) image.SetFileName(GUIGraphicsContext.Skin + @"\media\poker\deck_background.png");
+ if (cardType > 0)
+ {
+ string strFileNumber=cardType.ToString().Trim();
+ image.SetFileName(GUIGraphicsContext.Skin + string.Format("\\media\\poker\\card{0}.png",strFileNumber ));
+
+ if (playSound)Utils.PlaySound(GUIGraphicsContext.Skin + @"\media\poker\play.wav", false, true);
+ }
+ }
+
+ public override void Render(float timePassed)
+ {
+// System.Windows.Forms.MessageBox.Show(Environment.TickCount.ToString());
+ if (canDraw && !_isdrawfinish) renderCards();
+ base.Render(timePassed);
+ }
+
+ public override void OnAction(Action action)
+ {
+ if(_isdrawfinish&&_isStarted)
+// System.Windows.Forms.MessageBox.Show(action.wID.ToString());
+
+ {
+ if (action.wID == Action.ActionType.REMOTE_0 && _isdrawfinish) drawGame();
+ if (action.wID == Action.ActionType.REMOTE_1) togleHeld(0);
+ if (action.wID == Action.ActionType.REMOTE_2) togleHeld(1);
+ if (action.wID == Action.ActionType.REMOTE_3) togleHeld(2);
+ if (action.wID == Action.ActionType.REMOTE_4) togleHeld(3);
+ if (action.wID == Action.ActionType.REMOTE_5) togleHeld(4);
+ }
+ base.OnAction(action);
+ }
+
+ private void renderCards()
+ {
+ if ((Environment.TickCount - timeCount) > 200)
+ {
+ timeCount = Environment.TickCount;
+ curentCard++;
+ if (curentCard > 0 && curentCard < 6)
+ {
+ setCard(curentCard, deckCards[curentCard - 1], true);
+ }
+ if (curentCard > 5)
+ {
+ _isdrawfinish = true;
+ testDrawState();
+ }
+ }
+
+ }
+ private bool testIFWin()
+ {
+ int score = pokercards.calcScore(deckCards);
+
+ if (score>0)
+ {
+// System.Windows.Forms.MessageBox.Show(pokercards.getScorToString(score));
+
+ //System.Windows.Forms.MessageBox.Show(string.Format("{0},{1},{2},{3},{4}",
+ // pokercards.getFace(deckCards[0]),
+ // pokercards.getFace(deckCards[1]),
+ // pokercards.getFace(deckCards[2]),
+ // pokercards.getFace(deckCards[3]),
+ // pokercards.getFace(deckCards[4])
+ // ));
+ MediaPortal.Profile.XmlSettingsProvider xmlwriter = new MediaPortal.Profile.XmlSettingsProvider("myPoker.xml");
+ xmlwriter.SetValue("myPoker", "score", score.ToString());
+ xmlwriter.SetValue("myPoker", "bet", bet.ToString());
+ xmlwriter.Save();
+ _iswin = true;
+ GUIWindowManager.ActivateWindow(7179);
+ };
+
+ return false;
+ }
+ private void testDrawState()
+ {
+ if (_isfirsttime)
+ {
+ _isfirsttime = false;
+ }
+ else
+ {
+ _isfirsttime = true;
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + i);
+ heldCards[i] = false;
+ }
+ testIFWin();
+ }
+ }
+
+ private void newGame()
+ {
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.ShowControl(GetID, (int)Controls.btnheld1 + i);
+ setCard(i + 1, 0, false);
+ }
+ GUIControl.ShowControl(GetID, (int)Controls.btn_deal);
+ GUIControl.EnableControl(GetID, (int)Controls.btn_deal);
+ GUIControl.ShowControl(GetID, (int)Controls.btn_bet);
+ GUIPropertyManager.SetProperty("#txtsco", "Score");
+ GUIPropertyManager.SetProperty("#txtbet", "Bet ");
+ GUIPropertyManager.SetProperty("#txtturn", "Turn left ");
+ bet = 1;
+ money = 100;
+ turn_left = 100;
+ showScore();
+ pokercards.suffle();
+ }
+
+ private void testEndGame()
+ {
+ if(money<1||turn_left<1)
+ {
+ GUIControl.DisableControl(GetID, (int)Controls.btn_deal);
+ }
+
+ }
+
+ private void showScore()
+ {
+ GUIPropertyManager.SetProperty("#b", bet.ToString());
+ GUIPropertyManager.SetProperty("#sco", money.ToString());
+ GUIPropertyManager.SetProperty("#turn", turn_left.ToString());
+ }
+ private void drawGame()
+ {
+ int i;
+ if (_isfirsttime)
+ {
+ pokercards.suffle();
+ money -= bet;
+ turn_left--;
+ for (i = 0; i < 5; i++)
+ {
+ deckCards[i] = pokercards.getCard();
+ setCard(i + 1, 0, false);
+ GUIControl.EnableControl(GetID, (int)Controls.btnheld1 + i);
+ }
+ }
+ else
+ {
+ for (i = 0; i < 5; i++)
+ {
+ if (!heldCards[i]) deckCards[i] = pokercards.getCard();
+ GUIControl.DisableControl(GetID, (int)Controls.btnheld1+i);
+ }
+ }
+ testEndGame();
+ canDraw = true;
+ _isdrawfinish = false;
+ curentCard = 0;
+ showScore();
+ }
+
+
+ public override bool OnMessage(GUIMessage message)
+ {
+// System.Windows.Forms.MessageBox.Show(message.Message.ToString());
+ switch (message.Message)
+ {
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
+ base.OnMessage(message);
+ return OnInit();
+ case GUIMessage.MessageType.GUI_MSG_CLICKED:
+ int iControl = message.SenderControlId;
+ if (iControl == (int)Controls.btn_play && _isdrawfinish) newGame();
+ if (iControl == (int)Controls.btn_deal && _isdrawfinish) drawGame();
+ if (iControl == (int)Controls.btn_bet && _isdrawfinish) {
+ bet++;
+ if (bet > 9) bet = 1;
+ showScore();
+ }
+ int i;
+ for (i = 0; i < 5; ++i)
+ if (iControl == (int)Controls.btnheld1 + i) togleHeld(i);
+ break;
+
+ }
+ return base.OnMessage(message);
+ }
+ private void togleHeld(int index)
+ {
+ if (!heldCards[index])
+ {
+ GUIControl.ShowControl(GetID, (int)Controls.txtheld1 + index);
+ heldCards[index] = !heldCards[index];
+ }
+ else
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + index);
+ heldCards[index] = !heldCards[index];
+ }
+
+ }
+ private bool OnInit()
+ {
+ if (_iswin)
+ {
+ _iswin = false;
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("myPoker.xml"))
+ {
+ int winscore = int.Parse((string)xmlreader.GetValue("myPoker", "money"));
+ money += winscore;
+ showScore();
+ }
+ }
+ if (!_isStarted)
+ {
+
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + i);
+ GUIControl.HideControl(GetID, (int)Controls.btnheld1 + i);
+ }
+ GUIControl.HideControl(GetID, (int)Controls.btn_deal);
+ GUIControl.HideControl(GetID, (int)Controls.btn_bet);
+ GUIPropertyManager.SetProperty("#txtsco", " ");
+ GUIPropertyManager.SetProperty("#txtbet", " ");
+ GUIPropertyManager.SetProperty("#txtturn", " ");
+ bet = 1 ;
+
+ _isStarted = true ;
+
+ }
+ return true;
+ }
+
+//
+ }
+
+
+}
Added: trunk/plugins/mypoker/mypoker.csproj
===================================================================
--- trunk/plugins/mypoker/mypoker.csproj (rev 0)
+++ trunk/plugins/mypoker/mypoker.csproj 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,122 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <ProjectType>Local</ProjectType>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}</ProjectGuid>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ApplicationIcon>
+ </ApplicationIcon>
+ <AssemblyKeyContainerName>
+ </AssemblyKeyContainerName>
+ <AssemblyName>MyPoker</AssemblyName>
+ <AssemblyOriginatorKeyFile>
+ </AssemblyOriginatorKeyFile>
+ <DefaultClientScript>JScript</DefaultClientScript>
+ <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
+ <DefaultTargetSchema>IE50</DefaultTargetSchema>
+ <DelaySign>false</DelaySign>
+ <OutputType>Library</OutputType>
+ <RootNamespace>MyPoker</RootNamespace>
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ <StartupObject>
+ </StartupObject>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <OutputPath>bin\Debug\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DocumentationFile>
+ </DocumentationFile>
+ <DebugSymbols>true</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn>
+ </NoWarn>
+ <Optimize>false</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>full</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>bin\Release\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>TRACE</DefineConstants>
+ <DocumentationFile>
+ </DocumentationFile>
+ <DebugSymbols>false</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn>
+ </NoWarn>
+ <Optimize>true</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>none</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Core, Version=1.0.2201.1843, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Databases, Version=1.0.2201.1848, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Databases.dll</HintPath>
+ </Reference>
+ <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\plugins\windows\Dialogs.dll</HintPath>
+ </Reference>
+ <Reference Include="System">
+ <Name>System</Name>
+ </Reference>
+ <Reference Include="System.Data">
+ <Name>System.Data</Name>
+ </Reference>
+ <Reference Include="System.Windows.Forms">
+ <Name>System.Windows.Forms</Name>
+ </Reference>
+ <Reference Include="System.XML">
+ <Name>System.XML</Name>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="cards.cs" />
+ <Compile Include="mypoker.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="mypoketwin.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PreBuildEvent>
+ </PreBuildEvent>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: trunk/plugins/mypoker/mypoker.csproj.user
===================================================================
--- trunk/plugins/mypoker/mypoker.csproj.user (rev 0)
+++ trunk/plugins/mypoker/mypoker.csproj.user 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,57 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <LastOpenVersion>7.10.3077</LastOpenVersion>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ReferencePath>C:\erwin\mediaportal\xbmc\bin\Release\;C:\erwin\mediaportal\xbmc\bin\Release\plugins\windows\</ReferencePath>
+ <CopyProjectDestinationFolder>
+ </CopyProjectDestinationFolder>
+ <CopyProjectUncPath>
+ </CopyProjectUncPath>
+ <CopyProjectOption>0</CopyProjectOption>
+ <ProjectView>ProjectFiles</ProjectView>
+ <ProjectTrust>0</ProjectTrust>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <EnableASPDebugging>false</EnableASPDebugging>
+ <EnableASPXDebugging>false</EnableASPXDebugging>
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
+ <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
+ <RemoteDebugEnabled>false</RemoteDebugEnabled>
+ <RemoteDebugMachine>
+ </RemoteDebugMachine>
+ <StartAction>Project</StartAction>
+ <StartArguments>
+ </StartArguments>
+ <StartPage>
+ </StartPage>
+ <StartProgram>
+ </StartProgram>
+ <StartURL>
+ </StartURL>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <StartWithIE>false</StartWithIE>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <EnableASPDebugging>false</EnableASPDebugging>
+ <EnableASPXDebugging>false</EnableASPXDebugging>
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
+ <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
+ <RemoteDebugEnabled>false</RemoteDebugEnabled>
+ <RemoteDebugMachine>
+ </RemoteDebugMachine>
+ <StartAction>Project</StartAction>
+ <StartArguments>
+ </StartArguments>
+ <StartPage>
+ </StartPage>
+ <StartProgram>
+ </StartProgram>
+ <StartURL>
+ </StartURL>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <StartWithIE>true</StartWithIE>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: trunk/plugins/mypoker/mypoker.sln
===================================================================
--- trunk/plugins/mypoker/mypoker.sln (rev 0)
+++ trunk/plugins/mypoker/mypoker.sln 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,19 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C# Express 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mypoker", "mypoker.csproj", "{5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Added: trunk/plugins/mypoker/mypoker.suo
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/mypoker.suo
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/mypoketwin.cs
===================================================================
--- trunk/plugins/mypoker/mypoketwin.cs (rev 0)
+++ trunk/plugins/mypoker/mypoketwin.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,152 @@
+using System;
+using System.Windows.Forms;
+using MediaPortal.GUI.Library;
+using MediaPortal.Dialogs;
+using MediaPortal.Util;
+
+namespace GUIPoker
+{
+ /// <summary>
+ /// Summary description for Class1.
+ /// </summary>
+ public class Class1 : GUIWindow
+ {
+ int bet=0;
+ int score=0;
+ int winscore = 0;
+ int turn = 0;
+ Tcardsgame pokercards = new Tcardsgame();
+ int[] deckCards = new int[5] { 0, 0, 0, 0, 0 };
+ enum Controls : int
+ {
+ btn_done = 4,
+ btn_black = 5,
+ btn_red = 6,
+ card1 = 24,
+ card2 = 25,
+ card3 = 26,
+ card4 = 27,
+ card5 = 28,
+
+ }
+ public Class1()
+ {
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+
+
+
+ public override int GetID
+ {
+ get
+ {
+ return 7179;
+ }
+ set
+ {
+ }
+ }
+
+ public override bool Init()
+ {
+ return Load(GUIGraphicsContext.Skin + @"\mypokerwin.xml");
+
+ }
+
+ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
+ {
+ }
+ public override bool OnMessage(GUIMessage message)
+ {
+ switch (message.Message)
+ {
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
+ base.OnMessage(message);
+ onInit();
+ return true;
+
+ case GUIMessage.MessageType.GUI_MSG_CLICKED:
+ int iControl = message.SenderControlId;
+ if (iControl == (int)Controls.btn_done) GUIWindowManager.ShowPreviousWindow();
+ if (turn <= 5)
+ {
+ if (iControl == (int)Controls.btn_black) testCard(1);
+ if (iControl == (int)Controls.btn_red) testCard(2);
+ }
+
+ break;
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT:
+ //System.Windows.Forms.MessageBox.Show(message.Message.ToString());
+
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("myPoker.xml"))
+ {
+ xmlwriter.SetValue("myPoker", "money", winscore.ToString());
+ }
+ break;
+ }
+ return base.OnMessage(message);
+
+ }
+
+ public bool testCard(int type)
+ {
+ turn++;
+ bool score = false;
+ setCard(turn, deckCards[turn - 1], true);
+ //System.Windows.Forms.MessageBox.Show(pokercards.getSuit(deckCards[turn - 1]).ToString());
+
+ if (type == 1 && pokercards.isBlack(deckCards[turn - 1])) score=true;
+ if (type == 2 && pokercards.isRed(deckCards[turn - 1])) score=true;
+ if (score)
+ {
+ winscore = winscore * 2;
+ }
+ else
+ {
+ GUIControl.HideControl(GetID, (int)Controls.btn_black);
+ GUIControl.HideControl(GetID, (int)Controls.btn_red);
+ winscore = 0;
+ GUIPropertyManager.SetProperty("#wintxt", "You lose");
+ }
+ GUIPropertyManager.SetProperty("#winsum", winscore.ToString());
+ return score;
+ }
+
+ public void onInit()
+ {
+ MediaPortal.Profile.XmlSettingsProvider xmlreader = new MediaPortal.Profile.XmlSettingsProvider("myPoker.xml");
+ bet = int.Parse((string)xmlreader.GetValue("myPoker", "bet"));
+ score = int.Parse((string)xmlreader.GetValue("myPoker", "score"));
+ winscore = bet * score;
+ GUIPropertyManager.SetProperty("#wintxt", pokercards.getScorToString(score));
+ GUIPropertyManager.SetProperty("#winsum", winscore.ToString());
+ GUIControl.ShowControl(GetID, (int)Controls.btn_black);
+ GUIControl.ShowControl(GetID, (int)Controls.btn_red);
+
+ pokercards.suffle();
+ turn = 0;
+ for (int i = 1; i < 6; i++)
+ {
+ setCard(i, 0, false);
+ deckCards[i-1]=pokercards.getCard();
+ }
+ }
+
+ private void setCard(int cardNum, int cardType, bool playSound)
+ {
+ GUIImage image = (GUIImage)GetControl((int)Controls.card1 - 1 + cardNum);
+ if (cardType == 0) image.SetFileName(GUIGraphicsContext.Skin + @"\media\poker\deck_background.png");
+ if (cardType > 0)
+ {
+ string strFileNumber = cardType.ToString().Trim();
+ image.SetFileName(GUIGraphicsContext.Skin + string.Format("\\media\\poker\\card{0}.png", strFileNumber));
+
+ if (playSound) Utils.PlaySound(GUIGraphicsContext.Skin + @"\media\poker\play.wav", false, true);
+ }
+ }
+
+ }
+
+}
Added: trunk/plugins/mypoker/skin/MCE/media/mypoker.xml
===================================================================
--- trunk/plugins/mypoker/skin/MCE/media/mypoker.xml (rev 0)
+++ trunk/plugins/mypoker/skin/MCE/media/mypoker.xml 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,230 @@
+<window>
+ <id>7178</id>
+ <defaultcontrol>0</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>button</type>
+ <id>4</id>
+ <posX>488</posX>
+ <posY>24</posY>
+ <label>Bet</label>
+ </control>
+ <control>
+ <type>button</type>
+ <id>38</id>
+ <posX>608</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>37</id>
+ <posX>472</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>36</id>
+ <posX>336</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>35</id>
+ <posX>208</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>33</id>
+ <posX>624</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>32</id>
+ <posX>488</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>31</id>
+ <posX>352</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>30</id>
+ <posX>216</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff556b2f</disabledcolor>
+ </control>
+ <control>
+ <type>image</type>
+ <id>28</id>
+ <posX>592</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>27</id>
+ <posX>456</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>26</id>
+ <posX>320</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>25</id>
+ <posX>184</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>24</id>
+ <posX>48</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ <filtered>no</filtered>
+ </control>
+ <control>
+ <type>button</type>
+ <id>2</id>
+ <posX>48</posX>
+ <posY>24</posY>
+ <label>19002</label>
+ <width>184</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>3</id>
+ <posX>264</posX>
+ <posY>24</posY>
+ <label>Deal</label>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>29</id>
+ <posX>72</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>button</type>
+ <id>34</id>
+ <posX>64</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>40</id>
+ <posX>696</posX>
+ <posY>368</posY>
+ <label>#b</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>41</id>
+ <posX>472</posX>
+ <posY>384</posY>
+ <label>#txtbet</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>42</id>
+ <posX>472</posX>
+ <posY>435</posY>
+ <label>#txtsco</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>43</id>
+ <posX>696</posX>
+ <posY>425</posY>
+ <label>#sco</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>39</id>
+ <posX>472</posX>
+ <posY>496</posY>
+ <label>#txtturn</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>44</id>
+ <posX>696</posX>
+ <posY>480</posY>
+ <label>#turn</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml
===================================================================
--- trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml (rev 0)
+++ trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,99 @@
+<window>
+ <id>7179</id>
+ <defaultcontrol>0</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>button</type>
+ <id>4</id>
+ <posX>520</posX>
+ <posY>16</posY>
+ <label>Done</label>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>60</id>
+ <posX>48</posX>
+ <posY>72</posY>
+ <label>#wintxt</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>image</type>
+ <id>28</id>
+ <posX>592</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>27</id>
+ <posX>456</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>26</id>
+ <posX>320</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>25</id>
+ <posX>184</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>24</id>
+ <posX>48</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ <filtered>no</filtered>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>56</id>
+ <posX>48</posX>
+ <posY>100</posY>
+ <label>#winsum</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>button</type>
+ <id>5</id>
+ <posX>507</posX>
+ <posY>397</posY>
+ <label>Black</label>
+ </control>
+ <control>
+ <type>button</type>
+ <id>6</id>
+ <posX>507</posX>
+ <posY>451</posY>
+ <label>Red</label>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
____________________________...
[truncated message content] |