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
2e3f8a20
Commit
2e3f8a20
authored
Apr 05, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改背景和遮罩层颜色
parent
fbf88bd5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
5 deletions
+6
-5
Classes/gframe/drawing.cpp
Classes/gframe/drawing.cpp
+3
-2
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+2
-2
mobile/assets/data/textures/bg.jpg
mobile/assets/data/textures/bg.jpg
+0
-0
mobile/assets/data/textures/bg_deck.jpg
mobile/assets/data/textures/bg_deck.jpg
+0
-0
mobile/assets/data/textures/bg_menu.jpg
mobile/assets/data/textures/bg_menu.jpg
+0
-0
mobile/src/main/res/drawable-xhdpi/bg3.jpg
mobile/src/main/res/drawable-xhdpi/bg3.jpg
+0
-0
mobile/src/main/res/layout/activity_home.xml
mobile/src/main/res/layout/activity_home.xml
+1
-1
No files found.
Classes/gframe/drawing.cpp
View file @
2e3f8a20
...
...
@@ -836,7 +836,7 @@ void Game::DrawSpec() {
case
1
:
{
driver
->
draw2DImage
(
imageManager
.
GetTexture
(
showcardcode
),
recti
(
574
*
mainGame
->
xScale
,
150
*
mainGame
->
yScale
,
(
574
+
CARD_IMG_WIDTH
)
*
mainGame
->
xScale
,
(
150
+
CARD_IMG_HEIGHT
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
orisize
.
Width
,
orisize
.
Height
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tMask
,
recti
(
574
*
mainGame
->
xScale
,
150
*
mainGame
->
yScale
,
(
574
+
(
showcarddif
>
CARD_IMG_WIDTH
?
CARD_IMG_WIDTH
:
showcarddif
))
*
mainGame
->
xScale
,
404
*
mainGame
->
yScale
),
recti
(
CARD_IMG_HEIGHT
-
showcarddif
,
0
,
CARD_IMG_HEIGHT
-
(
showcarddif
>
CARD_IMG_WIDTH
?
showcarddif
-
CARD_IMG_WIDTH
:
0
),
CARD_IMG_HEIGHT
),
0
,
0
,
true
);
recti
(
(
CARD_IMG_HEIGHT
-
showcarddif
)
*
mainGame
->
xScale
,
0
,
(
CARD_IMG_HEIGHT
-
(
showcarddif
>
CARD_IMG_WIDTH
?
showcarddif
-
CARD_IMG_WIDTH
:
0
))
*
mainGame
->
xScale
,
CARD_IMG_HEIGHT
*
mainGame
->
yScale
),
0
,
0
,
true
);
showcarddif
+=
15
;
if
(
showcarddif
>=
CARD_IMG_HEIGHT
)
{
showcard
=
2
;
...
...
@@ -846,7 +846,8 @@ void Game::DrawSpec() {
}
case
2
:
{
driver
->
draw2DImage
(
imageManager
.
GetTexture
(
showcardcode
),
recti
(
574
*
mainGame
->
xScale
,
150
*
mainGame
->
yScale
,
(
574
+
CARD_IMG_WIDTH
)
*
mainGame
->
xScale
,
(
150
+
CARD_IMG_HEIGHT
)
*
mainGame
->
yScale
),
recti
(
0
,
0
,
orisize
.
Width
,
orisize
.
Height
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tMask
,
recti
((
574
+
showcarddif
)
*
mainGame
->
xScale
,
150
*
mainGame
->
yScale
,
751
*
mainGame
->
xScale
,
404
*
mainGame
->
yScale
),
recti
(
0
,
0
,
(
CARD_IMG_WIDTH
-
showcarddif
),
CARD_IMG_HEIGHT
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tMask
,
recti
((
574
+
showcarddif
)
*
mainGame
->
xScale
,
150
*
mainGame
->
yScale
,
751
*
mainGame
->
xScale
,
404
*
mainGame
->
yScale
),
recti
(
0
,
0
,
(
CARD_IMG_WIDTH
-
showcarddif
),
CARD_IMG_HEIGHT
),
0
,
0
,
true
);
showcarddif
+=
15
;
if
(
showcarddif
>=
CARD_IMG_WIDTH
)
{
showcard
=
0
;
...
...
Classes/gframe/event_handler.cpp
View file @
2e3f8a20
...
...
@@ -213,10 +213,10 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
if
(
mainGame
->
gameConf
.
quick_animation
)
{
mainGame
->
gameConf
.
quick_animation
=
false
;
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
t
Doubl
eX
);
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
t
On
eX
);
}
else
{
mainGame
->
gameConf
.
quick_animation
=
true
;
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
t
On
eX
);
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
t
Doubl
eX
);
}
mainGame
->
chkQuickAnimation
->
setChecked
(
mainGame
->
gameConf
.
quick_animation
);
break
;
...
...
mobile/assets/data/textures/bg.jpg
View replaced file @
fbf88bd5
View file @
2e3f8a20
866 KB
|
W:
|
H:
245 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/assets/data/textures/bg_deck.jpg
View replaced file @
fbf88bd5
View file @
2e3f8a20
866 KB
|
W:
|
H:
245 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/assets/data/textures/bg_menu.jpg
View replaced file @
fbf88bd5
View file @
2e3f8a20
866 KB
|
W:
|
H:
245 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/src/main/res/drawable-xhdpi/bg3.jpg
View replaced file @
fbf88bd5
View file @
2e3f8a20
275 KB
|
W:
|
H:
245 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/src/main/res/layout/activity_home.xml
View file @
2e3f8a20
...
...
@@ -10,7 +10,7 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#
aa
000000"
/>
android:background=
"#
80
000000"
/>
<FrameLayout
android:id=
"@+id/fragment_content"
...
...
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