GemTD.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
namespace GemTD {
public partial class GemTD : Form {
Gem gem;
DataGridViewRow row;
Map map;
Graphics graphics;
public GemTD()
{
InitializeComponent();
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true);
}
void PanelMapGraphicsInit()
{
graphics = panelMap.CreateGraphics();
}
private void GemTDLoad(object sender, EventArgs e)
{
gem = new Gem();
map = new Map(gem);
DgvLoad();
GemCurrentSelect(0);
PanelMapGraphicsInit();
MapPaint();
MapCountUpdate();
MapLengthUpdate();
}
void DgvLoad()
{
for (int i = 0; i < gem.gemInfos.Length; i++) {
DgvLoadRow(gem.gemInfos[i]);
}
}
void DgvLoadRow(Gem.GemInfo info)
{
if (!info.show) {
return;
}
int row = dgvGem.Rows.Add();
dgvGem.Rows[row].Cells[0].Value = row;
dgvGem.Rows[row].Cells[1].Value = info.name;
dgvGem.Rows[row].Cells[1].Style.ForeColor = info.color;
dgvGem.Rows[row].Cells[2].Value = info.level;
dgvGem.Rows[row].Cells[3].Value = info.image;
dgvGem.Rows[row].Cells[4].Value = info.auraRange;
dgvGem.Rows[row].Cells[5].Value = info.attackRange;
dgvGem.Rows[row].Cells[6].Value = info;
后面还有 157 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
