Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
Commits
fbf88bd5
Commit
fbf88bd5
authored
Apr 05, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加加速动画快捷按钮
调整效果文字边距 放大左侧卡图
parent
9a7ff47a
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
58 additions
and
30 deletions
+58
-30
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+2
-0
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+14
-2
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+31
-24
Classes/gframe/game.h
Classes/gframe/game.h
+6
-3
Classes/gframe/image_manager.cpp
Classes/gframe/image_manager.cpp
+2
-0
Classes/gframe/image_manager.h
Classes/gframe/image_manager.h
+2
-0
mobile/assets/data/textures/extra/tdoublex.png
mobile/assets/data/textures/extra/tdoublex.png
+0
-0
mobile/assets/data/textures/extra/tonex.png
mobile/assets/data/textures/extra/tonex.png
+0
-0
mobile/build.gradle
mobile/build.gradle
+1
-1
No files found.
Classes/gframe/deck_con.cpp
View file @
fbf88bd5
...
@@ -75,6 +75,7 @@ void DeckBuilder::Initialize() {
...
@@ -75,6 +75,7 @@ void DeckBuilder::Initialize() {
mainGame
->
btnLeaveGame
->
setText
(
dataManager
.
GetSysString
(
1306
));
mainGame
->
btnLeaveGame
->
setText
(
dataManager
.
GetSysString
(
1306
));
mainGame
->
wPallet
->
setVisible
(
true
);
mainGame
->
wPallet
->
setVisible
(
true
);
mainGame
->
imgChat
->
setVisible
(
false
);
mainGame
->
imgChat
->
setVisible
(
false
);
mainGame
->
imgQuickAnimation
->
setVisible
(
false
);
mainGame
->
btnSideOK
->
setVisible
(
false
);
mainGame
->
btnSideOK
->
setVisible
(
false
);
mainGame
->
btnSideShuffle
->
setVisible
(
false
);
mainGame
->
btnSideShuffle
->
setVisible
(
false
);
mainGame
->
btnSideSort
->
setVisible
(
false
);
mainGame
->
btnSideSort
->
setVisible
(
false
);
...
@@ -110,6 +111,7 @@ void DeckBuilder::Terminate() {
...
@@ -110,6 +111,7 @@ void DeckBuilder::Terminate() {
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
wPallet
->
setVisible
(
false
);
mainGame
->
wPallet
->
setVisible
(
false
);
mainGame
->
imgChat
->
setVisible
(
true
);
mainGame
->
imgChat
->
setVisible
(
true
);
mainGame
->
imgQuickAnimation
->
setVisible
(
true
);
mainGame
->
wSettings
->
setVisible
(
false
);
mainGame
->
wSettings
->
setVisible
(
false
);
mainGame
->
wLogs
->
setVisible
(
false
);
mainGame
->
wLogs
->
setVisible
(
false
);
mainGame
->
PopupElement
(
mainGame
->
wMainMenu
);
mainGame
->
PopupElement
(
mainGame
->
wMainMenu
);
...
...
Classes/gframe/event_handler.cpp
View file @
fbf88bd5
...
@@ -209,6 +209,18 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -209,6 +209,18 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
soundManager
->
EnableMusic
(
mainGame
->
chkEnableMusic
->
isChecked
());
mainGame
->
soundManager
->
EnableMusic
(
mainGame
->
chkEnableMusic
->
isChecked
());
break
;
break
;
}
}
case
BUTTON_QUICK_ANIMIATION
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
if
(
mainGame
->
gameConf
.
quick_animation
)
{
mainGame
->
gameConf
.
quick_animation
=
false
;
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
tDoubleX
);
}
else
{
mainGame
->
gameConf
.
quick_animation
=
true
;
mainGame
->
imgQuickAnimation
->
setImage
(
imageManager
.
tOneX
);
}
mainGame
->
chkQuickAnimation
->
setChecked
(
mainGame
->
gameConf
.
quick_animation
);
break
;
}
case
BUTTON_CHATTING
:
{
case
BUTTON_CHATTING
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
if
(
mainGame
->
gameConf
.
chkIgnore1
)
{
if
(
mainGame
->
gameConf
.
chkIgnore1
)
{
...
@@ -2098,7 +2110,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2098,7 +2110,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
break
;
}
}
u32
pos
=
mainGame
->
scrCardText
->
getPos
();
u32
pos
=
mainGame
->
scrCardText
->
getPos
();
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
15
,
mainGame
->
textFont
,
mainGame
->
showingtext
,
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
(),
mainGame
->
textFont
,
mainGame
->
showingtext
,
pos
);
return
true
;
return
true
;
break
;
break
;
}
}
...
@@ -2287,7 +2299,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
...
@@ -2287,7 +2299,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
<
0
)
pos
=
0
;
if
(
pos
>
max
)
pos
=
max
;
if
(
pos
>
max
)
pos
=
max
;
mainGame
->
scrCardText
->
setPos
(
pos
);
mainGame
->
scrCardText
->
setPos
(
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
()
-
15
,
mainGame
->
textFont
,
mainGame
->
showingtext
,
pos
);
mainGame
->
SetStaticText
(
mainGame
->
stText
,
mainGame
->
stText
->
getRelativePosition
().
getWidth
(),
mainGame
->
textFont
,
mainGame
->
showingtext
,
pos
);
}
}
if
(
is_dragging_lstLog
)
{
if
(
is_dragging_lstLog
)
{
if
(
!
mainGame
->
lstLog
->
getVerticalScrollBar
()
->
isVisible
())
{
if
(
!
mainGame
->
lstLog
->
getVerticalScrollBar
()
->
isVisible
())
{
...
...
Classes/gframe/game.cpp
View file @
fbf88bd5
This diff is collapsed.
Click to expand it.
Classes/gframe/game.h
View file @
fbf88bd5
...
@@ -272,7 +272,7 @@ public:
...
@@ -272,7 +272,7 @@ public:
irr
::
gui
::
CGUITTFont
*
titleFont
;
irr
::
gui
::
CGUITTFont
*
titleFont
;
std
::
map
<
irr
::
gui
::
CGUIImageButton
*
,
int
>
imageLoading
;
std
::
map
<
irr
::
gui
::
CGUIImageButton
*
,
int
>
imageLoading
;
//card image
//card image
irr
::
gui
::
IGUI
Image
*
wCardImg
;
irr
::
gui
::
IGUI
StaticText
*
wCardImg
;
irr
::
gui
::
IGUIImage
*
imgCard
;
irr
::
gui
::
IGUIImage
*
imgCard
;
//imageButtons pallet
//imageButtons pallet
irr
::
gui
::
IGUIWindow
*
wPallet
;
irr
::
gui
::
IGUIWindow
*
wPallet
;
...
@@ -285,6 +285,8 @@ public:
...
@@ -285,6 +285,8 @@ public:
irr
::
gui
::
IGUIButton
*
btnCloseLog
;
//
irr
::
gui
::
IGUIButton
*
btnCloseLog
;
//
//imageButton BGM
//imageButton BGM
irr
::
gui
::
CGUIImageButton
*
imgVol
;
irr
::
gui
::
CGUIImageButton
*
imgVol
;
//imageButton Quick Animation
irr
::
gui
::
CGUIImageButton
*
imgQuickAnimation
;
//imageButton Chatting
//imageButton Chatting
irr
::
gui
::
CGUIImageButton
*
imgChat
;
irr
::
gui
::
CGUIImageButton
*
imgChat
;
//Settings
//Settings
...
@@ -700,8 +702,8 @@ extern Game* mainGame;
...
@@ -700,8 +702,8 @@ extern Game* mainGame;
}
}
#define CARD_IMG_WIDTH
177
#define CARD_IMG_WIDTH
200
#define CARD_IMG_HEIGHT 2
54
#define CARD_IMG_HEIGHT 2
90
#define CARD_THUMB_WIDTH 44
#define CARD_THUMB_WIDTH 44
#define CARD_THUMB_HEIGHT 64
#define CARD_THUMB_HEIGHT 64
...
@@ -907,6 +909,7 @@ extern Game* mainGame;
...
@@ -907,6 +909,7 @@ extern Game* mainGame;
#define CHECKBOX_PREFER_EXPANSION 373
#define CHECKBOX_PREFER_EXPANSION 373
#define CHECKBOX_DRAW_SINGLE_CHAIN 374
#define CHECKBOX_DRAW_SINGLE_CHAIN 374
#define CHECKBOX_LFLIST 375
#define CHECKBOX_LFLIST 375
#define BUTTON_QUICK_ANIMIATION 376
#define BUTTON_BIG_CARD_CLOSE 380
#define BUTTON_BIG_CARD_CLOSE 380
#define BUTTON_BIG_CARD_ZOOM_IN 381
#define BUTTON_BIG_CARD_ZOOM_IN 381
#define BUTTON_BIG_CARD_ZOOM_OUT 382
#define BUTTON_BIG_CARD_ZOOM_OUT 382
...
...
Classes/gframe/image_manager.cpp
View file @
fbf88bd5
...
@@ -49,6 +49,8 @@ bool ImageManager::Initial(const path dir) {
...
@@ -49,6 +49,8 @@ bool ImageManager::Initial(const path dir) {
tMute
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tmute.png"
)).
c_str
());
tMute
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tmute.png"
)).
c_str
());
tPlay
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tplay.png"
)).
c_str
());
tPlay
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tplay.png"
)).
c_str
());
tTalk
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/ttalk.png"
)).
c_str
());
tTalk
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/ttalk.png"
)).
c_str
());
tOneX
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tonex.png"
)).
c_str
());
tDoubleX
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tdoublex.png"
)).
c_str
());
tShut
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tshut.png"
)).
c_str
());
tShut
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tshut.png"
)).
c_str
());
tClose
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tclose.png"
)).
c_str
());
tClose
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/tclose.png"
)).
c_str
());
tTitleBar
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/stitlebar.png"
)).
c_str
());
tTitleBar
=
driver
->
getTexture
((
dir
+
path
(
"/textures/extra/stitlebar.png"
)).
c_str
());
...
...
Classes/gframe/image_manager.h
View file @
fbf88bd5
...
@@ -64,6 +64,8 @@ public:
...
@@ -64,6 +64,8 @@ public:
irr
::
video
::
ITexture
*
tMute
;
irr
::
video
::
ITexture
*
tMute
;
irr
::
video
::
ITexture
*
tPlay
;
irr
::
video
::
ITexture
*
tPlay
;
irr
::
video
::
ITexture
*
tTalk
;
irr
::
video
::
ITexture
*
tTalk
;
irr
::
video
::
ITexture
*
tOneX
;
irr
::
video
::
ITexture
*
tDoubleX
;
irr
::
video
::
ITexture
*
tShut
;
irr
::
video
::
ITexture
*
tShut
;
irr
::
video
::
ITexture
*
tClose
;
irr
::
video
::
ITexture
*
tClose
;
irr
::
video
::
ITexture
*
tTitleBar
;
irr
::
video
::
ITexture
*
tTitleBar
;
...
...
mobile/assets/data/textures/extra/tdoublex.png
0 → 100644
View file @
fbf88bd5
2.03 KB
mobile/assets/data/textures/extra/tonex.png
0 → 100644
View file @
fbf88bd5
1.99 KB
mobile/build.gradle
View file @
fbf88bd5
...
@@ -9,7 +9,7 @@ android {
...
@@ -9,7 +9,7 @@ android {
minSdkVersion
21
minSdkVersion
21
//noinspection ExpiredTargetSdkVersion
//noinspection ExpiredTargetSdkVersion
targetSdkVersion
29
targetSdkVersion
29
versionCode
31009094
4
versionCode
31009094
5
versionName
"3.10.9"
versionName
"3.10.9"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
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