代码拉取完成,页面将自动刷新
同步操作将从 notmmao/D3AutoClick 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Created by SharpDevelop.
* User: notmmao
* Date: 2015/6/2
* Time: 11:39
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace D3AutoClick
{
/// <summary>
/// Description of Splash.
/// </summary>
public partial class Splash : Form
{
public string VersionText = "D3AutoClick " + Application.ProductVersion;
static Splash splashScreen;
Bitmap bitmap;
private static string _message =
"郑重声明:程序仅仅模拟按键输出,没有任何读取与修改Diablo3进程数据动作\r\n" +
"战网Tag:老寒腿#5105,妈妈叫我小涮皮儿#5259";
public static string Message {
get { return _message; }
}
public static Splash SplashScreen {
get {
return splashScreen;
}
set {
splashScreen = value;
}
}
public Splash()
{
FormBorderStyle = FormBorderStyle.None;
StartPosition = FormStartPosition.CenterScreen;
ShowInTaskbar = false;
string versionText = VersionText;
// Stream must be kept open for the lifetime of the bitmap
bitmap = D3AutoClick.Properties.Resources.SplashScreen;
//bitmap = PrintControlTest.Properties.Resources.sss;
//bitmap = new Bitmap(typeof(SplashScreenForm).Assembly.GetManifestResourceStream("Resources.SplashScreen.jpg"));
this.ClientSize = bitmap.Size;
using (Font font = new Font("Sans Serif", 40)) {
using (Graphics g = Graphics.FromImage(bitmap)) {
g.DrawString(versionText, font, Brushes.White, 20, 202);
}
}
using (Font font = new Font("Sans Serif", 14)) {
using (Graphics g = Graphics.FromImage(bitmap)) {
g.DrawString(Message, font, Brushes.White, 25, 262);
}
}
BackgroundImage = bitmap;
}
public static void ShowSplashScreen()
{
splashScreen = new Splash();
splashScreen.Show();
}
protected override void Dispose(bool disposing)
{
if (disposing) {
if (bitmap != null) {
bitmap.Dispose();
bitmap = null;
}
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.SuspendLayout();
//
// SplashScreenForm
//
this.ClientSize = new System.Drawing.Size(292, 273);
this.Name = "SplashScreenForm";
this.Load += new System.EventHandler(this.SplashScreenForm_Load);
this.ResumeLayout(false);
}
private void SplashScreenForm_Load(object sender, EventArgs e)
{
this.ClientSize = bitmap.Size;
Size size = new Size(bitmap.Width/50, bitmap.Height/50);
for (double d = 0.50; d < 1; d += 0.08)
{
System.Threading.Thread.Sleep(1);
Application.DoEvents();
//SizeF size = new SizeF(bitmap.Width, bitmap.Height);
this.ClientSize -= size;
this.Refresh();
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。