Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
mercury233
ygopro2
Commits
f219f7b4
Commit
f219f7b4
authored
Apr 12, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix show setname
parent
f90543f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+16
-5
Assets/SibylSystem/ResourceManagers/GameStringManager.cs
Assets/SibylSystem/ResourceManagers/GameStringManager.cs
+1
-1
No files found.
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
f219f7b4
using
System
;
using
System
;
using
System.Collections.Generic
;
using
YGOSharp
;
using
YGOSharp
;
using
YGOSharp.OCGWrapper.Enums
;
using
YGOSharp.OCGWrapper.Enums
;
...
@@ -453,15 +454,25 @@ public class GameStringHelper
...
@@ -453,15 +454,25 @@ public class GameStringHelper
public
static
string
getSetName
(
long
Setcode
)
public
static
string
getSetName
(
long
Setcode
)
{
{
string
returnValue
=
""
;
var
returnValue
=
new
List
<
string
>();
int
lastBaseType
=
0xfff
;
for
(
int
i
=
0
;
i
<
GameStringManager
.
xilies
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
GameStringManager
.
xilies
.
Count
;
i
++)
{
{
if
(
YGOSharp
.
CardsManager
.
IfSetCard
(
GameStringManager
.
xilies
[
i
].
hashCode
,
Setcode
))
int
currentHash
=
GameStringManager
.
xilies
[
i
].
hashCode
;
if
(
YGOSharp
.
CardsManager
.
IfSetCard
(
currentHash
,
Setcode
))
{
{
returnValue
=
GameStringManager
.
xilies
[
i
].
content
+
" "
;
if
((
lastBaseType
&
currentHash
)
==
lastBaseType
)
returnValue
.
RemoveAt
(
returnValue
.
Count
-
1
);
lastBaseType
=
currentHash
&
0xfff
;
string
[]
setArray
=
GameStringManager
.
xilies
[
i
].
content
.
Split
(
'\t'
);
string
setString
=
setArray
[
0
];
//if (setArray.Length > 1)
//{
// setString += "[sup]" + setArray[1] + "[/sup]";
//}
returnValue
.
Add
(
setString
);
}
}
}
}
return
String
.
Join
(
"|"
,
returnValue
.
ToArray
());
return
returnValue
;
}
}
}
}
Assets/SibylSystem/ResourceManagers/GameStringManager.cs
View file @
f219f7b4
...
@@ -43,7 +43,7 @@ public static class GameStringManager
...
@@ -43,7 +43,7 @@ public static class GameStringManager
{
{
if
(
line
.
Length
>
1
&&
line
.
Substring
(
0
,
1
)
==
"!"
)
if
(
line
.
Length
>
1
&&
line
.
Substring
(
0
,
1
)
==
"!"
)
{
{
string
[]
mats
=
line
.
Substring
(
1
,
line
.
Length
-
1
).
Split
(
new
string
[]
{
" "
,
" "
},
StringSplitOptions
.
RemoveEmptyEntries
);
string
[]
mats
=
line
.
Substring
(
1
,
line
.
Length
-
1
).
Split
(
new
string
[]
{
" "
},
StringSplitOptions
.
RemoveEmptyEntries
);
if
(
mats
.
Length
>
2
)
if
(
mats
.
Length
>
2
)
{
{
hashedString
a
=
new
hashedString
();
hashedString
a
=
new
hashedString
();
...
...
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