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


C# Client.Gump类代码示例

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


Gump类属于Client命名空间,在下文中一共展示了Gump类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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