Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
MyCard
ygopro-2pick
Commits
27f3ca16
Commit
27f3ca16
authored
Jul 30, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix card artworks offset
parent
aae465d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
gframe/deck_con.cpp
gframe/deck_con.cpp
+2
-1
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/game.h
gframe/game.h
+2
-0
No files found.
gframe/deck_con.cpp
View file @
27f3ca16
...
...
@@ -866,7 +866,8 @@ void DeckBuilder::FilterCards() {
if
(
!
tryresult
&&
!
CardNameContains
(
text
.
name
.
c_str
(),
pstr
)
&&
text
.
text
.
find
(
pstr
)
==
std
::
wstring
::
npos
&&
(
!
set_code
||
!
check_set_code
(
data
,
set_code
)))
continue
;
if
(
tryresult
&&
data
.
code
!=
trycode
&&
data
.
alias
!=
trycode
)
if
(
tryresult
&&
data
.
code
!=
trycode
&&
!
(
data
.
alias
==
trycode
&&
(
data
.
alias
-
data
.
code
<
CARD_ARTWORK_VERSION_OFFSET
||
data
.
code
-
data
.
alias
<
CARD_ARTWORK_VERSION_OFFSET
)))
continue
;
}
}
...
...
gframe/game.cpp
View file @
27f3ca16
...
...
@@ -1215,7 +1215,7 @@ void Game::ShowCardInfo(int code) {
memset
(
&
cd
,
0
,
sizeof
(
CardData
));
imgCard
->
setImage
(
imageManager
.
GetTexture
(
code
));
imgCard
->
setScaleImage
(
true
);
if
(
cd
.
alias
!=
0
&&
(
cd
.
alias
-
code
<
10
||
code
-
cd
.
alias
<
10
))
if
(
cd
.
alias
!=
0
&&
(
cd
.
alias
-
code
<
CARD_ARTWORK_VERSION_OFFSET
||
code
-
cd
.
alias
<
CARD_ARTWORK_VERSION_OFFSET
))
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
cd
.
alias
),
cd
.
alias
);
else
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
code
),
code
);
stName
->
setText
(
formatBuffer
);
...
...
gframe/game.h
View file @
27f3ca16
...
...
@@ -625,4 +625,6 @@ extern Game* mainGame;
#define BUTTON_MARKERS_OK 381
#define DEFAULT_DUEL_RULE 4
#define CARD_ARTWORK_VERSIONS_OFFSET 10
#endif // GAME_H
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