本文整理汇总了C#中Client.Gump类的典型用法代码示例。如果您正苦于以下问题:C# Gump类的具体用法?C# Gump怎么用?C# Gump使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Gump类属于Client命名空间,在下文中一共展示了Gump类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Remove_OnClick
private void Remove_OnClick(Gump g)
{
this.m_Account.Server.RemoveAccount(this.m_Account);
Profiles.Save();
Engine.UpdateSmartLoginMenu();
this.Close();
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:7,代码来源:GEditAccount.cs
示例2: AddGumpTo
public static void AddGumpTo(string Parent, Gump Child)
{
if (m_xFiles.Contains(Parent) && m_MainGumps.Contains(Parent))
{
((Gump) m_MainGumps[Parent]).Children.Add(Child);
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:7,代码来源:xGumps.cs
示例3: Route_OnClick
private void Route_OnClick(Gump g)
{
if (this.m_OnClick != null)
{
this.m_OnClick(this);
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:7,代码来源:GFlatButton.cs
示例4: OnDragDrop
protected internal override void OnDragDrop(Gump g)
{
if (g is GSpellIcon)
{
g.X = (Engine.GameX + this.m_GameOffsetX) + 2;
g.Y = (Engine.GameY + this.m_GameOffsetY) + 2;
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:8,代码来源:GSpellPlaceholder.cs
示例5: Tooltip
public Tooltip(string Text, bool Big, int Width)
{
this.m_Text = Text;
this.m_Big = Big;
this.m_Gump = null;
this.m_Delay = 1f;
this.m_WrapWidth = Width;
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:8,代码来源:Tooltip.cs
示例6: GHotspot
public GHotspot(int X, int Y, int Width, int Height, Gump Target)
: base(X, Y)
{
this.m_NormalHit = true;
this.m_Width = Width;
this.m_Height = Height;
this.m_Target = Target;
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:8,代码来源:GHotspot.cs
示例7: Add
public int Add(Gump ToAdd)
{
this.m_Array = null;
Gumps.Invalidate();
ToAdd.Parent = this.m_Owner;
this.m_Count++;
return this.m_List.Add(ToAdd);
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:8,代码来源:GumpList.cs
示例8: Okay_OnClick
private void Okay_OnClick(Gump g)
{
string title = this.m_Title.String;
string address = this.m_Address.String;
string str3 = this.m_Port.String;
Profiles.AddServer(new ServerProfile(title, address, Convert.ToInt32(str3)));
Profiles.Save();
Engine.UpdateSmartLoginMenu();
this.Close();
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:10,代码来源:GNewServer.cs
示例9: GSpellbookIcon
public GSpellbookIcon(Gump book, Item container)
: base(container.BookIconX, container.BookIconY, Spells.GetBookIcon(container.ID))
{
this.m_Book = book;
this.m_Container = container;
this.m_Container.OpenSB = true;
base.m_CanDrag = true;
base.m_QuickDrag = false;
base.m_GUID = string.Format("Spellbook Icon #{0}", container.Serial);
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:10,代码来源:GSpellbookIcon.cs
示例10: Okay_OnClick
private void Okay_OnClick(Gump g)
{
string title = this.m_Title.String;
string username = this.m_Username.String;
string password = this.m_Password.String;
AccountProfile account = new AccountProfile(this.m_Server, title, username, password);
this.m_Server.AddAccount(account);
new ServerSync(this.m_Server, account, null);
Profiles.Save();
Engine.UpdateSmartLoginMenu();
this.Close();
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:12,代码来源:GNewAccount.cs
示例11: Delete_OnClick
private void Delete_OnClick(Gump g)
{
ArrayList list = new ArrayList(this.m_Macro.Actions);
list.Remove(this.m_Action);
this.m_Macro.Actions = (Action[]) list.ToArray(typeof(Action));
GMacroEditorForm parent = this.m_Panel.Parent.Parent as GMacroEditorForm;
if (parent != null)
{
parent.Current = parent.Current;
}
Gumps.Destroy(this);
Gumps.Focus = parent;
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:13,代码来源:GEditAction.cs
示例12: OnScroll
private void OnScroll(double vNew, double vOld, Gump sender)
{
int num = (int) vNew;
Gump[] gumpArray = base.m_Children.ToArray();
for (int i = 0; i < gumpArray.Length; i++)
{
GServerEntry entry = gumpArray[i] as GServerEntry;
if (entry != null)
{
entry.Y = entry.yBase - num;
}
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:13,代码来源:GServerList.cs
示例13: Okay_OnClick
private void Okay_OnClick(Gump g)
{
this.m_Account.Title = this.m_Title.String;
this.m_Account.Username = this.m_Username.String;
this.m_Account.Password = this.m_Password.String;
if ((this.m_Account.Menu != null) && (this.m_Account.Menu != this.m_Account.Server.Menu))
{
this.m_Account.Menu.Text = this.m_Account.Title;
}
new ServerSync(this.m_Account.Server, this.m_Account, null);
Profiles.Save();
this.Close();
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:13,代码来源:GEditAccount.cs
示例14: UpdateGump
public override void UpdateGump(Gump g)
{
GMainMenu menu = (GMainMenu) g;
GMenuItem item = (GMenuItem) menu.Children[0];
InfoNode active = base.Active as InfoNode;
if (active == null)
{
item.Text = base.Name;
}
else
{
item.Text = active.Name;
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:14,代码来源:InfoInputTree.cs
示例15: UpdateGump
public override void UpdateGump(Gump g)
{
g.Children.Clear();
Table2DInfoNode active = base.Inputs[0].Active as Table2DInfoNode;
if (active == null)
{
GLabel toAdd = new GLabel("Select a spell type from the list above.", Engine.GetUniFont(1), GumpHues.WindowText, 0, 0);
g.Children.Add(toAdd);
}
else
{
int num = 0;
for (int i = 0; i < active.Descriptors.Length; i++)
{
TableGump gump = new TableGump(active.Descriptors[i]) {
Y = num
};
num += gump.Height + 10;
g.Children.Add(gump);
}
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:22,代码来源:CastingInfoProvider.cs
示例16: OnDragDrop
protected internal override void OnDragDrop(Gump g)
{
if ((g != null) && (g.GetType() == typeof(GDraggedItem)))
{
GDraggedItem item = (GDraggedItem) g;
Item toEquip = item.Item;
Item item3 = null;
Gump[] gumpArray = base.m_Children.ToArray();
Point point = base.PointToClient(new Point(Engine.m_xMouse, Engine.m_yMouse));
for (int i = gumpArray.Length - 1; i >= 0; i--)
{
if ((gumpArray[i] is GPaperdollItem) && gumpArray[i].HitTest(point.X - gumpArray[i].X, point.Y - gumpArray[i].Y))
{
item3 = ((GPaperdollItem) gumpArray[i]).Item;
break;
}
}
if ((item3 != null) && Map.m_ItemFlags[item3.ID & 0x3fff][TileFlag.Container])
{
Network.Send(new PDropItem(toEquip.Serial, -1, -1, 0, item3.Serial));
}
else if (Map.m_ItemFlags[toEquip.ID & 0x3fff][TileFlag.Wearable])
{
Network.Send(new PEquipItem(toEquip, this.m_Mobile));
}
else
{
Network.Send(new PDropItem(toEquip.Serial, -1, -1, 0, World.Serial));
}
Gumps.Destroy(item);
}
if (this.m_Image != null)
{
Gumps.Destroy(this.m_Image);
this.m_Image = null;
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:37,代码来源:GPaperdoll.cs
示例17: OnDragEnter
protected internal override void OnDragEnter(Gump g)
{
if ((g != null) && (g.GetType() == typeof(GDraggedItem)))
{
GDraggedItem item = (GDraggedItem) g;
Item item2 = item.Item;
int iD = item2.ID;
int hue = item2.Hue;
Engine.ItemArt.Translate(ref iD, ref hue);
if (Map.m_ItemFlags[iD][TileFlag.Wearable])
{
if (this.m_Image != null)
{
Gumps.Destroy(this.m_Image);
}
this.m_Image = new GImage(Gumps.GetEquipGumpID(iD, this.m_Gender, ref hue), Hues.GetItemHue(iD, hue), 8, 0x13);
this.m_Image.Alpha = 0.5f;
int count = base.m_Children.Count;
LayerComparer paperdoll = LayerComparer.Paperdoll;
int num4 = paperdoll.GetValue(iD, (Layer) Map.GetQuality(iD));
for (int i = 0; i < base.m_Children.Count; i++)
{
Gump gump = base.m_Children[i];
if (gump.GetType() == typeof(GPaperdollItem))
{
GPaperdollItem item3 = (GPaperdollItem) gump;
if (paperdoll.GetValue(item3.Item.ID, (Layer) ((byte) item3.Layer)) < num4)
{
count = i;
break;
}
}
}
base.m_Children.Insert(count, this.m_Image);
}
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:37,代码来源:GPaperdoll.cs
示例18: GSecureTrade
public GSecureTrade(int serial, Gump container, string myName, string theirName)
: base(50, 50, 0x119, 0x74)
{
this.m_Serial = serial;
this.m_Container = container;
base.m_CanDrop = true;
base.FillAlpha = 0.5f;
base.FillColor = 0x6080ff;
GBorder3D toAdd = new GBorder3D(false, 0, 0, this.Width, this.Height) {
FillAlpha = 0f,
ShouldHitTest = false
};
base.m_Children.Add(toAdd);
GBorder3D borderd2 = new GBorder3D(true, 6, 6, 0x84, 0x68) {
FillAlpha = 0f,
ShouldHitTest = false
};
base.m_Children.Add(borderd2);
GBorder3D borderd3 = new GBorder3D(false, 7, 7, 130, 20) {
ShouldHitTest = false
};
GLabel label = new GLabel(this.Truncate(myName, Engine.GetUniFont(1), borderd3.Width - 0x1c), Engine.GetUniFont(1), Hues.Load(1), 0, 0);
borderd3.Children.Add(label);
label.Center();
label.X = 0x1c - label.Image.xMin;
base.m_Children.Add(borderd3);
GBorder3D borderd4 = new GBorder3D(true, 0x8f, 6, 0x84, 0x68) {
FillAlpha = 0f,
ShouldHitTest = false
};
base.m_Children.Add(borderd4);
GBorder3D borderd5 = new GBorder3D(false, 0x90, 7, 130, 20) {
ShouldHitTest = false
};
GLabel label2 = new GLabel(this.Truncate(theirName, Engine.GetUniFont(1), borderd5.Width - 0x1c), Engine.GetUniFont(1), Hues.Load(1), 0, 0);
borderd5.Children.Add(label2);
label2.Center();
label2.X = (borderd5.Width - 0x1c) - label2.Image.xMax;
base.m_Children.Add(borderd5);
GAlphaBackground background = new GAlphaBackground(1, 1, 5, 0x72) {
ShouldHitTest = false,
BorderColor = 0xc0c0c0,
FillColor = 0xc0c0c0,
FillAlpha = 1f
};
base.m_Children.Add(background);
background = new GAlphaBackground(0x113, 1, 5, 0x72) {
ShouldHitTest = false,
BorderColor = 0xc0c0c0,
FillColor = 0xc0c0c0,
FillAlpha = 1f
};
base.m_Children.Add(background);
background = new GAlphaBackground(6, 1, 0x10d, 5) {
ShouldHitTest = false,
BorderColor = 0xc0c0c0,
FillColor = 0xc0c0c0,
FillAlpha = 1f
};
base.m_Children.Add(background);
background = new GAlphaBackground(6, 110, 0x10d, 5) {
ShouldHitTest = false,
BorderColor = 0xc0c0c0,
FillColor = 0xc0c0c0,
FillAlpha = 1f
};
base.m_Children.Add(background);
background = new GAlphaBackground(0x8a, 6, 5, 0x68) {
ShouldHitTest = false,
BorderColor = 0xc0c0c0,
FillColor = 0xc0c0c0,
FillAlpha = 1f
};
base.m_Children.Add(background);
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:75,代码来源:GSecureTrade.cs
示例19: OnDragDrop
protected internal override void OnDragDrop(Gump g)
{
if (this.m_Container != null)
{
this.m_Container.OnDragDrop(g);
}
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:7,代码来源:GSecureTrade.cs
示例20: Cancel_OnClick
private void Cancel_OnClick(Gump g)
{
this.Close();
}
开发者ID:Skinny1001,项目名称:PlayUO,代码行数:4,代码来源:GEditAccount.cs
注:本文中的Client.Gump类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论