sm

立即登录 | 账号注册

积分: 0 |用户组: 游客

搜索
服务器租用 传奇3一条龙 996 支付平台源码 无法下载点击此处反馈
查看: 1416|回复: 0

[传奇3源码] C#传奇3 Zircon商城代码源代码

[复制链接]

826

主题

36

回帖

23万

积分

霸王教主

积分
234697
发表于 2022-4-19 21:00:40 | 显示全部楼层 |阅读模式
1.jpg


  1.   /// <summary>
  2.     /// 商城
  3.     /// </summary>
  4.     public sealed class ShangChengDialog : DXWindow1
  5.     {
  6.         #region Store

  7.         public DXTextBox StoreItemNameBox, StoreBuyTotalBox;
  8.         public DXNumberBox StoreBuyCountBox, StoreBuyPriceBox, GameGoldBox, HuntGoldBox;
  9.         public DXComboBox StoreItemTypeBox, StoreSortBox;
  10.         public DXControl StoreBuyPanel;
  11.         public DXButton StoreBuyButton, StoreSearchButton, ClearButton,YuanbaoLabel;
  12.         public DXCheckBox UseHuntGoldBox;
  13.         public DXVScrollBar StoreScrollBar1;
  14.         public DXLabel StoreBuyPriceLabel;
  15.         public DXControl Panel;
  16.         public MarketPlaceStoreRow[] StoreRows;
  17.         public List<StoreInfo> StoreSearchResults;
  18.         public DXCheckBox FastBox;
  19.         public List<DXButton> FilterButton;
  20.         public DXVScrollBar FilterScrollBar;
  21.         public DXControl FilterPanel;
  22.         public DXButton CurrentButton;

  23.         public int Xianyouyuanbao;
  24.         public int Xianyoubangyuan;
  25.         #endregion
  26.             label = new DXLabel
  27.             {
  28.                 Parent = filterPanel1,
  29.                 Location = new Point(StoreItemNameBox.Location.X + StoreItemNameBox.Size.Width + 10, 5),
  30.                 Text = "物品:",
  31.             };



  32.             StoreItemTypeBox = new DXComboBox
  33.             {
  34.                 Parent = filterPanel1,
  35.                 Location = new Point(label.Location.X + label.Size.Width + 5, label.Location.Y),
  36.                 Size = new Size(95, DXComboBox.DefaultNormalHeight),
  37.                 DropDownHeight = 198
  38.             };


  39.             new DXListBoxItem
  40.             {
  41.                 Parent = StoreItemTypeBox.ListBox,
  42.                 Label = { Text = $"全部" },
  43.                 Visible = false,
  44.                 Item = null
  45.             };

  46.             TODO Store Filter

  47.             HashSet<string> filters = new HashSet<string>();

  48.             foreach (StoreInfo info in Globals.StoreInfoList.Binding)
  49.             {
  50.                 if (string.IsNullOrEmpty(info.Filter)) continue;

  51.                 string[] temp = info.Filter.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

  52.                 foreach (string s in temp)
  53.                     filters.Add(s.Trim());
  54.             }

  55.             foreach (string filter in filters.OrderBy(x => x))
  56.             {
  57.                 new DXListBoxItem
  58.                 {
  59.                     Parent = StoreItemTypeBox.ListBox,
  60.                     Label = { Text = filter },
  61.                     Item = filter
  62.                 };
  63.             }

  64.             StoreItemTypeBox.ListBox.SelectItem(null);


  65.             label = new DXLabel
  66.             {
  67.                 Visible = false,
  68.                 Parent = filterPanel1,
  69.                 Location = new Point(StoreItemTypeBox.Location.X + StoreItemTypeBox.Size.Width + 10, 5),
  70.                 Text = "排序:",
  71.             };

  72.             StoreSortBox = new DXComboBox
  73.             {
  74.                 Visible=false,
  75.                 Parent = filterPanel1,
  76.                 Location = new Point(label.Location.X + label.Size.Width + 5, label.Location.Y),
  77.                 Size = new Size(100, DXComboBox.DefaultNormalHeight)
  78.             };

  79.             Type storeType = typeof(MarketPlaceStoreSort);

  80.             for (MarketPlaceStoreSort i = MarketPlaceStoreSort.Alphabetical; i <= MarketPlaceStoreSort.Favourite; i++)
  81.             {
  82.                 MemberInfo[] infos = storeType.GetMember(i.ToString());

  83.                 DescriptionAttribute description = infos[0].GetCustomAttribute<DescriptionAttribute>();
  84.                 new DXListBoxItem
  85.                 {
  86.                     Parent = StoreSortBox.ListBox,
  87.                     Label = { Text = description?.Description ?? i.ToString() },
  88.                     Item = i,
  89.                     Opacity = 0.5f
  90.                 };
  91.             }
复制代码

游客,如果您要查看本帖隐藏内容请回复





上一篇:传奇3寄售代码 C# Zircon源代码
下一篇:C#传奇3大补帖增强免蜡源代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|美林GM论坛 ( 蜀ICP备2020030293号-2 )|网站地图

禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.如遇版权问题,请及时QQ联系

GMT+8, 2024-4-19 05:19 , Processed in 0.263616 second(s), 51 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表