Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
c4564329
Commit
c4564329
authored
Oct 03, 2019
by
fallenstardust
Committed by
GitHub
Oct 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #26 from mercury233/patch-imgcard-scale
keep imgCard scale
parents
90f4a6cb
e1780a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+4
-2
No files found.
Classes/gframe/game.cpp
View file @
c4564329
...
@@ -332,10 +332,12 @@ bool Game::Initialize() {
...
@@ -332,10 +332,12 @@ bool Game::Initialize() {
btnHostPrepCancel
=
env
->
addButton
(
rect
<
s32
>
(
400
*
xScale
,
380
*
yScale
,
510
*
xScale
,
420
*
yScale
),
wHostPrepare
,
BUTTON_HP_CANCEL
,
dataManager
.
GetSysString
(
1210
));
btnHostPrepCancel
=
env
->
addButton
(
rect
<
s32
>
(
400
*
xScale
,
380
*
yScale
,
510
*
xScale
,
420
*
yScale
),
wHostPrepare
,
BUTTON_HP_CANCEL
,
dataManager
.
GetSysString
(
1210
));
#endif
#endif
//img
//img
wCardImg
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
1
*
xScale
,
1
*
yScale
,
(
1
+
CARD_IMG_WIDTH
+
20
)
*
xScale
,
(
1
+
CARD_IMG_HEIGHT
+
18
)
*
yScale
),
true
,
false
,
0
,
-
1
,
true
);
float
imgScale
=
xScale
;
if
(
imgScale
>
yScale
)
imgScale
=
yScale
;
wCardImg
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
1
*
imgScale
,
1
*
imgScale
,
(
1
+
CARD_IMG_WIDTH
+
20
)
*
imgScale
,
(
1
+
CARD_IMG_HEIGHT
+
18
)
*
imgScale
),
true
,
false
,
0
,
-
1
,
true
);
wCardImg
->
setBackgroundColor
(
0x6011113d
);
wCardImg
->
setBackgroundColor
(
0x6011113d
);
wCardImg
->
setVisible
(
false
);
wCardImg
->
setVisible
(
false
);
imgCard
=
env
->
addImage
(
rect
<
s32
>
(
10
*
xScale
,
9
*
yScale
,
(
10
+
CARD_IMG_WIDTH
)
*
xScale
,
(
9
+
CARD_IMG_HEIGHT
)
*
y
Scale
),
wCardImg
);
imgCard
=
env
->
addImage
(
rect
<
s32
>
(
10
*
imgScale
,
9
*
imgScale
,
(
10
+
CARD_IMG_WIDTH
)
*
imgScale
,
(
9
+
CARD_IMG_HEIGHT
)
*
img
Scale
),
wCardImg
);
imgCard
->
setImage
(
imageManager
.
tCover
[
0
]);
imgCard
->
setImage
(
imageManager
.
tCover
[
0
]);
imgCard
->
setScaleImage
(
true
);
imgCard
->
setScaleImage
(
true
);
imgCard
->
setUseAlphaChannel
(
true
);
imgCard
->
setUseAlphaChannel
(
true
);
...
...
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