本文整理汇总了C#中Stage.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# Stage.ShowAll方法的具体用法?C# Stage.ShowAll怎么用?C# Stage.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stage
的用法示例。
在下文中一共展示了Stage.ShowAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main()
{
Clutter.Application.Init ();
Stage = new Stage ();
Stage.Title = "Deal!";
Stage.Add (new Texture ("Pixmaps/Table.png"));
Stage.SetSize (800, 480);
Stage.KeyPressEvent += HandleKeyPress;
Texture C = new Texture ("Pixmaps/Coin.png");
C.SetSize (50, 50);
C.SetPosition (35, 405);
Stage.Add (C);
Bet = 0;
BetButton = new BetButton ();
BetButton.ButtonPressEvent += IncreaseBet;
Stage.Add (BetButton);
DealButton = new DealButton ();
DealButton.ButtonPressEvent += NewGame;
Stage.Add (DealButton);
StepButton = new StepButton ();
StepButton.ButtonPressEvent += NextStep;
Stage.Add (StepButton);
Stack = new Stack ();
Stack.Decrease (20);
ScoreText = new Text ("Droid Sans Bold 21", "" + Stack.GetAmount());
ScoreText.SetColor (new Clutter.Color (0xff, 0xff, 0xff, 0xff));
ScoreText.SetPosition (100, 413);
Stage.Add (ScoreText);
Coins = new Coin [5];
Coins [0] = new Coin ();
Coins [1] = new Coin ();
Coins [2] = new Coin ();
Coins [3] = new Coin ();
Coins [4] = new Coin ();
for (int i = 0; i < 5; i++) {
Coins [i].SetPosition (35, 405);
Stage.Add (Coins [i]);
}
Deck = new Deck ();
PlayerHand = new Hand (Deck.Draw (), Deck.Draw (), Deck.Draw (), Deck.Draw (), Deck.Draw ());
OpponentHand = new Hand (Deck.Draw (), Deck.Draw (), Deck.Draw (), Deck.Draw (), Deck.Draw ());
SetupAnimation ();
Stage.ShowAll();
Clutter.Application.Run ();
}