Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
MyCard
YGOProUnity_V2
Commits
0ac52fa6
Commit
0ac52fa6
authored
Jan 16, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add OCG/TCG mark (by 無名的凝泪)
parent
9e36fb05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+18
-0
No files found.
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
0ac52fa6
...
...
@@ -119,11 +119,29 @@ public class GameStringHelper
public
static
string
getName
(
YGOSharp
.
Card
card
)
{
string
limitot
=
""
;
switch
(
card
.
Ot
)
{
case
1
:
limitot
=
"[OCG] "
;
break
;
case
2
:
limitot
=
"[TCG] "
;
break
;
case
3
:
limitot
=
"[OCG/TCG] "
;
break
;
case
4
:
limitot
=
"[Anime] "
;
break
;
}
string
re
=
""
;
try
{
re
+=
"[b]"
+
card
.
Name
+
"[/b]"
;
re
+=
"\n"
;
re
+=
"[sup]"
+
limitot
+
"[/sup]"
;
re
+=
"\n"
;
re
+=
"[sup]"
+
card
.
Id
.
ToString
()
+
"[/sup]"
;
re
+=
"\n"
;
}
...
...
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