public void OnCardClick(int cardSlot) { UIBuyCardPanel panel = UIGamePanel.GetPanel <UIBuyCardPanel>(PanelType.BUY_CARD_PANEL); panel.Card = Cyclades.Game.Constants.cardChimera; panel.SetPrice(5 - cardSlot); UIGamePanel.ShowPanel(PanelType.BUY_CARD_PANEL); }
public void OnBetPanelClose(ModelPanelCloseResult res) { UIAuctionPanel panel = UIGamePanel.GetPanel <UIAuctionPanel>(PanelType.AUCTION_PANEL); if (res == ModelPanelCloseResult.OK) { Sh.Out.Send("make bet " + panel.CurrentBet + "; god: <" + panel.GodName + ">"); } }
public void OnConreteAuctionGodClick(int number) { UIAuctionPanel panel = UIGamePanel.GetPanel <UIAuctionPanel>(PanelType.AUCTION_PANEL); panel.MinBet = 0; panel.MaxBet = 10; panel.GodName = Cyclades.Game.Constants.godMars; panel.CurrentBet = number; UIGamePanel.ShowPanel(PanelType.AUCTION_PANEL, this); }