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
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
perfectdicky
YGOProUnity_V2
Commits
f0e9928d
Commit
f0e9928d
authored
May 25, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix strSetName not updated after loading strings
parent
fca13ca3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+2
-0
Assets/YGOSharp/Card.cs
Assets/YGOSharp/Card.cs
+0
-1
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+9
-0
No files found.
Assets/SibylSystem/Program.cs
View file @
f0e9928d
...
...
@@ -395,6 +395,8 @@ public class Program : MonoBehaviour
GameStringManager
.
initialize
(
"config/strings.conf"
);
YGOSharp
.
BanlistManager
.
initialize
(
"config/lflist.conf"
);
YGOSharp
.
CardsManager
.
updateSetNames
();
if
(
Directory
.
Exists
(
"pack"
))
{
fileInfos
=
(
new
DirectoryInfo
(
"pack"
)).
GetFiles
();
...
...
Assets/YGOSharp/Card.cs
View file @
f0e9928d
...
...
@@ -138,7 +138,6 @@ namespace YGOSharp
{
this
.
Str
[
ii
]
=
reader
.
GetString
(
14
+
ii
);
}
this
.
strSetName
=
GameStringHelper
.
getSetName
(
Setcode
);
}
public
Card
()
...
...
Assets/YGOSharp/CardsManager.cs
View file @
f0e9928d
...
...
@@ -88,6 +88,15 @@ namespace YGOSharp
}
}
internal
static
void
updateSetNames
()
{
foreach
(
var
item
in
_cards
)
{
Card
card
=
item
.
Value
;
card
.
strSetName
=
GameStringHelper
.
getSetName
(
card
.
Setcode
);
}
}
internal
static
List
<
Card
>
searchAdvanced
(
string
getName
,
int
getLevel
,
...
...
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