예제 #1
0
        public InitiateEventGump(Mobile from, ArrayList playersJoined, string EventType, SelectWinnerGump swg)
            : base(50, 50)
        {
            #region InitiateVars
            m_From = from;

            current_IEG = this;
            if (from is PlayerMobile)
            {
                (from as PlayerMobile).LadderGump = current_IEG;
            }

            if (swg != null)
            {
                current_SWG = swg;
            }

            if (playersJoined != null)
            {
                mobilesJoined = playersJoined;
            }
            else
            {
                mobilesJoined = new ArrayList();
            }

            if (EventType != null)
            {
                eventType = EventType;
            }

            AddBackground(50, 50, 400, 250, 9200);

            #endregion

            //Event Type
            AddLabel(160, 100, 0x22, "Event Type:");
            AddButton(330, 90, 250, 250, 1, GumpButtonType.Reply, 0);  //Up
            AddButton(330, 110, 253, 253, 2, GumpButtonType.Reply, 0); //Down
            AddLabel(235, 100, 0, eventType);
            //Event Type end

            //Participents
            AddLabel(170, 170, 0x22, "Participants:");
            AddLabel(250, 170, 0, mobilesJoined.Count.ToString());
            AddButton(270, 160, 4016, 4016, 3, GumpButtonType.Reply, 0); //Set
            AddLabel(300, 160, 0x22, "Set");
            AddButton(270, 180, 4016, 4016, 4, GumpButtonType.Reply, 0); //Reset
            AddLabel(300, 180, 0x22, "Reset");
            //Participants end


            AddButton(370, 260, 2471, 2471, 10, GumpButtonType.Reply, 0);//NextPage
        }
예제 #2
0
        public InitiateEventGump(Mobile from, ArrayList playersJoined, string EventType, SelectWinnerGump swg)
            : base(50, 50)
        {
            #region InitiateVars
            m_From = from;

            current_IEG = this;
            if (from is PlayerMobile)
                (from as PlayerMobile).LadderGump = current_IEG;

            if (swg != null)
                current_SWG = swg;

            if (playersJoined != null)
                mobilesJoined = playersJoined;
            else
                mobilesJoined = new ArrayList();

            if (EventType != null)
                eventType = EventType;

            AddBackground(50, 50, 400, 250, 9200);

            #endregion

            //Event Type
            AddLabel(160, 100, 0x22, "Event Type:");
            AddButton(330, 90, 250, 250, 1, GumpButtonType.Reply, 0);//Up
            AddButton(330, 110, 253, 253, 2, GumpButtonType.Reply, 0);//Down
            AddLabel(235, 100, 0, eventType);
            //Event Type end

            //Participents
            AddLabel(170, 170, 0x22, "Participants:");
            AddLabel(250, 170, 0, mobilesJoined.Count.ToString());
            AddButton(270, 160, 4016, 4016, 3, GumpButtonType.Reply, 0);//Set
            AddLabel(300, 160, 0x22, "Set");
            AddButton(270, 180, 4016, 4016, 4, GumpButtonType.Reply, 0);//Reset
            AddLabel(300, 180, 0x22, "Reset");
            //Participants end


            AddButton(370, 260, 2471, 2471, 10, GumpButtonType.Reply, 0);//NextPage

        }
예제 #3
0
        public SelectWinnerGump(Mobile from, InitiateEventGump ieg, SelectWinnerGump swg)
            : base(50, 50)
        {
            #region InitiateVars
            if (swg == null)
            {
                current_SWG = this;
                IEG         = ieg;
            }
            else
            {
                current_SWG = swg;
                IEG         = current_SWG.IEG;
            }

            m_From = from;

            AddBackground(50, 50, 400, 250, 9200);

            if (IEG.mobilesJoined != null)
            {
                mobilesJoined = IEG.mobilesJoined;
            }
            else
            {
                mobilesJoined = new ArrayList();
            }

            if (IEG.eventType != null)
            {
                eventType = IEG.eventType;
            }

            if (from is PlayerMobile)
            {
                (from as PlayerMobile).LadderGump = current_SWG;
            }

            #endregion


            #region InitiateTextAndButtons
            //Event Type
            AddLabel(105, 80, 0x22, "Event Type:");
            AddLabel(180, 80, 0, eventType);
            //Event Type end

            //Participents
            AddLabel(290, 80, 0x22, "Participants:");
            AddLabel(375, 80, 0, mobilesJoined.Count.ToString());
            //Participants end

            AddButton(370, 260, 2471, 2471, 9, GumpButtonType.Reply, 0); //NextPage
            AddButton(80, 260, 2468, 2468, 10, GumpButtonType.Reply, 0); //PreviousPage
            #endregion


            #region AddWinners
            AddLabel(120, 140, 0, "First:");
            AddButton(90, 140, 4005, 4005, 1, GumpButtonType.Reply, 0);
            if (current_SWG != null && current_SWG.m_First[0] != null)
            {
                AddLabel(170, 140, 0x22, current_SWG.m_First[0].Name);
            }
            else
            {
                AddLabel(170, 140, 0x22, "Select Player!");
            }


            AddLabel(120, 170, 0, "Second:");
            AddButton(90, 170, 4005, 4005, 2, GumpButtonType.Reply, 0);
            if (current_SWG != null && current_SWG.m_Second[0] != null)
            {
                AddLabel(170, 170, 0x22, current_SWG.m_Second[0].Name);
            }
            else
            {
                AddLabel(170, 170, 0x22, "Select Player!");
            }



            if (current_SWG != null && current_SWG.mobilesJoined != null && current_SWG.mobilesJoined.Count >= 34)
            {
                AddButton(90, 190, 4005, 4005, 3, GumpButtonType.Reply, 0);
                AddLabel(120, 190, 0, "Third:");
                if (current_SWG != null && current_SWG.m_Third[0] != null)
                {
                    AddLabel(170, 190, 0x22, current_SWG.m_Third[0].Name);
                }
                else
                {
                    AddLabel(170, 190, 0x22, "Select Player!");
                }
            }

            //Add 2v2 partner
            if (current_SWG.eventType.Contains("2vs2"))
            {
                AddLabel(270, 140, 0, "&");
                if (current_SWG != null && current_SWG.m_First[1] != null)
                {
                    AddLabel(290, 140, 0x22, current_SWG.m_First[1].Name);
                }
                else
                {
                    AddLabel(290, 140, 0x22, "Select Player!");
                }

                AddLabel(270, 170, 0, "&");
                if (current_SWG != null && current_SWG.m_Second[1] != null)
                {
                    AddLabel(290, 170, 0x22, current_SWG.m_Second[1].Name);
                }
                else
                {
                    AddLabel(290, 170, 0x22, "Select Player!");
                }

                if (current_SWG != null && current_SWG.mobilesJoined != null && current_SWG.mobilesJoined.Count >= 34)
                {
                    AddLabel(270, 190, 0, "&");
                    if (current_SWG != null && current_SWG.m_Third[1] != null)
                    {
                        AddLabel(290, 190, 0x22, current_SWG.m_Third[1].Name);
                    }
                    else
                    {
                        AddLabel(290, 190, 0x22, "Select Player!");
                    }
                }
            }

            #endregion
        }
예제 #4
0
        public SelectWinnerGump(Mobile from, InitiateEventGump ieg, SelectWinnerGump swg)
            : base(50, 50)
        {
            #region InitiateVars
            if (swg == null)
            {
                current_SWG = this;
                IEG = ieg;
            }
            else
            {
                current_SWG = swg;
                IEG = current_SWG.IEG;
            }

            m_From = from;

            AddBackground(50, 50, 400, 250, 9200);

            if (IEG.mobilesJoined != null)
                mobilesJoined = IEG.mobilesJoined;
            else
                mobilesJoined = new ArrayList();

            if (IEG.eventType != null)
                eventType = IEG.eventType;

            if (from is PlayerMobile)
                (from as PlayerMobile).LadderGump = current_SWG;

            #endregion


            #region InitiateTextAndButtons
            //Event Type
            AddLabel(105, 80, 0x22, "Event Type:");
            AddLabel(180, 80, 0, eventType);
            //Event Type end

            //Participents
            AddLabel(290, 80, 0x22, "Participants:");
            AddLabel(375, 80, 0, mobilesJoined.Count.ToString());
            //Participants end

            AddButton(370, 260, 2471, 2471, 9, GumpButtonType.Reply, 0);//NextPage
            AddButton(80, 260, 2468, 2468, 10, GumpButtonType.Reply, 0);//PreviousPage
            #endregion


            #region AddWinners
            AddLabel(120, 140, 0, "First:");
            AddButton(90, 140, 4005, 4005, 1, GumpButtonType.Reply, 0);
            if (current_SWG != null && current_SWG.m_First[0] != null)
                AddLabel(170, 140, 0x22, current_SWG.m_First[0].Name);
            else
                AddLabel(170, 140, 0x22, "Select Player!");


            AddLabel(120, 170, 0, "Second:");
            AddButton(90, 170, 4005, 4005, 2, GumpButtonType.Reply, 0);
            if (current_SWG != null && current_SWG.m_Second[0] != null)
                AddLabel(170, 170, 0x22, current_SWG.m_Second[0].Name);
            else
                AddLabel(170, 170, 0x22, "Select Player!");



            if (current_SWG != null && current_SWG.mobilesJoined != null && current_SWG.mobilesJoined.Count >= 34)
            {
                AddButton(90, 190, 4005, 4005, 3, GumpButtonType.Reply, 0);
                AddLabel(120, 190, 0, "Third:");
                if (current_SWG != null && current_SWG.m_Third[0] != null)
                    AddLabel(170, 190, 0x22, current_SWG.m_Third[0].Name);
                else
                    AddLabel(170, 190, 0x22, "Select Player!");
            }

            //Add 2v2 partner
            if (current_SWG.eventType.Contains("2vs2"))
            {
                AddLabel(270, 140, 0, "&");
                if (current_SWG != null && current_SWG.m_First[1] != null)
                    AddLabel(290, 140, 0x22, current_SWG.m_First[1].Name);
                else
                    AddLabel(290, 140, 0x22, "Select Player!");

                AddLabel(270, 170, 0, "&");
                if (current_SWG != null && current_SWG.m_Second[1] != null)
                    AddLabel(290, 170, 0x22, current_SWG.m_Second[1].Name);
                else
                    AddLabel(290, 170, 0x22, "Select Player!");

                if (current_SWG != null && current_SWG.mobilesJoined != null && current_SWG.mobilesJoined.Count >= 34)
                {
                    AddLabel(270, 190, 0, "&");
                    if (current_SWG != null && current_SWG.m_Third[1] != null)
                        AddLabel(290, 190, 0x22, current_SWG.m_Third[1].Name);
                    else
                        AddLabel(290, 190, 0x22, "Select Player!");
                }
            }

            #endregion

        }