- 精华
- 阅读权限
- 110
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2013-3-23
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2021-9-21 21:04:02
|
显示全部楼层
GoldLabel = new DXLabel
{
AutoSize = false,
Border = true,
BorderColour = Color.FromArgb(198, 166, 99),
ForeColour = Color.White,
DrawFormat = TextFormatFlags.VerticalCenter,
Parent = this,
Location = new Point(ClientArea.Left + 80, ClientArea.Bottom - 65),
Text = "0",
Size = new Size(ClientArea.Width - 80, 20),
};
new DXLabel
{
AutoSize = false,
Border = true,
BorderColour = Color.FromArgb(198, 166, 99),
ForeColour = Color.White,
DrawFormat = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter,
Parent = this,
Location = new Point(ClientArea.Left, ClientArea.Bottom - 65),
Text = "修理费用:",
Size = new Size(79, 20),
IsControl = false,
};
DXButton inventory = new DXButton
{
Label = { Text = "背包" },
Location = new Point(ClientArea.X, GoldLabel.Location.Y + GoldLabel.Size.Height + 5),
ButtonType = ButtonType.SmallButton,
Parent = this,
Size = new Size(79, SmallButtonHeight)
};
inventory.MouseClick += (o, e) =>
{
foreach (DXItemCell cell in GameScene.Game.InventoryBox.Grid.Grid)
{
if (!cell.CheckLink(Grid)) continue;
cell.MoveItem(Grid, true);
}
};
DXButton equipment = new DXButton
{
Label = { Text = "装备" },
Location = new Point(ClientArea.X + 5 + inventory.Size.Width, GoldLabel.Location.Y + GoldLabel.Size.Height + 5),
ButtonType = ButtonType.SmallButton,
Parent = this,
Size = new Size(79, SmallButtonHeight)
};
equipment.MouseClick += (o, e) =>
{
foreach (DXItemCell cell in GameScene.Game.CharacterBox.Grid)
{
if (!cell.CheckLink(Grid)) continue;
cell.MoveItem(Grid, true);
}
};
DXButton storage = new DXButton
{
Label = { Text = "仓库" }, |
|