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
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
ygopro2
Commits
1392ada4
Commit
1392ada4
authored
May 25, 2021
by
mercury233
Committed by
nanahira
Aug 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix strSetName not updated after loading strings
parent
5980f0ed
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 @
1392ada4
...
...
@@ -414,6 +414,8 @@ public class Program : MonoBehaviour
}
}
YGOSharp
.
CardsManager
.
updateSetNames
();
if
(
Directory
.
Exists
(
"pack"
))
{
FileInfo
[]
fileInfos
=
(
new
DirectoryInfo
(
"pack"
)).
GetFiles
();
...
...
Assets/YGOSharp/Card.cs
View file @
1392ada4
...
...
@@ -172,7 +172,6 @@ namespace YGOSharp
{
this
.
Str
[
ii
]
=
reader
.
GetString
(
14
+
ii
);
}
this
.
strSetName
=
GameStringHelper
.
getSetName
(
Setcode
);
}
public
Card
()
...
...
Assets/YGOSharp/CardsManager.cs
View file @
1392ada4
...
...
@@ -97,6 +97,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