Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
DataEditorX
Commits
9ee51e1e
Commit
9ee51e1e
authored
Feb 07, 2015
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.0.6
parent
cb476190
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
20 deletions
+27
-20
DataEditorX/Common/MyBitmap.cs
DataEditorX/Common/MyBitmap.cs
+8
-0
DataEditorX/Core/CardEdit.cs
DataEditorX/Core/CardEdit.cs
+1
-2
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+9
-11
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+2
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-2
DataEditorX/readme_english.txt
DataEditorX/readme_english.txt
+1
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/changed.txt
win32/changed.txt
+2
-0
win32/readme.txt
win32/readme.txt
+1
-2
win32/readme_english.txt
win32/readme_english.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Common/MyBitmap.cs
View file @
9ee51e1e
...
@@ -14,6 +14,14 @@ namespace DataEditorX.Common
...
@@ -14,6 +14,14 @@ namespace DataEditorX.Common
/// </summary>
/// </summary>
public
static
class
MyBitmap
public
static
class
MyBitmap
{
{
public
static
Bitmap
readImage
(
string
file
)
{
if
(!
File
.
Exists
(
file
))
return
null
;
MemoryStream
ms
=
new
MemoryStream
(
File
.
ReadAllBytes
(
file
));
return
(
Bitmap
)
Image
.
FromStream
(
ms
);
}
#
region
缩放
#
region
缩放
/// <summary>
/// <summary>
/// 缩放图像
/// 缩放图像
...
...
DataEditorX/Core/CardEdit.cs
View file @
9ee51e1e
...
@@ -43,6 +43,7 @@ public bool AddCard()
...
@@ -43,6 +43,7 @@ public bool AddCard()
MyMsg
.
Show
(
LMSG
.
AddSucceed
);
MyMsg
.
Show
(
LMSG
.
AddSucceed
);
undoSQL
=
DataBase
.
GetDeleteSQL
(
c
);
undoSQL
=
DataBase
.
GetDeleteSQL
(
c
);
dataform
.
Search
(
true
);
dataform
.
Search
(
true
);
dataform
.
SetCard
(
c
);
return
true
;
return
true
;
}
}
MyMsg
.
Error
(
LMSG
.
AddFail
);
MyMsg
.
Error
(
LMSG
.
AddFail
);
...
@@ -87,7 +88,6 @@ public bool ModCard(bool modfiles)
...
@@ -87,7 +88,6 @@ public bool ModCard(bool modfiles)
undoSQL
+=
DataBase
.
GetInsertSQL
(
oldCard
,
false
);
undoSQL
+=
DataBase
.
GetInsertSQL
(
oldCard
,
false
);
}
}
}
}
dataform
.
SetImage
(
0
);
//释放当前使用的卡图
//如果删除旧卡片,则把资源修改名字,否则复制资源
//如果删除旧卡片,则把资源修改名字,否则复制资源
if
(
modfiles
)
if
(
modfiles
)
YGOUtil
.
CardRename
(
c
.
id
,
oldCard
.
id
,
dataform
.
GetPath
(),
delold
);
YGOUtil
.
CardRename
(
c
.
id
,
oldCard
.
id
,
dataform
.
GetPath
(),
delold
);
...
@@ -130,7 +130,6 @@ public bool DelCards(bool deletefiles)
...
@@ -130,7 +130,6 @@ public bool DelCards(bool deletefiles)
//删除资源
//删除资源
if
(
deletefiles
)
if
(
deletefiles
)
{
{
dataform
.
SetImage
(
0
);
//释放当前使用的卡图
YGOUtil
.
CardDelete
(
c
.
id
,
dataform
.
GetPath
(),
false
);
YGOUtil
.
CardDelete
(
c
.
id
,
dataform
.
GetPath
(),
false
);
}
}
}
}
...
...
DataEditorX/DataEditForm.cs
View file @
9ee51e1e
...
@@ -236,7 +236,7 @@ void InitPath(string datapath)
...
@@ -236,7 +236,7 @@ void InitPath(string datapath)
this
.
datapath
=
datapath
;
this
.
datapath
=
datapath
;
confcover
=
MyPath
.
Combine
(
datapath
,
"cover.jpg"
);
confcover
=
MyPath
.
Combine
(
datapath
,
"cover.jpg"
);
if
(
File
.
Exists
(
confcover
))
if
(
File
.
Exists
(
confcover
))
m_cover
=
Image
.
FromFil
e
(
confcover
);
m_cover
=
MyBitmap
.
readImag
e
(
confcover
);
else
else
m_cover
=
null
;
m_cover
=
null
;
}
}
...
@@ -1233,26 +1233,18 @@ public void SetImage(string id)
...
@@ -1233,26 +1233,18 @@ public void SetImage(string id)
}
}
public
void
SetImage
(
long
id
)
public
void
SetImage
(
long
id
)
{
{
if
(
pl_image
.
BackgroundImage
!=
null
&&
pl_image
.
BackgroundImage
!=
m_cover
)
{
//释放资源占用
pl_image
.
BackgroundImage
.
Dispose
();
}
Bitmap
temp
;
string
pic
=
ygopath
.
GetImage
(
id
);
string
pic
=
ygopath
.
GetImage
(
id
);
if
(
menuitem_importmseimg
.
Checked
)
//显示MSE图片
if
(
menuitem_importmseimg
.
Checked
)
//显示MSE图片
{
{
string
msepic
=
MseMaker
.
GetCardImagePath
(
tasker
.
MSEImagePath
,
oldCard
);
string
msepic
=
MseMaker
.
GetCardImagePath
(
tasker
.
MSEImagePath
,
oldCard
);
if
(
File
.
Exists
(
msepic
))
if
(
File
.
Exists
(
msepic
))
{
{
temp
=
new
Bitmap
(
msepic
);
pl_image
.
BackgroundImage
=
MyBitmap
.
readImage
(
msepic
);
pl_image
.
BackgroundImage
=
temp
;
}
}
}
}
else
if
(
File
.
Exists
(
pic
))
else
if
(
File
.
Exists
(
pic
))
{
{
temp
=
new
Bitmap
(
pic
);
pl_image
.
BackgroundImage
=
MyBitmap
.
readImage
(
pic
);
pl_image
.
BackgroundImage
=
temp
;
}
}
else
else
pl_image
.
BackgroundImage
=
m_cover
;
pl_image
.
BackgroundImage
=
m_cover
;
...
@@ -1530,6 +1522,7 @@ private void menuitem_openfileinthis_Click(object sender, EventArgs e)
...
@@ -1530,6 +1522,7 @@ private void menuitem_openfileinthis_Click(object sender, EventArgs e)
}
}
#
endregion
#
endregion
#
region
空格
private
void
menuitem_saveasenter_Click
(
object
sender
,
EventArgs
e
)
private
void
menuitem_saveasenter_Click
(
object
sender
,
EventArgs
e
)
{
{
using
(
SaveFileDialog
dlg
=
new
SaveFileDialog
())
using
(
SaveFileDialog
dlg
=
new
SaveFileDialog
())
...
@@ -1549,6 +1542,10 @@ private void menuitem_saveasenter_Click(object sender, EventArgs e)
...
@@ -1549,6 +1542,10 @@ private void menuitem_saveasenter_Click(object sender, EventArgs e)
for
(
int
i
=
0
;
i
<
count
;
i
++)
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
{
cards
[
i
].
desc
=
StrUtil
.
AutoEnter
(
cards
[
i
].
desc
,
len
,
' '
);
cards
[
i
].
desc
=
StrUtil
.
AutoEnter
(
cards
[
i
].
desc
,
len
,
' '
);
for
(
int
j
=
0
;
j
<
Card
.
STR_MAX
;
j
++)
{
cards
[
i
].
Str
[
j
]
=
StrUtil
.
AutoEnter
(
cards
[
i
].
Str
[
j
],
len
,
' '
);
}
}
}
DataBase
.
CopyDB
(
dlg
.
FileName
,
false
,
cards
);
DataBase
.
CopyDB
(
dlg
.
FileName
,
false
,
cards
);
MyMsg
.
Show
(
LMSG
.
CopyCardsToDBIsOK
);
MyMsg
.
Show
(
LMSG
.
CopyCardsToDBIsOK
);
...
@@ -1556,5 +1553,6 @@ private void menuitem_saveasenter_Click(object sender, EventArgs e)
...
@@ -1556,5 +1553,6 @@ private void menuitem_saveasenter_Click(object sender, EventArgs e)
}
}
}
}
}
}
#
endregion
}
}
}
}
DataEditorX/Properties/AssemblyInfo.cs
View file @
9ee51e1e
...
@@ -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
(
"2.3.0.
5
"
)]
[
assembly
:
AssemblyVersion
(
"2.3.0.
6
"
)]
DataEditorX/changed.txt
View file @
9ee51e1e
★更新历史
★更新历史
2.3.0.6
修复图片占用问题。
2.3.0.5
2.3.0.5
修复删除卡片,无法删除卡图
修复删除卡片,无法删除卡图
2.3.0.4
2.3.0.4
...
...
DataEditorX/readme.txt
View file @
9ee51e1e
[DataEditorX]2.3.0.
5
[DataEditorX]
[DataEditorX]2.3.0.
6
[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]
★运行环境(Environment)
★运行环境(Environment)
...
@@ -41,7 +41,6 @@ open_file_in_this 用自带的脚本编辑器打开lua
...
@@ -41,7 +41,6 @@ open_file_in_this 用自带的脚本编辑器打开lua
★语言设置
★语言设置
DataEditorX.exe.config
DataEditorX.exe.config
<add key="language" value="chinese" />简体
<add key="language" value="chinese" />简体
<add key="language" value="english" />英文
其他语言请自己添加,需要2个文件,xxx为语言
其他语言请自己添加,需要2个文件,xxx为语言
data/language_xxx.txt
data/language_xxx.txt
data/cardinfo_xxx.txt
data/cardinfo_xxx.txt
...
...
DataEditorX/readme_english.txt
View file @
9ee51e1e
...
@@ -25,7 +25,7 @@ data/cardinfo_xxx.txt types/series
...
@@ -25,7 +25,7 @@ data/cardinfo_xxx.txt types/series
★Language setting
★Language setting
DataEditorX.exe.config
DataEditorX.exe.config
<add key="language" value="chinese" />Simplified Chinese
<add key="language" value="chinese" />Simplified Chinese
<add key="language" value="english" />E
nglish
chinese => e
nglish
If you want to add a language,you need two file,xxx is a type of language:
If you want to add a language,you need two file,xxx is a type of language:
data/language_xxx.txt
data/language_xxx.txt
data/cardinfo_xxx.txt
data/cardinfo_xxx.txt
...
...
win32/DataEditorX.exe
View file @
9ee51e1e
No preview for this file type
win32/changed.txt
View file @
9ee51e1e
★更新历史
★更新历史
2.3.0.6
修复图片占用问题。
2.3.0.5
2.3.0.5
修复删除卡片,无法删除卡图
修复删除卡片,无法删除卡图
2.3.0.4
2.3.0.4
...
...
win32/readme.txt
View file @
9ee51e1e
[DataEditorX]2.3.0.
5
[DataEditorX]
[DataEditorX]2.3.0.
6
[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]
★运行环境(Environment)
★运行环境(Environment)
...
@@ -41,7 +41,6 @@ open_file_in_this 用自带的脚本编辑器打开lua
...
@@ -41,7 +41,6 @@ open_file_in_this 用自带的脚本编辑器打开lua
★语言设置
★语言设置
DataEditorX.exe.config
DataEditorX.exe.config
<add key="language" value="chinese" />简体
<add key="language" value="chinese" />简体
<add key="language" value="english" />英文
其他语言请自己添加,需要2个文件,xxx为语言
其他语言请自己添加,需要2个文件,xxx为语言
data/language_xxx.txt
data/language_xxx.txt
data/cardinfo_xxx.txt
data/cardinfo_xxx.txt
...
...
win32/readme_english.txt
View file @
9ee51e1e
...
@@ -25,7 +25,7 @@ data/cardinfo_xxx.txt types/series
...
@@ -25,7 +25,7 @@ data/cardinfo_xxx.txt types/series
★Language setting
★Language setting
DataEditorX.exe.config
DataEditorX.exe.config
<add key="language" value="chinese" />Simplified Chinese
<add key="language" value="chinese" />Simplified Chinese
<add key="language" value="english" />E
nglish
chinese => e
nglish
If you want to add a language,you need two file,xxx is a type of language:
If you want to add a language,you need two file,xxx is a type of language:
data/language_xxx.txt
data/language_xxx.txt
data/cardinfo_xxx.txt
data/cardinfo_xxx.txt
...
...
win32/win32.zip
View file @
9ee51e1e
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment