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


C# Mobile.HasGump方法代码示例

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


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

示例1: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{	
			if ( from.InRange( GetWorldLocation(), 2 ) )
			{
				if ( BlueMageControl.IsBlueMage( from ) )
				{
					if ( from.HasGump( typeof( BlueQuitGump ) ) )
						from.CloseGump( typeof( BlueQuitGump ) );

					from.SendGump( new BlueQuitGump( from ) );
				}
				else
				{
					if ( from.AccessLevel == AccessLevel.Player )
						from.SendMessage( "Please speak to Ben in New Haven" );
					else
					{
						if ( from.HasGump( typeof( BlueAcceptGump ) ) )
							from.CloseGump( typeof( BlueAcceptGump ) );
						
						from.SendGump( new BlueAcceptGump( from ) );
					}
				}
			}

		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:26,代码来源:BlueJoinStone.cs

示例2: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{
			if( m_Owner == from && !from.HasGump( typeof( TentManagementGump ) ) && !from.HasGump( typeof( ConfirmTentPlacementGump ) ) )
			{
				from.SendGump( new TentManagementGump( from, this ) );
			}
			else
			{
				from.SendMessage( "This is not your tent!" );
			}
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:11,代码来源:TentBedroll.cs

示例3: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{
			PlayerMobile m;

			if ( m_Points < 1 )
			{
				from.SendMessage("That is empty!");
			}
			else if ( !IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			}
			else if ( from.HasGump( typeof( IncreaseSkillsGump ) ) )
			{
				from.SendMessage( "You may not have more than one Skill Gump running." );
			}
			else
			{
				if ( from is PlayerMobile )
				{
					m = from as PlayerMobile;
					m.SendGump( new IncreaseSkillsGump( m, this, true, 0 ) );
				}
			}
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:25,代码来源:SkillBall.cs

示例4: OnDoubleClick

 public override void OnDoubleClick(Mobile from)
 {
     if (!from.HasGump(typeof(TithingGump)))
     {
         from.SendGump(new TithingGump(from, 0));
     }
 }
开发者ID:greeduomacro,项目名称:annox,代码行数:7,代码来源:Donate.cs

示例5: OnMoveOver

		public override bool OnMoveOver( Mobile m )
		{
			if ( !m.HasGump( typeof( ConfirmExitInstanceGump ) ) )
				m.SendGump( new ConfirmExitInstanceGump( this ) );

			return base.OnMoveOver( m );
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:InstanceExitGate.cs

示例6: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{
			if (from.HasGump( typeof (CraftRequestGump) ) )
				from.CloseGump( typeof (CraftRequestGump) );
			
			from.SendGump( new CraftRequestGump( 1, this, from, ref m_orders ));
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:Ordertaker.cs

示例7: Notify

		public static void Notify( Mobile m )
		{
			if ( m.HasGump( typeof( ErrorsGump ) ) )
				new ErrorsGump( m );
			else
				new ErrorsNotifyGump( m );
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:Errors.cs

示例8: HelpGump

		public HelpGump( Mobile from )
			: base( 0, 0 )
		{
			_from = from;

			if( from.HasGump( typeof( HelpGump ) ) )
				from.CloseGump( typeof( HelpGump ) );

			AddPage( 0 );
			AddBackground( 10, 10, 430, 350, 9250 );
			AddAlphaRegion( 25, 50, 400, 265 );
			AddLabel( 100, 30, LabelHue, "Help Menu" );

			AddLabel( 345, 320, LabelHue, "Cancel" );
			AddButton( 395, 320, 4020, 4022, 0, GumpButtonType.Reply, 0 );

			AddHtml( 70, 60, 350, 75, @"<u>General Question:</u> Select this option if you have a general gameplay question. This encompasses questions about the shard's custom systems, command usage, and skill usage.", true, true );
			AddHtml( 70, 145, 350, 75, @"<u>Harrassment:</u> Use this option if another player is harrassing you, verbally or with game mechanics (i.e. luring monsters to attack you). Please be aware that we take all harrassment claims seriously, and it is inadvisable to report illegitimate claims of this type.", true, true );
			AddHtml( 70, 230, 350, 75, @"<u>Other:</u> Select this page type if your question or concern does not fall under any of the others. Use this category for suggestions, bug reports, and account management questions as well.", true, true );

			int x = 35, y = 85;

			for( int i = 1; i < 4; i++, y += 85 )
			{
				AddButton( x, y, 4005, 4007, i, GumpButtonType.Reply, 0 );
			}
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:27,代码来源:HelpGump.cs

示例9: OnUse

		public override void OnUse( Mobile from )
		{
			if ( from.HasGump( typeof( MonkStrikeGump ) ) )
				from.CloseGump( typeof( MonkStrikeGump ) );

			from.SendGump( new MonkStrikeGump( from ) );
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:MonkStrike.cs

示例10: OnTargetFinish

 protected override void OnTargetFinish( Mobile from )
 {
     if ( !m_Plant.Deleted && m_Plant.PlantStatus < PlantStatus.DecorativePlant && from.InRange( m_Plant.GetWorldLocation(), 3 ) && m_Plant.IsUsableBy( from ) && !from.HasGump( typeof(MainPlantGump) ) )
     {
         from.SendGump( new MainPlantGump( m_Plant ) );
     }
 }
开发者ID:vexilar,项目名称:RunUO_Rebar,代码行数:7,代码来源:PlantPourTarget.cs

示例11: OnDoubleClick

        public override void OnDoubleClick( Mobile from )
        {
            if ( this.Parent != null || !this.VerifyMove( from ) )
                return;

            if ( !from.InRange( this, 2 ) )
            {
                from.LocalOverheadMessage( MessageType.Regular, 0x3B2, true, "I can't reach that." ); // I can't reach that.
                return;
            }

            if ( this.ItemID == 0xA57 ) // rolled
            {
                Direction dir = PlayerMobile.GetDirection4( from.Location, this.Location );

                if ( dir == Direction.North || dir == Direction.South )
                    this.ItemID = 0xA55;
                else
                    this.ItemID = 0xA56;
            }
            else // unrolled
            {
                this.ItemID = 0xA57;

                if ( !from.HasGump( typeof( LogoutGump ) ) )
                {
                    CampfireEntry entry = Campfire.GetEntry( from );

                    if ( entry != null && entry.Safe )
                        from.SendGump( new LogoutGump( entry, this ) );
                }
            }
        }
开发者ID:Godkong,项目名称:Origins,代码行数:33,代码来源:Bedroll.cs

示例12: Notify

		public static void Notify( Mobile m )
		{
			if ( m.HasGump( typeof( ErrorsGump ) ) )
				ErrorsGump.SendTo( m );
			else
				ErrorsNotifyGump.SendTo( m );
		}
开发者ID:greeduomacro,项目名称:uodarktimes-1,代码行数:7,代码来源:Errors.cs

示例13: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{
			BaseHouse house = BaseHouse.FindHouseAt( this );
			if ( !( house == null || !house.IsOwner( from ) || !house.IsCoOwner( from ) ) && !from.HasGump( typeof(FlameCloseGump) ) )
			{
				from.SendGump( new FlameCloseGump( this ) );
			}
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:8,代码来源:FlamingHead.cs

示例14: Resend

        public void Resend( Mobile from )
        {
            AddOnEditor_Att addoneditor = (AddOnEditor_Att)XmlAttach.FindAttachment(from, typeof(AddOnEditor_Att));

            if( from.HasGump(typeof(AddOnEditor)) ) {
                from.CloseGump(typeof(AddOnEditor));
            }
            from.SendGump( new AddOnEditor( from, addoneditor) );
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:9,代码来源:AddOnEditor_Att.cs

示例15: OnDoubleClick

		public override void OnDoubleClick( Mobile from )
		{
			if ( !IsChildOf( from.Backpack ) )
				from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			else if ( from.HasGump( typeof(CarpetGump) ) )
				from.SendMessage( "You are already choosing a style of carpet." );
			else
				BoundingBoxPicker.Begin( from, new BoundingBoxCallback( BoundingBox_Callback ), null );
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:9,代码来源:CarpetAddonDeed.cs


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