Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
84655b11
Commit
84655b11
authored
Nov 25, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mgevent
parent
d1c96c23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
gframe/event_handler.cpp
gframe/event_handler.cpp
+4
-0
gframe/game.cpp
gframe/game.cpp
+2
-0
gframe/game.h
gframe/game.h
+2
-0
No files found.
gframe/event_handler.cpp
View file @
84655b11
...
...
@@ -2001,12 +2001,14 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return
true
;
break
;
}
#ifdef _WIN32
case
CHECKBOX_ENABLE_MUSIC
:
{
if
(
!
mainGame
->
chkEnableMusic
->
isChecked
())
mainGame
->
engineMusic
->
stopAllSounds
();
return
true
;
break
;
}
#endif
}
break
;
}
...
...
@@ -2044,6 +2046,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return
true
;
break
;
}
#ifdef _WIN32
case
SCROLL_VOLUME
:
{
mainGame
->
gameConf
.
sound_volume
=
(
double
)
mainGame
->
scrSoundVolume
->
getPos
()
/
100
;
mainGame
->
gameConf
.
music_volume
=
(
double
)
mainGame
->
scrMusicVolume
->
getPos
()
/
100
;
...
...
@@ -2051,6 +2054,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
mainGame
->
engineMusic
->
setSoundVolume
(
mainGame
->
gameConf
.
music_volume
);
break
;
}
#endif
}
break
;
}
...
...
gframe/game.cpp
View file @
84655b11
...
...
@@ -793,8 +793,10 @@ void Game::MainLoop() {
usleep
(
500000
);
#endif
SaveConfig
();
#ifdef _WIN32
if
(
engineMusic
)
engineMusic
->
drop
();
#endif
// device->drop();
}
void
Game
::
BuildProjectionMatrix
(
irr
::
core
::
matrix4
&
mProjection
,
f32
left
,
f32
right
,
f32
bottom
,
f32
top
,
f32
znear
,
f32
zfar
)
{
...
...
gframe/game.h
View file @
84655b11
...
...
@@ -468,9 +468,11 @@ public:
irr
::
gui
::
IGUIButton
*
btnCancelOrFinish
;
//soundEngine
#ifdef _WIN32
irrklang
::
ISoundEngine
*
engineSound
;
irrklang
::
ISoundEngine
*
engineMusic
;
irrklang
::
ISound
*
soundBGM
;
#endif
};
extern
Game
*
mainGame
;
...
...
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