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
4fbc5cd8
Commit
4fbc5cd8
authored
Jun 21, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置打开wSettings按钮
parent
915e4153
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
4 deletions
+22
-4
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+2
-0
Classes/gframe/duelclient.cpp
Classes/gframe/duelclient.cpp
+1
-0
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+5
-0
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+7
-2
Classes/gframe/game.h
Classes/gframe/game.h
+3
-0
Classes/gframe/menu_handler.cpp
Classes/gframe/menu_handler.cpp
+1
-0
Classes/gframe/single_mode.cpp
Classes/gframe/single_mode.cpp
+1
-0
mobile/build.gradle
mobile/build.gradle
+2
-2
No files found.
Classes/gframe/deck_con.cpp
View file @
4fbc5cd8
...
...
@@ -134,6 +134,7 @@ void DeckBuilder::Initialize() {
mainGame
->
wSort
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setText
(
dataManager
.
GetSysString
(
1306
));
mainGame
->
imgSettings
->
setVisible
(
true
);
mainGame
->
btnSideOK
->
setVisible
(
false
);
mainGame
->
btnSideShuffle
->
setVisible
(
false
);
mainGame
->
btnSideSort
->
setVisible
(
false
);
...
...
@@ -168,6 +169,7 @@ void DeckBuilder::Terminate() {
mainGame
->
wCardImg
->
setVisible
(
false
);
mainGame
->
wInfos
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
wSettings
->
setVisible
(
false
);
mainGame
->
PopupElement
(
mainGame
->
wMainMenu
);
mainGame
->
device
->
setEventReceiver
(
&
mainGame
->
menuHandler
);
mainGame
->
wACMessage
->
setVisible
(
false
);
...
...
Classes/gframe/duelclient.cpp
View file @
4fbc5cd8
...
...
@@ -592,6 +592,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame
->
is_building
=
false
;
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
imgSettings
->
setVisible
(
true
);
mainGame
->
wPhase
->
setVisible
(
true
);
mainGame
->
btnSideOK
->
setVisible
(
false
);
mainGame
->
btnSideShuffle
->
setVisible
(
false
);
...
...
Classes/gframe/event_handler.cpp
View file @
4fbc5cd8
...
...
@@ -162,6 +162,11 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
HideElement
(
mainGame
->
wSurrender
);
break
;
}
case
BUTTON_SETTINGS
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
ShowElement
(
mainGame
->
wSettings
);
break
;
}
case
BUTTON_CHAIN_IGNORE
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
ignore_chain
=
mainGame
->
btnChainIgnore
->
isPressed
();
...
...
Classes/gframe/game.cpp
View file @
4fbc5cd8
...
...
@@ -389,13 +389,17 @@ bool Game::Initialize() {
scrCardText
->
setSmallStep
(
1
);
scrCardText
->
setVisible
(
false
);
//setting
wSettings
=
env
->
addWindow
(
rect
<
s32
>
(
220
*
xScale
,
100
*
yScale
,
800
*
xScale
,
520
*
yScale
),
false
,
dataManager
.
GetSysString
(
1273
));
imgSettings
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
265
*
yScale
,
275
*
yScale
,
290
*
yScale
,
300
*
yScale
),
0
,
BUTTON_SETTINGS
);
imgSettings
->
setImage
(
imageManager
.
tAct
);
//imgSettings->setImageScale(core::vector2df(xScale, yScale));
imgSettings
->
setVisible
(
false
);
wSettings
=
env
->
addWindow
(
rect
<
s32
>
(
220
*
xScale
,
100
*
yScale
,
800
*
xScale
,
520
*
yScale
),
false
,
dataManager
.
GetSysString
(
1273
));
wSettings
->
getCloseButton
()
->
setVisible
(
false
);
wSettings
->
setVisible
(
false
);
irr
::
gui
::
IGUITabControl
*
tabSetting
=
env
->
addTabControl
(
rect
<
s32
>
(
0
*
xScale
,
20
*
yScale
,
579
*
xScale
,
419
*
yScale
),
wSettings
,
true
);
tabSetting
->
setTabHeight
(
40
*
yScale
);
//log
//imgLog = irr::gui::CGUIImageButton::addImageButton(env, rect<s32>(265 * yScale, 305 * yScale, 290 * yScale, 330 * yScale), 0, BUTTON_SHOW_LOG);
irr
::
gui
::
IGUITab
*
tabLog
=
tabSetting
->
addTab
(
dataManager
.
GetSysString
(
1271
));
lstLog
=
env
->
addListBox
(
rect
<
s32
>
(
10
*
xScale
,
10
*
yScale
,
790
*
xScale
,
510
*
yScale
),
wSettings
,
LISTBOX_LOG
,
false
);
lstLog
->
setItemHeight
(
25
*
yScale
);
...
...
@@ -1763,6 +1767,7 @@ void Game::CloseDuelWindow() {
wCardImg
->
setVisible
(
false
);
wInfos
->
setVisible
(
false
);
wChat
->
setVisible
(
false
);
imgSettings
->
setVisible
(
false
);
btnSideOK
->
setVisible
(
false
);
btnSideShuffle
->
setVisible
(
false
);
btnSideSort
->
setVisible
(
false
);
...
...
Classes/gframe/game.h
View file @
4fbc5cd8
...
...
@@ -808,6 +808,9 @@ private:
#define CHECKBOX_ENABLE_MUSIC 362
#define SCROLL_VOLUME 363
#define CHECKBOX_DISABLE_CHAT 364
#define BUTTON_SETTINGS 365
#define BUTTON_BGM 366
#define BUTTON_SHOW_LOG 367
#define CHECKBOX_DRAW_FIELD_SPELL 368
#define CHECKBOX_QUICK_ANIMATION 369
#define SCROLL_TAB_HELPER 370
...
...
Classes/gframe/menu_handler.cpp
View file @
4fbc5cd8
...
...
@@ -240,6 +240,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
mainGame
->
imgCard
->
setScaleImage
(
true
);
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
imgSettings
->
setVisible
(
true
);
mainGame
->
wReplay
->
setVisible
(
true
);
mainGame
->
wReplayControl
->
setVisible
(
true
);
mainGame
->
btnReplayStart
->
setVisible
(
false
);
...
...
Classes/gframe/single_mode.cpp
View file @
4fbc5cd8
...
...
@@ -72,6 +72,7 @@ int SingleMode::SinglePlayThread() {
mainGame
->
ClearCardInfo
();
mainGame
->
wCardImg
->
setVisible
(
true
);
mainGame
->
wInfos
->
setVisible
(
true
);
mainGame
->
imgSettings
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setVisible
(
true
);
mainGame
->
btnLeaveGame
->
setText
(
dataManager
.
GetSysString
(
1210
));
mainGame
->
wPhase
->
setVisible
(
true
);
...
...
mobile/build.gradle
View file @
4fbc5cd8
...
...
@@ -8,8 +8,8 @@ android {
applicationId
"cn.garymb.ygomobile"
minSdkVersion
21
targetSdkVersion
28
versionCode
370
200612
versionName
"3.7.
2
"
versionCode
370
300621
versionName
"3.7.
3
"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
...
...
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