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
8ca12a93
Commit
8ca12a93
authored
Jul 02, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出,时点按钮等比例缩放
parent
abf6c5b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+8
-8
No files found.
Classes/gframe/game.cpp
View file @
8ca12a93
...
...
@@ -422,7 +422,7 @@ bool Game::Initialize() {
scrCardText
->
setSmallStep
(
1
);
scrCardText
->
setVisible
(
false
);
//imageButtons pallet
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
26
5
*
xScale
,
275
*
yScale
,
305
*
xScale
,
639
*
yScale
),
false
,
L""
);
wPallet
=
env
->
addWindow
(
rect
<
s32
>
(
26
2
*
xScale
,
275
*
yScale
,
307
*
xScale
,
639
*
yScale
),
false
,
L""
);
wPallet
->
getCloseButton
()
->
setVisible
(
false
);
wPallet
->
setDraggable
(
false
);
wPallet
->
setDrawTitlebar
(
false
);
...
...
@@ -971,12 +971,12 @@ bool Game::Initialize() {
wChat
->
setVisible
(
false
);
ebChatInput
=
CAndroidGUIEditBox
::
addAndroidEditBox
(
L""
,
true
,
env
,
rect
<
s32
>
(
3
*
xScale
,
2
*
yScale
,
710
*
xScale
,
28
*
yScale
),
wChat
,
EDITBOX_CHAT
);
//swap
btnSpectatorSwap
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
100
*
yScale
,
260
*
x
Scale
,
135
*
yScale
),
0
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
btnSpectatorSwap
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
100
*
yScale
,
307
*
y
Scale
,
135
*
yScale
),
0
,
BUTTON_REPLAY_SWAP
,
dataManager
.
GetSysString
(
1346
));
btnSpectatorSwap
->
setVisible
(
false
);
//chain buttons
btnChainIgnore
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
100
*
yScale
,
260
*
x
Scale
,
135
*
yScale
),
0
,
BUTTON_CHAIN_IGNORE
,
dataManager
.
GetSysString
(
1292
));
btnChainAlways
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
140
*
yScale
,
260
*
x
Scale
,
175
*
yScale
),
0
,
BUTTON_CHAIN_ALWAYS
,
dataManager
.
GetSysString
(
1293
));
btnChainWhenAvail
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
180
*
yScale
,
260
*
x
Scale
,
215
*
yScale
),
0
,
BUTTON_CHAIN_WHENAVAIL
,
dataManager
.
GetSysString
(
1294
));
btnChainIgnore
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
100
*
yScale
,
307
*
y
Scale
,
135
*
yScale
),
0
,
BUTTON_CHAIN_IGNORE
,
dataManager
.
GetSysString
(
1292
));
btnChainAlways
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
140
*
yScale
,
307
*
y
Scale
,
175
*
yScale
),
0
,
BUTTON_CHAIN_ALWAYS
,
dataManager
.
GetSysString
(
1293
));
btnChainWhenAvail
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
180
*
yScale
,
307
*
y
Scale
,
215
*
yScale
),
0
,
BUTTON_CHAIN_WHENAVAIL
,
dataManager
.
GetSysString
(
1294
));
btnChainIgnore
->
setIsPushButton
(
true
);
btnChainAlways
->
setIsPushButton
(
true
);
btnChainWhenAvail
->
setIsPushButton
(
true
);
...
...
@@ -984,10 +984,10 @@ bool Game::Initialize() {
btnChainAlways
->
setVisible
(
false
);
btnChainWhenAvail
->
setVisible
(
false
);
//shuffle
btnShuffle
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
220
*
yScale
,
260
*
x
Scale
,
255
*
yScale
),
0
,
BUTTON_CMD_SHUFFLE
,
dataManager
.
GetSysString
(
1297
));
btnShuffle
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
220
*
yScale
,
307
*
y
Scale
,
255
*
yScale
),
0
,
BUTTON_CMD_SHUFFLE
,
dataManager
.
GetSysString
(
1297
));
btnShuffle
->
setVisible
(
false
);
//cancel or finish
btnCancelOrFinish
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
220
*
yScale
,
260
*
x
Scale
,
275
*
yScale
),
0
,
BUTTON_CANCEL_OR_FINISH
,
dataManager
.
GetSysString
(
1295
));
btnCancelOrFinish
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
220
*
yScale
,
307
*
y
Scale
,
275
*
yScale
),
0
,
BUTTON_CANCEL_OR_FINISH
,
dataManager
.
GetSysString
(
1295
));
btnCancelOrFinish
->
setVisible
(
false
);
soundManager
=
Utils
::
make_unique
<
SoundManager
>
();
if
(
!
soundManager
->
Init
((
double
)
gameConf
.
sound_volume
/
100
,
(
double
)
gameConf
.
music_volume
/
100
,
gameConf
.
enable_sound
,
gameConf
.
enable_music
,
nullptr
))
{
...
...
@@ -1004,7 +1004,7 @@ bool Game::Initialize() {
}
#endif
//leave/surrender/exit
btnLeaveGame
=
env
->
addButton
(
rect
<
s32
>
(
180
*
xScale
,
1
*
yScale
,
260
*
x
Scale
,
80
*
yScale
),
0
,
BUTTON_LEAVE_GAME
,
L""
);
btnLeaveGame
=
env
->
addButton
(
rect
<
s32
>
(
200
*
yScale
,
1
*
yScale
,
307
*
y
Scale
,
80
*
yScale
),
0
,
BUTTON_LEAVE_GAME
,
L""
);
btnLeaveGame
->
setVisible
(
false
);
//tip
stTip
=
env
->
addStaticText
(
L""
,
rect
<
s32
>
(
0
,
0
,
150
*
xScale
,
150
*
yScale
),
false
,
true
,
0
,
-
1
,
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