StartForm.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Tank_11_14.Properties;
using System.Threading;
// 下载于www.51aspx.com
namespace Tank_11_14
{
    public partial class StartForm : Form
    {
        public StartForm()
        {
            InitializeComponent();
            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);
        }
        public static bool isMultplayer = false;
        private static Image imgTitle = Resources.title;
        private static Image imgselect = Resources.select;
        private static Image imgtank = Resources.selecttank;
        private Graphics g = null;
        private int xPor = 205, yPor = 290;

        private int roll = 500;
        private void RollThread()
        {
            if (roll > 0)
            {
                roll -= 3;
                Thread.Sleep(10);
            }
            else
            {
                return;
            }
            Invalidate();
        }

        private void StartForm_Paint(object sender, PaintEventArgs e)
        {
            g = e.Graphics;
            g.DrawImage(imgTitle, 65, 50 + roll);
            g.DrawImage(imgselect, 305, 300 + roll);
            g.DrawImage(imgtank, xPor, yPor + roll);
            RollThread();
        }

        private void StartForm_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.X > 305 && e.X < 305 + imgselect.Width && e.Y > 300 && e.Y < 330)
            {
                yPor = 290;
                Invalidate();
            }
            if (e.X > 305 && e.X < 305 + imgselect.Width && e.Y > 370 && e.Y < 400)
            {
后面还有 36 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。