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
b56f9074
Commit
b56f9074
authored
Jun 26, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设置、消息记录按钮事件
parent
b3a07c20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Classes/gframe/deck_con.cpp
Classes/gframe/deck_con.cpp
+16
-0
Classes/gframe/event_handler.cpp
Classes/gframe/event_handler.cpp
+15
-0
No files found.
Classes/gframe/deck_con.cpp
View file @
b56f9074
...
...
@@ -170,6 +170,7 @@ void DeckBuilder::Terminate() {
mainGame
->
wInfos
->
setVisible
(
false
);
mainGame
->
btnLeaveGame
->
setVisible
(
false
);
mainGame
->
wPallet
->
setVisible
(
false
);
mainGame
->
wSettings
->
setVisible
(
false
);
mainGame
->
PopupElement
(
mainGame
->
wMainMenu
);
mainGame
->
device
->
setEventReceiver
(
&
mainGame
->
menuHandler
);
mainGame
->
wACMessage
->
setVisible
(
false
);
...
...
@@ -316,6 +317,21 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame
->
ShowElement
(
mainGame
->
wSettings
);
break
;
}
case
BUTTON_CLOSE_SETTINGS
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
HideElement
(
mainGame
->
wSettings
);
break
;
}
case
BUTTON_SHOW_LOG
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
ShowElement
(
mainGame
->
wLogs
);
break
;
}
case
BUTTON_CLOSE_LOG
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
HideElement
(
mainGame
->
wLogs
);
break
;
}
case
BUTTON_EFFECT_FILTER
:
{
mainGame
->
PopupElement
(
mainGame
->
wCategories
);
break
;
...
...
Classes/gframe/event_handler.cpp
View file @
b56f9074
...
...
@@ -167,6 +167,21 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
ShowElement
(
mainGame
->
wSettings
);
break
;
}
case
BUTTON_CLOSE_SETTINGS
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
HideElement
(
mainGame
->
wSettings
);
break
;
}
case
BUTTON_SHOW_LOG
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
ShowElement
(
mainGame
->
wLogs
);
break
;
}
case
BUTTON_CLOSE_LOG
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
mainGame
->
HideElement
(
mainGame
->
wLogs
);
break
;
}
case
BUTTON_BGM
:
{
mainGame
->
soundManager
->
PlaySoundEffect
(
SoundManager
::
SFX
::
BUTTON
);
if
(
mainGame
->
gameConf
.
enable_music
)
{
...
...
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