Commit 9efdeef1 authored by 247321453's avatar 247321453

add

parent c3153a08
......@@ -796,7 +796,17 @@ void Menuitem_aboutClick(object sender, EventArgs e)
void Menuitem_checkupdateClick(object sender, EventArgs e)
{
MyUpdate.CheckUpdate(VERURL);
if(MyMsg.Question("进入更新模式,需要重新启动程序,确认?"))
{
string updateexe=Application.StartupPath+"update.exe";
File.Copy(Application.ExecutablePath, updateexe,true);
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = updateexe;
p.StartInfo.Arguments =" update";
p.StartInfo.WorkingDirectory=Application.StartupPath;
p.Start();
Application.Exit();
}
}
void Menuitem_githubClick(object sender, EventArgs e)
{
......
......@@ -12,9 +12,18 @@
<StartupObject>DataEditorX.Program</StartupObject>
<ApplicationIcon>icon.ico</ApplicationIcon>
<NoWin32Manifest>False</NoWin32Manifest>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<NoStdLib>False</NoStdLib>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<BaseAddress>4194304</BaseAddress>
<RegisterForComInterop>False</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
......@@ -25,12 +34,13 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\win32\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
......@@ -59,6 +69,10 @@
<Compile Include="MyUpdate.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UpdateForm.cs" />
<Compile Include="UpdateForm.Designer.cs">
<DependentUpon>UpdateForm.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DataEditForm.resx">
......@@ -67,6 +81,9 @@
<EmbeddedResource Include="ImageForm.resx">
<DependentUpon>ImageForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UpdateForm.resx">
<DependentUpon>UpdateForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="Data" />
......@@ -106,6 +123,9 @@
<None Include="readme.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="update.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
......@@ -24,7 +24,20 @@ private static void Main(string[] args)
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if(args.Length==1)
Application.Run(new DataEditForm(args[0]));
{
if(args[0]=="update")//进入更新模式
{
Application.Run(new UpdateForm(Application.ProductVersion));
}
else if(args[0]=="updated")//更新完成,删除更新文件
{
if(args.Length>1)
System.IO.File.Delete(args[1]);
Application.Run(new DataEditForm());
}
else
Application.Run(new DataEditForm(args[0]));
}
else
Application.Run(new DataEditForm());
}
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.0.1")]
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月21 星期三
* 时间: 16:21
*
*/
namespace DataEditorX
{
partial class UpdateForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.btn_check = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btn_check
//
this.btn_check.Location = new System.Drawing.Point(12, 12);
this.btn_check.Name = "btn_check";
this.btn_check.Size = new System.Drawing.Size(75, 23);
this.btn_check.TabIndex = 0;
this.btn_check.Text = "检查更新";
this.btn_check.UseVisualStyleBackColor = true;
this.btn_check.Click += new System.EventHandler(this.Btn_checkClick);
//
// UpdateForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(497, 315);
this.Controls.Add(this.btn_check);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.MaximizeBox = false;
this.Name = "UpdateForm";
this.Text = "DataEditorX更新";
this.ResumeLayout(false);
}
private System.Windows.Forms.Button btn_check;
}
}
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月21 星期三
* 时间: 16:21
*
*/
using System;
using System.Drawing;
using System.IO;
using System.Text;
using System.Net;
using System.Windows.Forms;
namespace DataEditorX
{
/// <summary>
/// Description of UpdateForm.
/// </summary>
public partial class UpdateForm : Form
{
string Ver;
public UpdateForm()
{
Ver=Application.ProductVersion;
InitializeComponent();
}
public UpdateForm(string ver)
{
Ver=ver;
InitializeComponent();
}
void Btn_checkClick(object sender, EventArgs e)
{
}
#region 获取网址内容
string GetHtmlContentByUrl(string url)
{
string htmlContent = string.Empty;
try {
HttpWebRequest httpWebRequest =
(HttpWebRequest)WebRequest.Create(url);
httpWebRequest.Timeout = 5000;
using(HttpWebResponse httpWebResponse =
(HttpWebResponse)httpWebRequest.GetResponse())
{
using(Stream stream = httpWebResponse.GetResponseStream())
{
using(StreamReader streamReader =
new StreamReader(stream, Encoding.UTF8))
{
htmlContent = streamReader.ReadToEnd();
streamReader.Close();
}
stream.Close();
}
httpWebResponse.Close();
}
return htmlContent;
}
catch{
}
return "";
}
#endregion
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
<ver>1.2.0.1</ver>
<time>2014-5-21 16:00</time>
<file>readme.txt</file>
<file>DataEditorX.exe</file>
<file>data\update.txt</file>
\ No newline at end of file
<v>1.2.0.0<v>
<t>2014-5-21 11:50<t>
<d>http://ys-l.ys168.com/2.0/395236325/SJujftp5H5G476556NKJ/1.2.0.0.zip https://github.com/247321453/DataEditorX/raw/master/win32/1.2.0.0.zip<d>
\ No newline at end of file
0x0 卡片属性
0x1 地
0x2 水
0x4 炎
0x8 风
0x10 光
0x20 暗
0x40 神
\ No newline at end of file
0x1 魔陷破坏
0x2 怪兽破坏
0x4 卡片除外
0x8 送去墓地
0x10 返回手牌
0x20 返回卡组
0x40 手牌破坏
0x80 卡组破坏
0x100 抽卡辅助
0x200 卡组检索
0x400 卡片回收
0x800 表示变更
0x1000 控制权
0x2000 攻守变化
0x4000 贯穿伤害
0x8000 多次攻击
0x10000 攻击限制
0x20000 直接攻击
0x40000 特殊召唤
0x80000 衍生物
0x100000 种族相关
0x200000 属性相关
0x400000 LP伤害
0x800000 LP回复
0x1000000 破坏耐性
0x2000000 效果耐性
0x4000000 指示物
0x8000000 赌博相关
0x10000000 融合相关
0x20000000 同调相关
0x40000000 超量相关
0x80000000 效果无效
\ No newline at end of file
0x0 卡片等级/阶级
0x1 1★
0x2 2★
0x3 3★
0x4 4★
0x5 5★
0x6 6★
0x7 7★
0x8 8★
0x9 9★
0xa 10★
0xb 11★
0xc 12★
0xd 13★
\ No newline at end of file
0x0 卡片种族
0x1 战士
0x2 魔法使
0x4 天使
0x8 恶魔
0x10 不死
0x20 机械
0x40 水
0x80 炎
0x100 岩石
0x200 鸟兽
0x400 植物
0x800 昆虫
0x1000 雷
0x2000 龙
0x4000 兽
0x8000 兽战士
0x10000 恐龙
0x20000 鱼
0x40000 海龙
0x80000 爬虫类
0x100000 念动力
0x200000 幻神兽
0x300000 创造神
0x400000 幻龙
\ No newline at end of file
0x0 卡片规则
0x1 OCG专有
0x2 TCG专有
0x3 OCG&TCG
0x4 Anime/DIY
\ No newline at end of file
0x0 卡片系列
0x1 A·O·J
0x2 ジェネクス
0x1002 レアル·ジェネクス
0x2002 A·ジェネクス
0x4 アマズネス
0x5 アルカナフォース
0x6 暗黑界
0x7 アンティーク・ギア
0x8 HERO
0x3008 E·HERO
0x6008 E-HERO
0xc008 D·HERO
0x5008 V·HERO
0xa008 M·HERO
0x9 ネオス
0xa ヴェルズ
0x100a インヴェルズ
0xb インフェルニティ
0xc エーリアン
0xd セイバー
0x100d X-セイバー
0x300d XX-セイバー
0xe エレキ
0xf オジャマ
0x10 ガスタ
0x11 カラクリ
0x12 ガエル
0x13 機皇
0x3013 機皇帝
0x6013 機皇兵
0x14 ------
0x15 巨大戦艦
0x16 ロイド
0x17 シンクロン
0x18 雲魔物
0x19 剣闘獣
0x1a 黒蠍
0x1b 幻獣
0x101b 幻獣機
0x1c 幻魔
0x1d コアキメイル
0x1e C(コクーン)
0x1f N(ネオスペーシアン)
0x20 紫炎
0x21 地縛神
0x22 ジュラック
0x23 SIN
0x24 スクラップ
0x25 C(チェーン)
0x26 D(ディフォーマー)
0x27 TG(テックジーナス)
0x28 電池メン
0x29 ドラグニティ
0x2a ナチュル
0x2b 忍者
0x102b 機甲忍者
0x2c フレムベル
0x2d ハーピィ
0x2e 墓守
0x2f 氷結界
0x30 ヴァイロン
0x31 フォーチュンレディ
0x32 ヴォルカニック
0x33 BF(ブラックフェザー)
0x34 宝玉獣
0x35 魔轟神
0x1035 魔轟神獣
0x36 マシンナーズ
0x37 霞の谷
0x38 ライトロード
0x39 ラヴァル
0x3a リチュア
0x3b レッドアイズ
0x3c レプティレス
0x3d 六武衆
0x3e ワーム
0x3f セイヴァ
0x40 封印されし
0x41 LV
0x42 極星
0x3042 極星天
0x6042 極星獣
0xa042 極星霊
0x5042 極星宝
0x43 ジャンク
0x44 代行者
0x45 デーモン
0x46 融合/フュージョン
0x47 ジェム
0x1047 ジェムナイト
0x48 NO
0x1048 CNO
0x49 铳士
0x4a 時械神
0x4b 極神
0x4c 落とし穴
0x4e エヴォル
0x304e エヴォルド
0x604e エヴォルダ
0x504e エヴォルカイザー
0x4f バスター
0x104f /バスター
0x50 ヴェノム
0x51 ガジェット
0x52 ガーディアン
0x53 セイクリッド
0x54 ガガガ
0x55 フォトン
0x56 甲虫装機
0x57 リゾネーター
0x58 ゼンマイ
0x59 ゴゴゴ
0x5a ペンギン
0x5b トマボー
0x5c スフィンクス
0x60 竹光
0x61 忍法
0x62 トゥーン
0x63 リアクター
0x64 ハーピィ
0x65 侵略の
0x66 音響戦士
0x67 アイアン
0x68 ブリキ
0x69 聖刻
0x6a 幻蝶の刺客
0x6b バウンサー
0x6c ライトレイ
0x6d 魔人
0x306d 竜魔人
0x606d 儀式魔人
0x6e 魔導
0x106e 魔導書
0x6f ヒロイック
0x106f H・C
0x206f H-C
0x70 先史遺産
0x71 マドルチェ
0x72 ギアギア
0x1072 ギアギアーノ
0x73 エクシーズ
0x1073 CX
0x74 水精鱗
0x75 アビス
0x76 紋章獣
0x77 海皇
0x78 素早い
0x79 炎星
0x7a Nobel
0x107a NobelKnight
0x207a NobelArms
0x7b ギャラクシー
0x107b ギャラクシーアイズ
0x307b 银河眼时空龙
0x7c 炎舞
0x7d ヘイズ
0x107d 陽炎獣
0x7e ZW
0x7f 希望皇ホープ
0x80 ダストン
0x81 炎王
0x1081 炎王獣
0x82 ドドド
0x83 ギミック・パペット
0x84 BK
0x85 SDロボ
0x86 光天使
0x87 アンブラル
0x88 武神
0x1088 武神器
0x89 ホール
0x8a 蟲惑
0x108a 蟲惑魔
0x8b マリスボラス
0x8c ドルイド
0x8d ゴーストリック
0x8e ヴァンパイア
0x8f ズババ
0x90 森羅
0x91 ネクロバレー
0x92 メダリオン
0x93 サイバー
0x1093 サイバー・ドラゴン
0x94 サイバネティック
0x95 RUM
0x96 フィッシュボーグ
0x97 アーティファクト
0x98 「魔术师」
0x99 「异色眼」
0x9a 「超重武者」
0x9b 「幻奏」
0x9c 「テラナイト」
0x9d 「影依」
0x9e 「龙星」
0x100 同调士相关同调怪兽
0x101 奇迹同调融合相关怪兽
0x102 暗黑融合限定怪兽
0x103 电子龙限定素材的融合怪兽
\ No newline at end of file
0x1 怪兽
0x2 魔法
0x4 陷阱
0x8 N/A
0x10 通常
0x20 效果
0x40 融合
0x80 仪式
0x100 N/A
0x200 灵魂
0x400 同盟
0x800 二重
0x1000 调整
0x2000 同调
0x4000 衍生物
0x8000 N/A
0x10000 速攻
0x20000 永续
0x40000 装备
0x80000 场地
0x100000 反击
0x200000 反转
0x400000 卡通
0x800000 超量
0x1000000 摇摆
\ No newline at end of file
http://hi.baidu.com/247321453
\ No newline at end of file
F:\game\YGOPRO
\ No newline at end of file
★卡片复制:
替换复制:如果存在卡片,就用最新的替换
不替换复制:如果存在卡片,就跳过
★卡片搜索
1.不支持系列名,ATK,DEF搜索
2.支持卡片名称,描述,规则,属性,等级,种族,卡片类型,效果类型,密码
3.密码范围搜索示例:
--大于密码10000000的卡片 卡片密码: 10000000 同名卡: -1
--小于密码10000000的卡片 卡片密码: -1 同名卡: 10000000
--大于密码10000000,小于20000000的卡片 卡片密码: 10000000 同名卡: 20000000
★配置文件
1.游戏目录
2.更新网址
3.源码网址
★设置游戏路径
data\ygopro.txt
注意:文本编码:UTF-8,最好是完整路径
★更新历史
1.2.0.0
添加检查新版本
修复setname
<ver>1.2.0.1</ver>
<time>2014-5-21 16:00</time>
<file>readme.txt</file>
<file>DataEditorX.exe</file>
<file>data\update.txt</file>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment