本文整理汇总了C#中GumpButtonType类的典型用法代码示例。如果您正苦于以下问题:C# GumpButtonType类的具体用法?C# GumpButtonType怎么用?C# GumpButtonType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GumpButtonType类属于命名空间,在下文中一共展示了GumpButtonType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例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;
}
示例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);
}
}
示例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 : "");
}
示例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));
}
示例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)
{ }
示例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;
}
示例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;
}
示例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));
}
示例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 : "");
}
示例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);
}
}
示例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)
{ }
示例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);
}
示例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 ) );
}
示例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 ) );
}