当前位置: 首页>>代码示例>>C#>>正文


C# PlayerMobile.CloseGump方法代码示例

本文整理汇总了C#中Server.Mobiles.PlayerMobile.CloseGump方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerMobile.CloseGump方法的具体用法?C# PlayerMobile.CloseGump怎么用?C# PlayerMobile.CloseGump使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.Mobiles.PlayerMobile的用法示例。


在下文中一共展示了PlayerMobile.CloseGump方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateGuildGump

        public CreateGuildGump( PlayerMobile pm, string guildName, string guildAbbrev )
            : base(10, 10)
        {
            pm.CloseGump( typeof( CreateGuildGump ) );
            pm.CloseGump( typeof( BaseGuildGump ) );

            AddPage( 0 );

            AddBackground( 0, 0, 500, 300, 0x2422 );
            AddHtmlLocalized( 25, 20, 450, 25, 1062939, 0x0, true, false ); // <center>GUILD MENU</center>
            AddHtmlLocalized( 25, 60, 450, 60, 1062940, 0x0, false, false ); // As you are not a member of any guild, you can create your own by providing a unique guild name and paying the standard guild registration fee.
            AddHtmlLocalized( 25, 135, 120, 25, 1062941, 0x0, false, false ); // Registration Fee:
            AddLabel( 155, 135, 0x481, Guild.RegistrationFee.ToString() );
            AddHtmlLocalized( 25, 165, 120, 25, 1011140, 0x0, false, false ); // Enter Guild Name:
            AddBackground( 155, 160, 320, 26, 0xBB8 );
            AddTextEntry( 160, 163, 315, 21, 0x481, 5, guildName );
            AddHtmlLocalized( 25, 191, 120, 26, 1063035, 0x0, false, false ); // Abbreviation:
            AddBackground( 155, 186, 320, 26, 0xBB8 );
            AddTextEntry( 160, 189, 315, 21, 0x481, 6, guildAbbrev );
            AddButton( 415, 217, 0xF7, 0xF8, 1, GumpButtonType.Reply, 0 );
            AddButton( 345, 217, 0xF2, 0xF1, 0, GumpButtonType.Reply, 0 );

            if( pm.AcceptGuildInvites )
                AddButton( 20, 260, 0xD2, 0xD3, 2, GumpButtonType.Reply, 0 );
            else
                AddButton( 20, 260, 0xD3, 0xD2, 2, GumpButtonType.Reply, 0 );

            AddHtmlLocalized( 45, 260, 200, 30, 1062943, 0x0, false, false ); // <i>Ignore Guild Invites</i>
        }
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:29,代码来源:Create+Guild+Gump.cs

示例2: MasterItemStoreKeyGump

		public MasterItemStoreKeyGump( Mobile owner, MasterItemStoreKey key ) : base( 450, 50 )
		{
			if( !( owner is PlayerMobile ) )
			{
				return;
			}
			
			_Owner = (PlayerMobile)owner;
			_Key = key;
			
			//clear old gumps that are up
			_Owner.CloseGump( typeof( MasterItemStoreKeyGump ) );
			
			//set up the page
			AddPage(0);
                        
            AddBackground(0, 0, Width, Height, 9270);
            AddImageTiled(11, 10, Width - 22, Height - 20, 2624);
            AddAlphaRegion(11, 10, Width - 22, Height - 20);
            
            AddTitle();
            
            if( !AddKeyListing() )
            {
	            //clear old gumps that are up
	            _Owner.CloseGump( typeof( MasterItemStoreKeyGump ) );
				
	            return;
            }
            
            AddControlButtons();
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:32,代码来源:MasterKeyGump.cs

示例3: BOBFilterGump

        public BOBFilterGump(PlayerMobile from, BulkOrderBook book)
            : base(12, 24)
        {
            from.CloseGump(typeof(BOBGump));
            from.CloseGump(typeof(BOBFilterGump));

            this.m_From = from;
            this.m_Book = book;

            BOBFilter f = (from.UseOwnFilter ? from.BOBFilter : book.Filter);

            this.AddPage(0);

            this.AddBackground(10, 10, 600, 439, 5054);

            this.AddImageTiled(18, 20, 583, 420, 2624);
            this.AddAlphaRegion(18, 20, 583, 420);

            this.AddImage(5, 5, 10460);
            this.AddImage(585, 5, 10460);
            this.AddImage(5, 424, 10460);
            this.AddImage(585, 424, 10460);

            this.AddHtmlLocalized(270, 32, 200, 32, 1062223, LabelColor, false, false); // Filter Preference

            this.AddHtmlLocalized(26, 64, 120, 32, 1062228, LabelColor, false, false); // Bulk Order Type
            this.AddFilterList(25, 96, m_XOffsets_Type, 40, m_TypeFilters, m_XWidths_Small, f.Type, 0);

            this.AddHtmlLocalized(320, 64, 50, 32, 1062215, LabelColor, false, false); // Quality
            this.AddFilterList(320, 96, m_XOffsets_Quality, 40, m_QualityFilters, m_XWidths_Small, f.Quality, 1);

            this.AddHtmlLocalized(26, 160, 120, 32, 1062232, LabelColor, false, false); // Material Type
            this.AddFilterList(25, 192, m_XOffsets_Material, 40, m_MaterialFilters, m_XWidths_Large, f.Material, 2);

            this.AddHtmlLocalized(26, 320, 120, 32, 1062217, LabelColor, false, false); // Amount
            this.AddFilterList(25, 352, m_XOffsets_Amount, 40, m_AmountFilters, m_XWidths_Small, f.Quantity, 3);

            this.AddHtmlLocalized(75, 416, 120, 32, 1062477, (from.UseOwnFilter ? LabelColor : 16927), false, false); // Set Book Filter
            this.AddButton(40, 416, 4005, 4007, 1, GumpButtonType.Reply, 0);

            this.AddHtmlLocalized(235, 416, 120, 32, 1062478, (from.UseOwnFilter ? 16927 : LabelColor), false, false); // Set Your Filter
            this.AddButton(200, 416, 4005, 4007, 2, GumpButtonType.Reply, 0);

            this.AddHtmlLocalized(405, 416, 120, 32, 1062231, LabelColor, false, false); // Clear Filter
            this.AddButton(370, 416, 4005, 4007, 3, GumpButtonType.Reply, 0);

            this.AddHtmlLocalized(540, 416, 50, 32, 1011046, LabelColor, false, false); // APPLY
            this.AddButton(505, 416, 4017, 4018, 0, GumpButtonType.Reply, 0);
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:49,代码来源:BOBFilterGump.cs

示例4: Resurrect

		public static void Resurrect( PlayerMobile m, AnkhOfSacrificeAddon ankh )
		{
			BaseHouse ankhhouse = BaseHouse.FindHouseAt( ankh );

			if ( m != null && ankhhouse != null && ankhhouse.IsFriend( m ) )
			{
				if ( !m.InRange( ankh.GetWorldLocation(), 2 ) )
					m.SendLocalizedMessage( 500446 ); // That is too far away.
				else if ( m.Alive )
					m.SendLocalizedMessage( 1060197 ); // You are not dead, and thus cannot be resurrected!
				else if ( m.AnkhNextUse > DateTime.UtcNow )
				{
					TimeSpan delay = m.AnkhNextUse - DateTime.UtcNow;

					if ( delay.TotalMinutes > 0 )
						m.SendLocalizedMessage( 1079265, Math.Round( delay.TotalMinutes ).ToString() ); // You must wait ~1_minutes~ minutes before you can use this item.
					else
						m.SendLocalizedMessage( 1079263, Math.Round( delay.TotalSeconds ).ToString() ); // You must wait ~1_seconds~ seconds before you can use this item.
				}
				else
				{
					m.CloseGump( typeof( AnkhResurrectGump ) );
					/*PlayerMobile pres = m as PlayerMobile;

					if (pres.MurderBounty > 0)
						m.SendGump( new ResurrectGump( m, m, pres.MurderBounty ) );
					else*/
						m.SendGump( new AnkhResurrectGump( m, ResurrectMessage.VirtueShrine ) );
				}
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:31,代码来源:AnkhOfSacrifice.cs

示例5: BaseGuildGump

		public BaseGuildGump( PlayerMobile pm, Guild g, int x, int y ) : base( x, y )
		{
			m_Guild = g;
			m_Player = pm;
			
			pm.CloseGump( typeof( BaseGuildGump ) );
		}
开发者ID:Godkong,项目名称:Origins,代码行数:7,代码来源:BaseGuildGump.cs

示例6: ChosenDeityGump

 public ChosenDeityGump( PlayerMobile from )
     : base(0, 0)
 {
     this.Closable=true;
     this.Disposable=true;
     this.Dragable=true;
     this.Resizable=false;
     from.CloseGump( typeof(ChosenDeityGump) );
     AddPage( 0 );
     AddBackground( 42, 23, 202, 331, 9270 );
     AddBackground( 58, 39, 169, 298, 3500 );
     AddLabel( 101, 51, 2010, @"Patron Deity" );
     AddButton( 72, 81, (from.ChosenDeity == ChosenDeity.Arianthynt ? 9723 : 9720), 9722, (int)Buttons.Arianthynt, GumpButtonType.Reply, 0 );
     AddButton( 72, 116, (from.ChosenDeity == ChosenDeity.Xipotec ? 9723 : 9720), 9722, (int)Buttons.Xipotec, GumpButtonType.Reply, 0 );
     AddButton( 72, 151, (from.ChosenDeity == ChosenDeity.Mahtet ? 9723 : 9720), 9722, (int)Buttons.Mahtet, GumpButtonType.Reply, 0 );
     AddButton( 72, 186, (from.ChosenDeity == ChosenDeity.Xorgoth ? 9723 : 9720), 9722, (int)Buttons.Xorgoth, GumpButtonType.Reply, 0 );
     AddButton( 72, 221, (from.ChosenDeity == ChosenDeity.Ohlm ? 9723 : 9720), 9722, (int)Buttons.Ohlm, GumpButtonType.Reply, 0 );
     AddButton( 72, 256, (from.ChosenDeity == ChosenDeity.Elysia ? 9723 : 9720), 9722, (int)Buttons.Elysia, GumpButtonType.Reply, 0 );
     AddButton( 72, 291, (from.ChosenDeity == ChosenDeity.None ? 9723 : 9720), 9722, (int)Buttons.None, GumpButtonType.Reply, 0 );
     AddLabel( 107, 86, 0, @"Arianthynt" );
     AddLabel( 107, 121, 0, @"Xipotec" );
     AddLabel( 107, 156, 0, @"Mah'tet" );
     AddLabel( 107, 191, 0, @"Xorgoth" );
     AddLabel( 107, 226, 0, @"Ohlm" );
     AddLabel( 107, 261, 0, @"Elysia" );
     AddLabel( 107, 296, 0, @"None for now" );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:27,代码来源:ChosenDeityGump.cs

示例7: RegsGump

		public RegsGump ( Mobile from ) : base ( 40, 40 )
		{
			m_From = from as PlayerMobile;
			
			m_From.CloseGump( typeof( RegsGump ) );
			
			Container backpack = m_From.Backpack;
			
			AddPage( 0 );
			AddBackground( 0, 0, 440, 270, 5054 );
			AddBlackAlpha( 10, 10, 420, 25 );
			AddBlackAlpha( 10, 45, 200, 215 );
			AddBlackAlpha( 220, 45, 200, 215 );
			
			AddLabel( 155, 14, 0x384, "Réactifs" );
			AddLabel( 100, 50, 0x284, "Mages" );
			AddLabel( 295, 50, 0x284, "Necros" );
			
			for( int i = 0; i < m_Types_Mage.Length; i++ )
			{
				nb = backpack.GetAmount( m_Types_Mage[i] );
				
				AddItem( 15, 70 + (i * 20), m_Img_Mage[i] );
				AddLabelCropped( 55, 70 + (i * 20) , 150, 21, 0x384, m_Txt_Mage[i] + " :" );
				AddLabelCropped( 183, 70 + (i * 20) , 46, 21, 0x284, nb.ToString() );
			}
			for( int i = 0; i < m_Types_Necro.Length; i++ )
			{
				nb = backpack.GetAmount( m_Types_Necro[i] );
				
				AddItem( 225, 70 + (i * 22), m_Img_Necro[i] );
				AddLabelCropped( 265, 70 + (i * 20) , 150, 21, 0x384, m_Txt_Necro[i] + " :" );
				AddLabelCropped( 395, 70 + (i * 20) , 46, 21, 0x284, nb.ToString() );
			}
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:35,代码来源:Regs.cs

示例8: NavigationGump

		public NavigationGump( PlayerMobile from ) : base( 40, 40 )
		{
			from.CloseGump( typeof( NavigationGump ) ); 
			m_From = from;

			AddPage( 0 );
			AddBackground( 0, 0, 140, 155, 83 );//5054 83
			AddImageTiled(8, 9, 126, 135, 1416);
			AddAlphaRegion(8, 9, 126, 135);

		AddButton( 20, 124, 0x15E6, 0x15E6, 1, GumpButtonType.Reply, 0 );//Drop 0x985
		AddLabel( 50, 120, 0x34, "Anchor" );

		AddButton( 107, 124, 0x15E0, 0x15E0, 2, GumpButtonType.Reply, 0 );//Raise 0x983

		AddButton( 60, 10, 0x26AC, 0x26AC, 3, GumpButtonType.Reply, 0 ); //Forward
		AddButton( 60, 90, 0x26B2, 0x26B2, 4, GumpButtonType.Reply, 0 ); //Back
		AddButton( 20, 50, 0x26B5, 0x26B5, 5, GumpButtonType.Reply, 0 ); //Left
		AddButton( 100, 50, 0x26AF, 0x26AF, 6, GumpButtonType.Reply, 0 ); //Right
		AddButton( 62, 53, 0x2C93, 0x2C93, 7, GumpButtonType.Reply, 0 ); //Stop

		AddButton( 20, 90, 0x5786, 0x5786, 8, GumpButtonType.Reply, 0 ); //TurnLeft
		//AddLabel( 55, 125, 0x34, "Turn" );
		AddButton( 100, 90, 0x5781, 0x5781, 9, GumpButtonType.Reply, 0 ); //TurnRight
		AddButton( 62, 31, 0x2621, 0x2621, 10, GumpButtonType.Reply, 0 ); //OneForward
		AddButton( 62, 73, 0x2625, 0x2625, 11, GumpButtonType.Reply, 0 ); //OneBack
		AddButton( 40, 52, 0x2627, 0x2627, 12, GumpButtonType.Reply, 0 ); //OneLeft
		AddButton( 83, 52, 0x2623, 0x2623, 13, GumpButtonType.Reply, 0 ); //OneRight

		AddButton( 39, 29, 0x24C0, 0x24C0, 14, GumpButtonType.Reply, 0 ); //LeftForward 0x13F4
		AddButton( 92, 29, 0x24BE, 0x24BE, 15, GumpButtonType.Reply, 0 ); //RightForward 0x13F2
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:32,代码来源:MysticalSextant.cs

示例9: Resurrect

		public static void Resurrect( PlayerMobile m, AnkhOfSacrificeAddon ankh )
		{
			if ( m == null )
			{
			}
			else if ( !m.InRange( ankh.GetWorldLocation(), 2 ) )
			{
				m.SendLocalizedMessage( 500446 ); // That is too far away.
			}
			else if ( m.Alive )
			{
				m.SendLocalizedMessage( 1060197 ); // You are not dead, and thus cannot be resurrected!
			}
			else if ( m.AnkhNextUse > DateTime.UtcNow )
			{			
				TimeSpan delay = m.AnkhNextUse - DateTime.UtcNow;

				if ( delay.TotalMinutes > 0 )
					m.SendLocalizedMessage( 1079265, Math.Round( delay.TotalMinutes ).ToString() ); // You must wait ~1_minutes~ minutes before you can use this item.
				else
					m.SendLocalizedMessage( 1079263, Math.Round( delay.TotalSeconds ).ToString() ); // You must wait ~1_seconds~ seconds before you can use this item.		
			}
			else
			{
				m.CloseGump( typeof( AnkhResurrectGump ) );
				m.SendGump( new AnkhResurrectGump( m, ResurrectMessage.VirtueShrine ) );
			}
		}
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:28,代码来源:AnkhOfSacrifice.cs

示例10: StatPointsGump

        public StatPointsGump( PlayerMobile m )
            : base(0, 0)
        {
            m.CloseGump( typeof(RaceGump) );
            this.Closable=false;
            this.Disposable=false;
            this.Dragable=true;
            this.Resizable=false;

            this.AddPage(0);
            this.AddBackground(54, 31, 400, 383, 9270);
            this.AddBackground(71, 192, 364, 202, 3500);
            this.AddImage(4, 10, 10440);
            this.AddImage(423, 10, 10441);
            this.AddImage(183, 50, 29);
            //this.AddImage(215, 80, 9000);
            this.AddLabel(194, 48, 2010, @"Stat Points Left: " + m.StatPoints + "");
            this.AddLabel(116, 82, 1149, @"Strength");
            this.AddLabel(116, 117, 1149, @"Dexterity");
            this.AddLabel(116, 152, 1149, @"Intelligence");
            this.AddLabel(324, 82, 1149, @"Hit Points");
            this.AddLabel(337, 117, 1149, @"Stamina");
            this.AddLabel(356, 152, 1149, @"Mana");
            this.AddButton(404, 46, 1150, 1152, 0, GumpButtonType.Reply, 0);
            this.AddButton(96, 85, 5600, 5604, 1, GumpButtonType.Reply, 0);
            this.AddButton(96, 120, 5600, 5604, 2, GumpButtonType.Reply, 0);
            this.AddButton(96, 155, 5600, 5604, 3, GumpButtonType.Reply, 0);
            this.AddButton(395, 85, 5600, 5604, 4, GumpButtonType.Reply, 0);
            this.AddButton(395, 120, 5600, 5604, 5, GumpButtonType.Reply, 0);
            this.AddButton(395, 155, 5600, 5604, 6, GumpButtonType.Reply, 0);
            this.AddHtml( 99, 219, 307, 147, @"You may now spend your Stat Bonus Points as you wish. Raising a stat above the cap costs 10 stat points.", (bool)true, (bool)true);
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:32,代码来源:StatPointsGump.cs

示例11: SendGumpThreaded

        public static void SendGumpThreaded(PlayerMobile to)
        {
            if (to.AntiMacroGump && m_GumpDictionary.ContainsKey(to))
            {
                AntiMacroGump oldGump = m_GumpDictionary[to];
                m_GumpDictionary.Remove(to);

                //Close existing gump if it exists
                if (to.HasGump(typeof(AntiMacroGump)))
                    to.CloseGump(typeof(AntiMacroGump));

                to.SendGump(new AntiMacroGump(oldGump) );

                return;
            }

            if ( !MySQLManager.SQLEnabled)
            {
                to.SendGump(new OldAntiMacroGump(to));
                return;
            }

            AntiMacroGump gump = new AntiMacroGump(to);
            new Thread(gump.ThreadedGump).Start();
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:25,代码来源:AntiMacroGump.cs

示例12: OnTalk

 public void OnTalk(PlayerMobile talker, bool contextMenu)
 {
     if (talker.Player)
     {
         talker.CloseGump(typeof(DuelScoreGump));
         talker.SendGump(new DuelScoreGump(talker));
         Say("*The scribe looks trough his scrolls, finds what he is looking for. And hands you a piece of paper with your name on it.*");
     }
 }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:9,代码来源:DuelScribe.cs

示例13: CustomSpellBookGump

        public CustomSpellBookGump( PlayerMobile from, CustomSpellBook spellbook, int position )
            : base(0, 0)
        {
            if( from != null )
            {
                from.CloseGump( typeof( CustomSpellBookGump ) );
                m = from;
            }

            if( position < 0 )
                position = 0;

            index = position;

            this.Closable=true;
            this.Disposable=true;
            this.Dragable=true;
            this.Resizable=false;

            AddPage(0);
            AddImage(192, 182, 2220);

            if( spellbook != null )
            {
                book = spellbook;

                if( book.Spells.Count > index )
                {
                    if( index > 0 )
                        AddButton(242, 190, 2205, 2205, 1, GumpButtonType.Reply, 0);

                    AddLabel(252, 235, 2010, book.Spells[index].CustomName);
                    AddLabel(280, 289, 2983, @"Check Stats");
                    AddLabel(280, 314, 2983, @"Copy to Scroll");
                    AddLabel(280, 339, 2983, @"Remove Spell");
                    AddButton(334, 228, book.Spells[index].IconID, book.Spells[index].IconID, 3, GumpButtonType.Reply, 0);
                    AddButton(260, 292, 30008, 30009, 4, GumpButtonType.Reply, 0);
                    AddButton(260, 317, 30008, 30009, 5, GumpButtonType.Reply, 0);
                    AddButton(260, 342, 30008, 30009, 6, GumpButtonType.Reply, 0);
                }

                if( book.Spells.Count > (index +1) )
                {
                    if( book.Spells.Count > (index +2) )
                        AddButton(513, 190, 2206, 2206, 2, GumpButtonType.Reply, 0);

                    AddLabel(409, 235, 2010, book.Spells[index + 1].CustomName);
                    AddLabel(437, 289, 2983, @"Check Stats");
                    AddLabel(437, 314, 2983, @"Copy to Scroll");
                    AddLabel(437, 339, 2983, @"Remove Spell");
                    AddButton(491, 228, book.Spells[index + 1].IconID, book.Spells[index + 1].IconID, 7, GumpButtonType.Reply, 0);
                    AddButton(417, 292, 30008, 30009, 8, GumpButtonType.Reply, 0);
                    AddButton(417, 317, 30008, 30009, 9, GumpButtonType.Reply, 0);
                    AddButton(417, 342, 30008, 30009, 10, GumpButtonType.Reply, 0);
                }
            }
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:57,代码来源:CustomSpellBookGump.cs

示例14: MLQuestFinishGump

        public MLQuestFinishGump( PlayerMobile pm, BaseQuest quest, MondainQuester quester )
            : base(75, 25)
        {
            m_Quest = quest;
            m_From = pm;
            m_Quester = quester;

            if ( m_Quest.Complete == null )
            {
                if ( QuestHelper.TryDeleteItems( m_Quest ) )
                {
                    if ( QuestHelper.AnyRewards( m_Quest ) )
                    {
                        m_From.CloseGump( this.GetType() );
                        m_From.SendGump( new MLQuestRewardGump( m_Quest ) );
                    }
                    else
                        m_Quest.GiveRewards();
                }

                return;
            }

            Intern( "" );

            AddPage( 1 );

            Closable = false;
            AddImageTiled( 50, 20, 400, 400, 0x1404 );
            AddImageTiled( 50, 29, 30, 390, 0x28DC );
            AddImageTiled( 34, 140, 17, 279, 0x242F );
            AddImage( 48, 135, 0x28AB );
            AddImage( -16, 285, 0x28A2 );
            AddImage( 0, 10, 0x28B5 );
            AddImage( 25, 0, 0x28B4 );
            AddImageTiled( 83, 15, 350, 15, 0x280A );
            AddImage( 34, 419, 0x2842 );
            AddImage( 442, 419, 0x2840 );
            AddImageTiled( 51, 419, 392, 17, 0x2775 );
            AddImageTiled( 415, 29, 44, 390, 0xA2D );
            AddImageTiled( 415, 29, 30, 390, 0x28DC );
            AddLabelIntern( 100, 50, 0x481, 0 );
            AddImage( 370, 50, 0x589 );
            AddImage( 379, 60, 0x15A9 );
            AddImage( 425, 0, 0x28C9 );
            AddImage( 90, 33, 0x232D );
            AddHtmlLocalized( 130, 45, 270, 16, 3006156, 0xFFFFFF, false, false ); // Quest Conversation
            AddImageTiled( 130, 65, 175, 1, 0x238D );
            AddHtmlLocalized( 130, 68, 220, 48, 1114513, String.Format( "#{0}", quest.Title.ToString() ), 0x2710, false, false );

            AddHtmlObject( 98, 140, 312, 180, quest.Complete, 0x15F90, false, true );
            AddButton( 95, 395, 0x2EE9, 0x2EEB, 4, GumpButtonType.Reply, 0 ); // Continue
            AddKRHtmlLocalized( 0, 0, 0, 0, 1011036, false, false );
            AddKRHtmlLocalized( 0, 0, 0, 0, 1011012, false, false );
            AddButton( 313, 395, 0x2EE6, 0x2EE8, 3, GumpButtonType.Reply, 0 ); // Close
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:56,代码来源:MLQuestFinishGump.cs

示例15: QuestLogGump

		public QuestLogGump( PlayerMobile pm, bool closeGumps )
			: base( 1046026 ) // Quest Log
		{
			m_Owner = pm;
			m_CloseGumps = closeGumps;

			if ( closeGumps )
			{
				pm.CloseGump( typeof( QuestLogGump ) );
				pm.CloseGump( typeof( QuestLogDetailedGump ) );
			}

			RegisterButton( ButtonPosition.Right, ButtonGraphic.Okay, 3 );

			SetPageCount( 1 );

			BuildPage();

			int numberColor, stringColor;

			MLQuestContext context = MLQuestSystem.GetContext( pm );

			if ( context != null )
			{
				List<MLQuestInstance> instances = context.QuestInstances;

				for ( int i = 0; i < instances.Count; ++i )
				{
					if ( instances[i].Failed )
					{
						numberColor = 0x3C00;
						stringColor = 0x7B0000;
					}
					else
					{
						numberColor = stringColor = 0xFFFFFF;
					}

					TextDefinition.AddHtmlText( this, 98, 140 + 21 * i, 270, 21, instances[i].Quest.Title, false, false, numberColor, stringColor );
					AddButton( 368, 140 + 21 * i, 0x26B0, 0x26B1, 6 + i, GumpButtonType.Reply, 1 );
				}
			}
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:43,代码来源:QuestLogGump.cs


注:本文中的Server.Mobiles.PlayerMobile.CloseGump方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。