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
0
Issues
0
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
聖園ミカ
DataEditorX
Commits
eab7049c
Commit
eab7049c
authored
Oct 22, 2014
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.1.4.0
parent
b547ffee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
20 deletions
+34
-20
DataEditorX/Core/DataBase.cs
DataEditorX/Core/DataBase.cs
+32
-20
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-0
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/readme.txt
win32/readme.txt
+1
-0
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Core/DataBase.cs
View file @
eab7049c
...
...
@@ -128,26 +128,26 @@ public static int Command(string DB, params string[] SQLs)
static
Card
ReadCard
(
SQLiteDataReader
reader
,
bool
reNewLine
)
{
Card
c
=
new
Card
(
0
);
c
.
id
=
reader
.
GetInt64
(
0
);
c
.
ot
=
reader
.
GetInt32
(
1
);
c
.
alias
=
reader
.
GetInt64
(
2
);
c
.
setcode
=
reader
.
GetInt64
(
3
);
c
.
type
=
reader
.
GetInt64
(
4
);
c
.
atk
=
reader
.
GetInt32
(
5
);
c
.
def
=
reader
.
GetInt32
(
6
);
c
.
level
=
reader
.
GetInt64
(
7
);
c
.
race
=
reader
.
GetInt64
(
8
);
c
.
attribute
=
reader
.
GetInt32
(
9
);
c
.
category
=
reader
.
GetInt64
(
10
);
c
.
name
=
reader
.
GetString
(
12
);
c
.
id
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"id"
)
);
c
.
ot
=
reader
.
GetInt32
(
reader
.
GetOrdinal
(
"ot"
)
);
c
.
alias
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"alias"
)
);
c
.
setcode
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"setcode"
)
);
c
.
type
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"type"
)
);
c
.
atk
=
reader
.
GetInt32
(
reader
.
GetOrdinal
(
"atk"
)
);
c
.
def
=
reader
.
GetInt32
(
reader
.
GetOrdinal
(
"def"
)
);
c
.
level
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"level"
)
);
c
.
race
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"race"
)
);
c
.
attribute
=
reader
.
GetInt32
(
reader
.
GetOrdinal
(
"attribute"
)
);
c
.
category
=
reader
.
GetInt64
(
reader
.
GetOrdinal
(
"category"
)
);
c
.
name
=
reader
.
GetString
(
reader
.
GetOrdinal
(
"name"
)
);
c
.
desc
=
reader
.
GetString
(
13
);
c
.
desc
=
reader
.
GetString
(
reader
.
GetOrdinal
(
"desc"
)
);
if
(
reNewLine
)
c
.
desc
=
Retext
(
c
.
desc
);
string
temp
=
null
;
for
(
int
i
=
0
;
i
<
0x10
;
i
++
)
{
temp
=
reader
.
GetString
(
14
+
i
);
temp
=
reader
.
GetString
(
reader
.
GetOrdinal
(
"str"
+(
i
+
1
).
ToString
())
);
c
.
str
[
i
]=
(
temp
==
null
)
?
""
:
temp
;
}
return
c
;
...
...
@@ -170,6 +170,7 @@ static string Retext(string text)
public
static
Card
[]
Read
(
string
DB
,
bool
reNewLine
,
params
string
[]
SQLs
)
{
List
<
Card
>
list
=
new
List
<
Card
>();
List
<
long
>
idlist
=
new
List
<
long
>();
string
SQLstr
=
""
;
if
(
File
.
Exists
(
DB
)
&&
SQLs
!=
null
)
{
...
...
@@ -182,18 +183,29 @@ public static Card[] Read(string DB,bool reNewLine, params string[] SQLs)
{
foreach
(
string
str
in
SQLs
)
{
int
tmp
;
int
.
TryParse
(
str
,
out
tmp
);
if
(
string
.
IsNullOrEmpty
(
str
)
)
SQLstr
=
defaultSQL
;
else
if
(
str
.
Length
<
20
)
SQLstr
=
defaultSQL
+
" and datas.id="
+
str
;
else
else
if
(
tmp
>
0
)
SQLstr
=
defaultSQL
+
" and datas.id="
+
tmp
.
ToString
()
;
else
if
(
str
.
StartsWith
(
"select"
,
StringComparison
.
OrdinalIgnoreCase
))
SQLstr
=
str
;
else
if
(
str
.
IndexOf
(
"and "
)>=
0
)
SQLstr
=
defaultSQL
+
str
;
else
SQLstr
=
defaultSQL
+
" and texts.name like '%"
+
str
+
"%'"
;
sqlitecommand
.
CommandText
=
SQLstr
;
using
(
SQLiteDataReader
reader
=
sqlitecommand
.
ExecuteReader
()
)
{
while
(
reader
.
Read
()
)
{
list
.
Add
(
ReadCard
(
reader
,
reNewLine
));
Card
c
=
ReadCard
(
reader
,
reNewLine
);
if
(
idlist
.
IndexOf
(
c
.
id
)<
0
){
//不存在,则添加
idlist
.
Add
(
c
.
id
);
list
.
Add
(
c
);
}
}
reader
.
Close
();
}
...
...
@@ -369,14 +381,14 @@ public static string GetSelectSQL(Card c)
sb
.
Append
(
" and datas.atk = "
+
c
.
atk
.
ToString
());
else
if
(
c
.
atk
==-
1
)
sb
.
Append
(
" and datas.atk = 0"
);
if
(
c
.
def
>
0
)
sb
.
Append
(
" and datas.def >= "
+
c
.
def
.
ToString
());
else
if
(
c
.
def
==-
2
)
sb
.
Append
(
" and datas.def = "
+
c
.
def
.
ToString
());
else
if
(
c
.
def
==-
1
)
sb
.
Append
(
" and datas.def = 0"
);
if
(
c
.
id
>
0
&&
c
.
alias
>
0
)
sb
.
Append
(
" and datas.id BETWEEN "
+
c
.
alias
.
ToString
()+
" and "
+
c
.
id
.
ToString
());
else
if
(
c
.
id
>
0
)
...
...
DataEditorX/readme.txt
View file @
eab7049c
...
...
@@ -69,6 +69,7 @@ DataEditorX.exe.config
2.1.4.0
改善:
浏览和导入MSE图片库的图片
按图像读取,可以支持读取卡片名的图片
2.1.3.1
修复:
支持浏览和导入MSE图片库的图片
...
...
win32/DataEditorX.exe
View file @
eab7049c
No preview for this file type
win32/readme.txt
View file @
eab7049c
...
...
@@ -69,6 +69,7 @@ DataEditorX.exe.config
2.1.4.0
改善:
浏览和导入MSE图片库的图片
按图像读取,可以支持读取卡片名的图片
2.1.3.1
修复:
支持浏览和导入MSE图片库的图片
...
...
win32/win32.zip
View file @
eab7049c
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