Exemplo n.º 1
0
 public MinChatGump(Mobile from, CHAN p)
     : base(SETTINGS.START_X, SETTINGS.START_Y)
 {
     c               = p;
     this.Closable   = true;
     this.Disposable = true;
     this.Dragable   = true;
     this.Resizable  = false;
     AddBackground(0, 0, 118, 36, 2620);
     AddPage(0);
     AddButton(5, 5, 2445, 2445, 1001, GumpButtonType.Reply, 1001);
     AddLabel(5 + 22, 5, 42, "Show Chat");
 }
Exemplo n.º 2
0
        public ChatGump(Mobile from, int Page)
            : base(SETTINGS.START_X, SETTINGS.START_Y)
        {
            #region Set Pages And Text
            if (Page == (int)CHAN.WORLD)
            {
                PAGE     = (int)CHAN.WORLD;
                CHANPAGE = CHAN.WORLD;
                CurData  = Init.Chat_Server.GetChatMessages(Init.Chat_Server.Messages);
            }
            else if (Page == (int)CHAN.GUILD)
            {
                PAGE     = (int)CHAN.GUILD;
                CHANPAGE = CHAN.GUILD;
                CurData  = Init.Chat_Server.GetGuildMessages(Init.Chat_Server.Guild_Messages, from);
            }
            else if (Page == (int)CHAN.STAFF)
            {
                PAGE     = (int)CHAN.STAFF;
                CHANPAGE = CHAN.STAFF;
                CurData  = Init.Chat_Server.GetChatMessages(Init.Chat_Server.Staff_Messages);
            }
            #endregion
            #region Required Stuff
            caller          = from;
            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = true;
            #endregion
            #region Background
            AddPage(0);
            w = 496; h = 160;

            AddBackground(0, 0, w, h, 2620);
            #endregion
            AddPage(1);

            Add_Text(CurData);

            Set_Buttons(Page, from);

            SendBoxGump(from);
        }