Exemple #1
0
        void SetInitialMessages()
        {
            Chat chat = game.Chat;

            chatIndex = chat.Log.Count - chatLines;
            ResetChat();
            status.SetText(2, chat.Status1.Text);
            status.SetText(3, chat.Status2.Text);
            status.SetText(4, chat.Status3.Text);
            if (game.ShowClock)
            {
                status.SetText(0, chat.ClientClock.Text);
            }

            bottomRight.SetText(2, chat.BottomRight1.Text);
            bottomRight.SetText(1, chat.BottomRight2.Text);
            bottomRight.SetText(0, chat.BottomRight3.Text);
            announcement.SetText(chat.Announcement.Text);
            for (int i = 0; i < chat.ClientStatus.Length; i++)
            {
                clientStatus.SetText(i, chat.ClientStatus[i].Text);
            }

            if (game.chatInInputBuffer != null)
            {
                OpenTextInputBar(game.chatInInputBuffer);
                game.chatInInputBuffer = null;
            }
        }
Exemple #2
0
        void MakeExtendedHelp(string[] desc)
        {
            extendedHelp = new TextGroupWidget(game, desc.Length, extendedHelpFont, null,
                                               Anchor.Centre, Anchor.Centre);
            extendedHelp.Init();

            for (int i = 0; i < desc.Length; i++)
            {
                extendedHelp.SetText(i, desc[i]);
            }
            for (int i = 0; i < desc.Length; i++)
            {
                extendedHelp.Textures[i].X1 = extendedHelp.X;
            }

            tableWidth  = extendedHelp.Width;
            tableHeight = extendedHelp.Height;
            extendedHelp.MoveTo(extendedHelp.X, extHelpY + tableHeight / 2);
        }
        void MakeExtendedHelp( string[] desc )
        {
            extendedHelp = new TextGroupWidget( game, desc.Length, extendedHelpFont, null,
                                               Anchor.Centre, Anchor.Centre );
            extendedHelp.Init();

            for( int i = 0; i < desc.Length; i++ )
                extendedHelp.SetText( i, desc[i] );
            for( int i = 0; i < desc.Length; i++ )
                extendedHelp.Textures[i].X1 = extendedHelp.X;

            tableWidth = extendedHelp.Width;
            tableHeight = extendedHelp.Height;
            extendedHelp.MoveTo( extendedHelp.X, extHelpY + tableHeight / 2 );
        }