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
dc4ba6bc
Commit
dc4ba6bc
authored
Jun 30, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update unable chat
parent
b000c488
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+8
-0
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+7
-7
No files found.
Classes/gframe/event_handler.cpp
View file @
dc4ba6bc
...
...
@@ -1887,6 +1887,14 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break
;
}
case
CHECKBOX_DISABLE_CHAT
:
{
if
(
mainGame
->
gameConf
.
chkIgnore1
)
{
mainGame
->
gameConf
.
chkIgnore1
=
false
;
mainGame
->
imgChat
->
setImage
(
imageManager
.
tTalk
);
}
else
{
mainGame
->
gameConf
.
chkIgnore1
=
true
;
mainGame
->
imgChat
->
setImage
(
imageManager
.
tShut
);
}
mainGame
->
chkIgnore1
->
setChecked
(
mainGame
->
gameConf
.
chkIgnore1
);
bool
show
=
mainGame
->
is_building
?
false
:
!
mainGame
->
chkIgnore1
->
isChecked
();
mainGame
->
wChat
->
setVisible
(
show
);
if
(
!
show
)
...
...
Classes/gframe/game.cpp
View file @
dc4ba6bc
...
...
@@ -226,38 +226,38 @@ bool Game::Initialize() {
wMainMenu
=
env
->
addWindow
(
rect
<
s32
>
(
450
*
xScale
,
40
*
yScale
,
900
*
xScale
,
600
*
yScale
),
false
,
strbuf
);
wMainMenu
->
getCloseButton
()
->
setVisible
(
false
);
wMainMenu
->
setDrawBackground
(
false
);
btnLanMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
30
*
yScale
,
40
0
*
xScale
,
106
*
yScale
),
wMainMenu
,
BUTTON_LAN_MODE
);
btnLanMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
30
*
yScale
,
35
0
*
xScale
,
106
*
yScale
),
wMainMenu
,
BUTTON_LAN_MODE
);
btnLanMode
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnLanMode
->
setDrawBorder
(
false
);
btnLanMode
->
setImage
(
imageManager
.
tTitleBar
);
env
->
addStaticText
(
strbuf
,
rect
<
s32
>
(
62
*
xScale
,
2
*
yScale
,
280
*
xScale
,
35
*
yScale
),
false
,
false
,
btnLanMode
);
env
->
addStaticText
(
strbuf
,
rect
<
s32
>
(
55
*
xScale
,
2
*
yScale
,
280
*
xScale
,
35
*
yScale
),
false
,
false
,
btnLanMode
);
textLanMode
=
env
->
addStaticText
(
dataManager
.
GetSysString
(
1200
),
rect
<
s32
>
(
115
*
xScale
,
25
*
yScale
,
300
*
xScale
,
65
*
yScale
),
false
,
false
,
btnLanMode
);
textLanMode
->
setOverrideFont
(
titleFont
);
btnSingleMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
110
*
yScale
,
40
0
*
xScale
,
186
*
yScale
),
wMainMenu
,
BUTTON_SINGLE_MODE
);
btnSingleMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
110
*
yScale
,
35
0
*
xScale
,
186
*
yScale
),
wMainMenu
,
BUTTON_SINGLE_MODE
);
btnSingleMode
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnSingleMode
->
setDrawBorder
(
false
);
btnSingleMode
->
setImage
(
imageManager
.
tTitleBar
);
textSingleMode
=
env
->
addStaticText
(
dataManager
.
GetSysString
(
1201
),
rect
<
s32
>
(
115
*
xScale
,
25
*
yScale
,
300
*
xScale
,
65
*
yScale
),
false
,
false
,
btnSingleMode
);
textSingleMode
->
setOverrideFont
(
titleFont
);
btnReplayMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
190
*
yScale
,
40
0
*
xScale
,
266
*
yScale
),
wMainMenu
,
BUTTON_REPLAY_MODE
);
btnReplayMode
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
190
*
yScale
,
35
0
*
xScale
,
266
*
yScale
),
wMainMenu
,
BUTTON_REPLAY_MODE
);
btnReplayMode
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnReplayMode
->
setDrawBorder
(
false
);
btnReplayMode
->
setImage
(
imageManager
.
tTitleBar
);
textReplayMode
=
env
->
addStaticText
(
dataManager
.
GetSysString
(
1202
),
rect
<
s32
>
(
115
*
xScale
,
25
*
yScale
,
300
*
xScale
,
65
*
yScale
),
false
,
false
,
btnReplayMode
);
textReplayMode
->
setOverrideFont
(
titleFont
);
btnDeckEdit
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
270
*
yScale
,
40
0
*
xScale
,
346
*
yScale
),
wMainMenu
,
BUTTON_DECK_EDIT
);
btnDeckEdit
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
270
*
yScale
,
35
0
*
xScale
,
346
*
yScale
),
wMainMenu
,
BUTTON_DECK_EDIT
);
btnDeckEdit
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnDeckEdit
->
setDrawBorder
(
false
);
btnDeckEdit
->
setImage
(
imageManager
.
tTitleBar
);
textDeckEdit
=
env
->
addStaticText
(
dataManager
.
GetSysString
(
1204
),
rect
<
s32
>
(
115
*
xScale
,
25
*
yScale
,
300
*
xScale
,
65
*
yScale
),
false
,
false
,
btnDeckEdit
);
textDeckEdit
->
setOverrideFont
(
titleFont
);
btnSettings
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
350
*
yScale
,
40
0
*
xScale
,
426
*
yScale
),
wMainMenu
,
BUTTON_SETTINGS
);
btnSettings
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
350
*
yScale
,
35
0
*
xScale
,
426
*
yScale
),
wMainMenu
,
BUTTON_SETTINGS
);
btnSettings
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnSettings
->
setDrawBorder
(
false
);
btnSettings
->
setImage
(
imageManager
.
tTitleBar
);
textSettings
=
env
->
addStaticText
(
dataManager
.
GetSysString
(
1273
),
rect
<
s32
>
(
115
*
xScale
,
25
*
yScale
,
300
*
xScale
,
65
*
yScale
),
false
,
false
,
btnSettings
);
textSettings
->
setOverrideFont
(
titleFont
);
btnModeExit
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
430
*
yScale
,
40
0
*
xScale
,
506
*
yScale
),
wMainMenu
,
BUTTON_MODE_EXIT
);
btnModeExit
=
irr
::
gui
::
CGUIImageButton
::
addImageButton
(
env
,
rect
<
s32
>
(
15
*
xScale
,
430
*
yScale
,
35
0
*
xScale
,
506
*
yScale
),
wMainMenu
,
BUTTON_MODE_EXIT
);
btnModeExit
->
setImageSize
(
core
::
dimension2di
(
400
*
yScale
,
76
*
yScale
));
btnModeExit
->
setDrawBorder
(
false
);
btnModeExit
->
setImage
(
imageManager
.
tTitleBar
);
...
...
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