コード例 #1
0
 private void frmLoading_Load(object sender, EventArgs e)
 {
     pctNaranja.Top = pctManzana.Top = pctPera.Top = -400;
     this.Focus();
     this.Opacity = 0D;
     this.Cursor  = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
 }
コード例 #2
0
 private void frmAlert_Load(object sender, EventArgs e)
 {
     this.Opacity             = 0D;
     timerOpening.Enabled     = true;
     timerWaitingFade.Enabled = false;
     fadeComplete             = false;
     this.Cursor = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
 }
コード例 #3
0
 private void frmHelp_Load(object sender, EventArgs e)
 {
     this.Cursor   = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
     step          = 1;
     lblSteps.Text = "1/5";
     lblTitle.Text = "INTRODUCCIÓN";
     lblText.Text  = "Bienvenido, " + GameData.nameAccount + "\nGracias por jugar a La manzanita, esperemos que el juego sea de su agrado. Ahora procederemos a brindarle toda la información necesaria para que pueda jugar al juego sin ninguna duda ni problema.\nEl objetivo del juego es como el de una ruleta, apostar y ganar. El dinero sirve para comprar fichas de oro o de plata (ya explicaremos posteriormente sus diferencias), con ellas podrás apostar en la ruleta para así poder ganar más fichas. Para continuar con cada concepto detallado del juego presiona el botón 'siguiente' o para salir del tutorial presiona el botón 'cancelar'.";
 }
コード例 #4
0
 private void frmEstadisticas_Load(object sender, EventArgs e)
 {
     this.Cursor             = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
     lblCaidasCereza.Text    = "Caídas: " + (GameData.cantWinCereza + GameData.cantLosCereza).ToString();
     lblCaidasApple.Text     = "Caídas: " + (GameData.cantWinApple + GameData.cantLosApple).ToString();
     lblCaidasOrange.Text    = "Caídas: " + (GameData.cantWinOrange + GameData.cantLosOrange).ToString();
     lblCaidasPera.Text      = "Caídas: " + (GameData.cantWinPera + GameData.cantLosPera).ToString();
     lblCaidasAnana.Text     = "Caídas: " + (GameData.cantWinAnana + GameData.cantLosAnana).ToString();
     lblCaidasBanana.Text    = "Caídas: " + (GameData.cantWinBanana + GameData.cantLosBanana).ToString();
     lblCaidasStar.Text      = "Caídas: " + (GameData.cantWinStar + GameData.cantLosStar).ToString();
     lblCaidasBAR50.Text     = "Caídas: " + (GameData.cantWinBAR50 + GameData.cantLosBAR50).ToString();
     lblCaidasBAR100.Text    = "Caídas: " + (GameData.cantWinBAR100 + GameData.cantLosBAR100).ToString();
     lblCaidasNuevoTiro.Text = "Caídas: " + (GameData.cantNuevoTiro).ToString();
     lblPerdidasCereza.Text  = "Caídas perdidas: " + GameData.cantLosCereza.ToString();
     lblPerdidasApple.Text   = "Caídas perdidas: " + GameData.cantLosApple.ToString();
     lblPerdidasOrange.Text  = "Caídas perdidas: " + GameData.cantLosOrange.ToString();
     lblPerdidasPera.Text    = "Caídas perdidas: " + GameData.cantLosPera.ToString();
     lblPerdidasAnana.Text   = "Caídas perdidas: " + GameData.cantLosAnana.ToString();
     lblPerdidasBanana.Text  = "Caídas perdidas: " + GameData.cantLosBanana.ToString();
     lblPerdidasStar.Text    = "Caídas perdidas: " + GameData.cantLosStar.ToString();
     lblPerdidasBAR50.Text   = "Caídas perdidas: " + GameData.cantLosBAR50.ToString();
     lblPerdidasBAR100.Text  = "Caídas perdidas: " + GameData.cantLosBAR100.ToString();
     lblGanadasCereza.Text   = "Caídas ganadas: " + GameData.cantWinCereza.ToString();
     lblGanadasApple.Text    = "Caídas ganadas: " + GameData.cantWinApple.ToString();
     lblGanadasOrange.Text   = "Caídas ganadas: " + GameData.cantWinOrange.ToString();
     lblGanadasPera.Text     = "Caídas ganadas: " + GameData.cantWinPera.ToString();
     lblGanadasAnana.Text    = "Caídas ganadas: " + GameData.cantWinAnana.ToString();
     lblGanadasBanana.Text   = "Caídas ganadas: " + GameData.cantWinBanana.ToString();
     lblGanadasStar.Text     = "Caídas ganadas: " + GameData.cantWinStar.ToString();
     lblGanadasBAR50.Text    = "Caídas ganadas: " + GameData.cantWinBAR50.ToString();
     lblGanadasBAR100.Text   = "Caídas ganadas: " + GameData.cantWinBAR100.ToString();
     lblGoldCereza.Text      = GameData.cantWinGoldCoinsCereza.ToString();
     lblGoldApple.Text       = GameData.cantWinGoldCoinsApple.ToString();
     lblGoldOrange.Text      = GameData.cantWinGoldCoinsOrange.ToString();
     lblGoldPera.Text        = GameData.cantWinGoldCoinsPera.ToString();
     lblGoldAnana.Text       = GameData.cantWinGoldCoinsAnana.ToString();
     lblGoldBanana.Text      = GameData.cantWinGoldCoinsBanana.ToString();
     lblGoldStar.Text        = GameData.cantWinGoldCoinsStar.ToString();
     lblGoldBAR50.Text       = GameData.cantWinGoldCoinsBAR50.ToString();
     lblGoldBAR100.Text      = GameData.cantWinGoldCoinsBAR100.ToString();
     lblSilverCereza.Text    = GameData.cantWinSilverCoinsCereza.ToString();
     lblSilverApple.Text     = GameData.cantWinSilverCoinsApple.ToString();
     lblSilverOrange.Text    = GameData.cantWinSilverCoinsOrange.ToString();
     lblSilverPera.Text      = GameData.cantWinSilverCoinsPera.ToString();
     lblSilverAnana.Text     = GameData.cantWinSilverCoinsAnana.ToString();
     lblSilverBanana.Text    = GameData.cantWinSilverCoinsBanana.ToString();
     lblSilverStar.Text      = GameData.cantWinSilverCoinsStar.ToString();
     lblSilverBAR50.Text     = GameData.cantWinSilverCoinsBAR50.ToString();
     lblSilverBAR100.Text    = GameData.cantWinSilverCoinsBAR100.ToString();
 }
コード例 #5
0
 private void frmBet_Load(object sender, EventArgs e)
 {
     this.Cursor = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
     if (GameData.typeCoin == 1)
     {
         lblBetCoins.ForeColor      = Color.Gold;
         pctCoins.BackgroundImage   = Image.FromFile(Lib.path + "fichasoro.png");
         lblBetCoins.Text           = GameData.insertedGoldCoins.ToString();
         prBAR100.BackColor         = Color.Orange;
         prBAR50.BackColor          = Color.Orange;
         prStar.BackColor           = Color.Orange;
         prOrange.BackColor         = Color.Lime;
         prApple.BackColor          = Color.Lime;
         prCereza.BackColor         = Color.Lime;
         prAnana.BackColor          = Color.Lime;
         prBanana.BackColor         = Color.Lime;
         prPera.BackColor           = Color.Lime;
         lblBetCereza.ForeColor     = lblBetApple.ForeColor = lblBetOrange.ForeColor = lblBetPera.ForeColor = lblBetAnana.ForeColor = lblBetBanana.ForeColor = lblBetStar.ForeColor = lblBetBAR50.ForeColor = lblBetBAR100.ForeColor = Color.Gold;
         GameData.insertedRealCoins = GameData.insertedGoldCoins;
         lblWhatsBet.ForeColor      = Color.Goldenrod;
         lblWhatsBet.Text           = "(Apostando fichas de oro, ganarás fichas de oro)";
     }
     else if (GameData.typeCoin == 2)
     {
         lblBetCoins.ForeColor      = Color.LightGray;
         pctCoins.BackgroundImage   = Image.FromFile(Lib.path + "fichasplata.png");
         lblBetCoins.Text           = GameData.insertedSilverCoins.ToString();
         prBAR100.BackColor         = Color.Red;
         prBAR50.BackColor          = Color.Orange;
         prStar.BackColor           = Color.Orange;
         prOrange.BackColor         = Color.LightGreen;
         prApple.BackColor          = Color.Lime;
         prCereza.BackColor         = Color.Lime;
         prAnana.BackColor          = Color.LightGreen;
         prBanana.BackColor         = Color.LightGreen;
         prPera.BackColor           = Color.LightGreen;
         lblBetCereza.ForeColor     = lblBetApple.ForeColor = lblBetOrange.ForeColor = lblBetPera.ForeColor = lblBetAnana.ForeColor = lblBetBanana.ForeColor = lblBetStar.ForeColor = lblBetBAR50.ForeColor = lblBetBAR100.ForeColor = Color.LightGray;
         GameData.insertedRealCoins = GameData.insertedSilverCoins;
         lblWhatsBet.ForeColor      = Color.LightGray;
         lblWhatsBet.Text           = "(Apostando fichas de plata, ganarás fichas de plata)";
     }
 }
コード例 #6
0
 private void frmAlertYesNo_Load(object sender, EventArgs e)
 {
     this.Cursor = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
 }
コード例 #7
0
 private void frmStatic_Load(object sender, EventArgs e)
 {
     Resolution.adjustResolution(this);
     this.Cursor = AdvancedCursors.Create(Path.Combine(Application.StartupPath, Lib.path + "cursor.ani"));
     Lib.PlaySound("Billards.wav");
 }