Commit 80231b64 authored by keyongyu's avatar keyongyu

fix

parent 661eacf3
...@@ -384,14 +384,13 @@ Card GetCard() ...@@ -384,14 +384,13 @@ Card GetCard()
long.TryParse(GetSelect(dicCardRaces,cb_cardrace),out c.race); long.TryParse(GetSelect(dicCardRaces,cb_cardrace),out c.race);
int.TryParse(tb_setcode1.Text, NumberStyles.HexNumber,null,out temp); int.TryParse(tb_setcode1.Text, NumberStyles.HexNumber,null,out temp);
c.setcode +=temp; c.setcode =temp;
int.TryParse(tb_setcode2.Text, NumberStyles.HexNumber,null,out temp); int.TryParse(tb_setcode2.Text, NumberStyles.HexNumber,null,out temp);
c.setcode +=temp<<0x10; c.setcode +=((long)temp<<0x10);
int.TryParse(tb_setcode3.Text, NumberStyles.HexNumber,null,out temp); int.TryParse(tb_setcode3.Text, NumberStyles.HexNumber,null,out temp);
c.setcode +=temp<<0x20; c.setcode +=((long)temp<<0x20);
int.TryParse(tb_setcode4.Text, NumberStyles.HexNumber,null,out temp); int.TryParse(tb_setcode4.Text, NumberStyles.HexNumber,null,out temp);
c.setcode +=temp<<0x30; c.setcode +=((long)temp<<0x30);
//c.setcode = getSetcodeByText(); //c.setcode = getSetcodeByText();
c.type=GetCheck(pl_cardtype); c.type=GetCheck(pl_cardtype);
...@@ -605,6 +604,8 @@ public void SetCards(Card[] cards, bool isfresh) ...@@ -605,6 +604,8 @@ public void SetCards(Card[] cards, bool isfresh)
pageNum=cardcount/MaxRow; pageNum=cardcount/MaxRow;
if(cardcount%MaxRow > 0) if(cardcount%MaxRow > 0)
pageNum++; pageNum++;
else if(cardcount==0)
pageNum=1;
tb_pagenum.Text=pageNum.ToString(); tb_pagenum.Text=pageNum.ToString();
if(isfresh) if(isfresh)
...@@ -1162,7 +1163,7 @@ void Tb_setcode4TextChanged(object sender, EventArgs e) ...@@ -1162,7 +1163,7 @@ void Tb_setcode4TextChanged(object sender, EventArgs e)
return; return;
setcodeIsedit4=true; setcodeIsedit4=true;
long temp; long temp;
long.TryParse(tb_setcode4.Text,out temp); long.TryParse(tb_setcode4.Text,NumberStyles.HexNumber, null ,out temp);
SetSelect(dicSetnames, cb_setname4, temp); SetSelect(dicSetnames, cb_setname4, temp);
setcodeIsedit4=false; setcodeIsedit4=false;
} }
...@@ -1173,7 +1174,7 @@ void Tb_setcode3TextChanged(object sender, EventArgs e) ...@@ -1173,7 +1174,7 @@ void Tb_setcode3TextChanged(object sender, EventArgs e)
return; return;
setcodeIsedit3=true; setcodeIsedit3=true;
long temp; long temp;
long.TryParse(tb_setcode3.Text,out temp); long.TryParse(tb_setcode3.Text,NumberStyles.HexNumber, null ,out temp);
SetSelect(dicSetnames, cb_setname3, temp); SetSelect(dicSetnames, cb_setname3, temp);
setcodeIsedit3=false; setcodeIsedit3=false;
} }
...@@ -1184,7 +1185,7 @@ void Tb_setcode2TextChanged(object sender, EventArgs e) ...@@ -1184,7 +1185,7 @@ void Tb_setcode2TextChanged(object sender, EventArgs e)
return; return;
setcodeIsedit2=true; setcodeIsedit2=true;
long temp; long temp;
long.TryParse(tb_setcode2.Text,out temp); long.TryParse(tb_setcode2.Text,NumberStyles.HexNumber, null ,out temp);
SetSelect(dicSetnames, cb_setname2, temp); SetSelect(dicSetnames, cb_setname2, temp);
setcodeIsedit2=false; setcodeIsedit2=false;
} }
...@@ -1195,7 +1196,7 @@ void Tb_setcode1TextChanged(object sender, EventArgs e) ...@@ -1195,7 +1196,7 @@ void Tb_setcode1TextChanged(object sender, EventArgs e)
return; return;
setcodeIsedit1=true; setcodeIsedit1=true;
long temp; long temp;
long.TryParse(tb_setcode1.Text,out temp); long.TryParse(tb_setcode1.Text,NumberStyles.HexNumber, null ,out temp);
SetSelect(dicSetnames, cb_setname1, temp); SetSelect(dicSetnames, cb_setname1, temp);
setcodeIsedit1=false; setcodeIsedit1=false;
} }
......
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
// //
// You can specify all the values or you can use the default the Revision and // You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below: // Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.3.0")] [assembly: AssemblyVersion("1.6.4.0")]
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
0x2 ジェネクス 0x2 ジェネクス
0x1002 レアル·ジェネクス 0x1002 レアル·ジェネクス
0x2002 A·ジェネクス 0x2002 A·ジェネクス
0x3 N/A
0x4 アマズネス 0x4 アマズネス
0x5 アルカナフォース 0x5 アルカナフォース
0x6 暗黑界 0x6 暗黑界
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
0x13 機皇 0x13 機皇
0x3013 機皇帝 0x3013 機皇帝
0x6013 機皇兵 0x6013 機皇兵
0x14 ------ 0x14 N/A
0x15 巨大戦艦 0x15 巨大戦艦
0x16 ロイド 0x16 ロイド
0x17 シンクロン 0x17 シンクロン
......
[DataEditorX]1.6.3.0[DataEditorX] [DataEditorX]1.6.4.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -56,6 +56,9 @@ DataEditorX.exe.config ...@@ -56,6 +56,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.6.4.0
修复setcode输入错误
搜索为空的错误
1.6.3.0 1.6.3.0
为无种族的token添加token card类型 为无种族的token添加token card类型
1.6.2.2 1.6.2.2
......
No preview for this file type
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
0x2 ジェネクス 0x2 ジェネクス
0x1002 レアル·ジェネクス 0x1002 レアル·ジェネクス
0x2002 A·ジェネクス 0x2002 A·ジェネクス
0x3 N/A
0x4 アマズネス 0x4 アマズネス
0x5 アルカナフォース 0x5 アルカナフォース
0x6 暗黑界 0x6 暗黑界
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
0x13 機皇 0x13 機皇
0x3013 機皇帝 0x3013 機皇帝
0x6013 機皇兵 0x6013 機皇兵
0x14 ------ 0x14 N/A
0x15 巨大戦艦 0x15 巨大戦艦
0x16 ロイド 0x16 ロイド
0x17 シンクロン 0x17 シンクロン
......
This diff is collapsed.
[DataEditorX]1.6.3.0[DataEditorX] [DataEditorX]1.6.4.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -56,6 +56,9 @@ DataEditorX.exe.config ...@@ -56,6 +56,9 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.6.4.0
修复setcode输入错误
搜索为空的错误
1.6.3.0 1.6.3.0
为无种族的token添加token card类型 为无种族的token添加token card类型
1.6.2.2 1.6.2.2
......
No preview for this file type
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