• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GumpButtonType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中GumpButtonType的典型用法代码示例。如果您正苦于以下问题:C# GumpButtonType类的具体用法?C# GumpButtonType怎么用?C# GumpButtonType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GumpButtonType类属于命名空间,在下文中一共展示了GumpButtonType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddImageTiledButton

 public void AddImageTiledButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type,
                                    int itemID, int hue, int width, int height, GumpResponse callback,
                                    int param = 0, int localizedTooltip = -1, string name = "")
 {
     this.Add(new GumpImageTileButton(x, y, normalID, pressedID, this.NewID(), type, param, itemID, hue, width,
                                      height, callback, localizedTooltip, name));
 }
开发者ID:GaeaUO,项目名称:ForkUO,代码行数:7,代码来源:Buttons.cs


示例2: KRGumpButton

		public KRGumpButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
		{
			m_X = x;
			m_Y = y;
			m_ID1 = normalID;
			m_ID2 = pressedID;
			m_ButtonID = buttonID;
			m_Type = type;
			m_Param = param;
		}
开发者ID:zerodowned,项目名称:JustUO-merged-with-EC-Support,代码行数:10,代码来源:KRGumpButton.cs


示例3: AddButton

		public new void AddButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
		{
			if (type == GumpButtonType.Page)
			{
				AddButton(new GumpButton(x, y, normalID, pressedID, 0, GumpButtonType.Page, param), null);
			}
			else
			{
				AddButton(x, y, normalID, pressedID, buttonID, null);
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:11,代码来源:SuperGump_Buttons.cs


示例4: GumpButton

 public GumpButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, GumpResponse callback, string name)
 {
     this._X = x;
     this._Y = y;
     this._ID1 = normalID;
     this._ID2 = pressedID;
     this._EntryID = buttonID;
     this._Type = type;
     this._Param = param;
     this._Callback = callback;
     this._Name = (name != null ? name : "");
 }
开发者ID:havik,项目名称:ForkUO,代码行数:12,代码来源:GumpButton.cs


示例5: AddButton

		public void AddButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			GumpButtonType type,
			GumpResponse callback,
			int param = 0,
			string name = "")
		{
			Add(new GumpButton(x, y, normalID, pressedID, NewID(), type, param, callback, name));
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:12,代码来源:Buttons.cs


示例6: GumpImageTileButton

		public GumpImageTileButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height,
			string name)
			: this(x, y, normalID, pressedID, -1, type, param, itemID, hue, width, height, null, -1, name)
		{ }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:14,代码来源:GumpImageTileButton.cs


示例7: GumpButtonTileArt

		public GumpButtonTileArt( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int buttonID, int itemid, int hue, int width, int height, int localizedTooltip )
		{
			m_X = x;
			m_Y = y;
			m_ID1 = normalID;
			m_ID2 = pressedID;
			m_Type = type;
			m_Param = param;
			m_ButtonID = buttonID;
			m_ItemID = itemid;
			m_Hue = hue;
			m_Width = width;
			m_Height = height;

            m_LocalizedTooltip = localizedTooltip;
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:16,代码来源:GumpButtonTileArt.cs


示例8: GumpImageTileButton

        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip)
        {
            this.m_X = x;
            this.m_Y = y;
            this.m_ID1 = normalID;
            this.m_ID2 = pressedID;
            this.m_ButtonID = buttonID;
            this.m_Type = type;
            this.m_Param = param;

            this.m_ItemID = itemID;
            this.m_Hue = hue;
            this.m_Width = width;
            this.m_Height = height;

            this.m_LocalizedTooltip = localizedTooltip;
        }
开发者ID:m309,项目名称:ForkUO,代码行数:17,代码来源:GumpImageTileButton.cs


示例9: AddImageTiledButton

		public void AddImageTiledButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			int buttonID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height,
			int localizedTooltip = -1,
			string name = "")
		{
			Add(
				new GumpImageTileButton(
					x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, null, localizedTooltip, name));
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:19,代码来源:Buttons.cs


示例10: GumpImageTileButton

        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, GumpResponse callback, int localizedTooltip, string name)
        {
            this._X = x;
            this._Y = y;
            this._ID1 = normalID;
            this._ID2 = pressedID;
            this._EntryID = buttonID;
            this._Type = type;
            this._Param = param;

            this._ItemID = itemID;
            this._Hue = hue;
            this._Width = width;
            this._Height = height;

            this._LocalizedTooltip = localizedTooltip;

            this._Callback = callback;
            this._Name = (name != null ? name : "");
        }
开发者ID:GaeaUO,项目名称:ForkUO,代码行数:20,代码来源:GumpImageTileButton.cs


示例11: AddImageTiledButton

		public new void AddImageTiledButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			int buttonID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height)
		{
			if (type == GumpButtonType.Page)
			{
				AddImageTiledButton(
					new GumpImageTileButton(x, y, normalID, pressedID, 0, GumpButtonType.Page, param, itemID, hue, width, height), null);
			}
			else
			{
				AddImageTiledButton(x, y, normalID, pressedID, buttonID, itemID, hue, width, height, null);
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:23,代码来源:SuperGump_TileButtons.cs


示例12: GumpButton

		public GumpButton(
			int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse callback, string name)
			: this(x, y, normalID, pressedID, -1, type, param, callback, name)
		{ }
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:4,代码来源:GumpButton.cs


示例13: AddCallbackButton

 public void AddCallbackButton(int x, int y, int buttonIDnormal, int buttonIDpushed, int id, GumpButtonType type, int page, Action<GumpButton> callback)
 {
     GumpButton b = new GumpButton(x, y, buttonIDnormal, buttonIDpushed, id, type, page);
     ButtonCallbacks[b] = callback;
     Add(b);
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:6,代码来源:TitlesMenu.cs


示例14: AddImageTiledButton

		public void AddImageTiledButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height )
		{
			Add( new GumpImageTileButton( x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height ) );
		}
开发者ID:brodock,项目名称:genova-project,代码行数:4,代码来源:Gump.cs


示例15: AddButton

		public void AddButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
		{
			Add( new GumpButton( x, y, normalID, pressedID, buttonID, type, param ) );
		}
开发者ID:brodock,项目名称:genova-project,代码行数:4,代码来源:Gump.cs


示例16: AddButton

		public virtual void AddButton( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse response )
		{
			m_RootParent.AddButton( x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, response );
			m_ButtonCount++;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:5,代码来源:BaseGumpSection.cs


示例17: AddButtonTileArt

 public void AddButtonTileArt( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int buttonID, int itemid, int hue, int width, int height )
 {
     Add( new GumpButtonTileArt( x, y, normalID, pressedID, type, param, buttonID, itemid, hue, width, height ) );
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Gump.cs


示例18: AddImageTiledButton

		public virtual void AddImageTiledButton( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip, GumpResponse response )
		{
			m_RootParent.AddImageTiledButton( x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, itemID, hue, width, height, localizedTooltip, response );
			m_ButtonCount++;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:5,代码来源:BaseGumpSection.cs


示例19: AddButton

 public void AddButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
 {
     GumpElement ge = new GumpElement();
     ge.Type = ElementType.button;
     ge.X = x;
     ge.Y = y;
     ge.InactiveID = normalID;
     ge.ActiveID = pressedID;
     ge.ButtonType = (int) type;
     ge.ElementID = buttonID;
     ge.Param = param;
     Add( ge );
 }
开发者ID:greeduomacro,项目名称:UOMachine,代码行数:13,代码来源:Gump.cs


示例20: AddImageTiledButton

 public void AddImageTiledButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip )
 {
     GumpElement ge = new GumpElement();
     ge.Type = ElementType.buttontileart;
     ge.X = x;
     ge.Y = y;
     ge.InactiveID = normalID;
     ge.ActiveID = pressedID;
     ge.ElementID = buttonID;
     ge.ButtonType = (int) type;
     ge.Param = param;
     ge.ItemID = itemID;
     ge.Hue = hue;
     ge.Height = height;
     ge.Width = width;
     ge.Cliloc = localizedTooltip;
     Add( ge );
 }
开发者ID:greeduomacro,项目名称:UOMachine,代码行数:18,代码来源:Gump.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Gun类代码示例发布时间:2022-05-24
下一篇:
C# Guild类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap