Exemple #1
0
    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 + ">");
        }
    }
Exemple #2
0
    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);
    }