Skip to content

Commit e22c2e0

Browse files
committed
please work
1 parent 6ca8a07 commit e22c2e0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

game/js/Cfunction.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ var oS = {
148148
Init(e, g, b, d) {
149149
var c;
150150
var a = window;
151-
e.LoadMusic ? (PlayMusic(e.LoadMusic), NewAudio({ source: "ChooseYourSeeds", loop: true })) : PlayMusic((e.LoadMusic = "ChooseYourSeeds"));
151+
e.LoadMusic ? (PlayMusic(e.LoadMusic, e.MusicEnabled), NewAudio({ source: "ChooseYourSeeds", loop: true })) : PlayMusic((e.LoadMusic = "ChooseYourSeeds"));
152152
if (b !== d) {
153153
for (c in b) {
154154
a[c] !== d ? ((this.GlobalVariables[c] = a[c]), (a[c] = b[c])) : (this.LvlVariables[c] = a[c] = b[c]);
@@ -2638,7 +2638,7 @@ var lastB;
26382638
document.cookie = a + "=0;";
26392639
}),
26402640
(WordUTF8 =
2641-
'<div id="dLogo" style="position:absolute;width:900px;height:600px;z-index:1"><span id="commit" style="position: absolute;color: #ffffff0f;bottom: 0;user-select: none;"></span><div id="LogoWord" style="position:absolute;color:#FF0;top:300px;width:100%;height:100px"><span style="position:absolute;width:305px;height:150px;left:285px;top:5px;cursor:url(images/interface/Pointer.cur),pointer" onclick="PlayAudio(\'gravebutton\');StopMusic();PlayMusic(oS.LoadMusic);SetBlock($(\'dSurface\'),$(\'iSurfaceBackground\'));ShowNameDiv();sa_event(\'clickstart0js\')"></span><div style="position:absolute;font-size:14px;left:660px;text-align:center;width:140px;top:185px;line-height:1.5;font-weight:bold"><span style="cursor:url(images/interface/Pointer.cur),pointer"><span id="" style=""></span></span></div></div><div style="position:absolute;width:74px;height:41px;left:807px;top:502px;cursor:url(images/interface/Pointer.cur),pointer;z-index:300" onclick="SetVisible($(\'dProcess\'))"></div><img src="" style="position:absolute;left:550px;top:-40px"></div>');
2641+
'<div id="dLogo" style="position:absolute;width:900px;height:600px;z-index:1"><span id="commit" style="position: absolute;color: #ffffff0f;bottom: 0;user-select: none;"></span><div id="LogoWord" style="position:absolute;color:#FF0;top:300px;width:100%;height:100px"><span style="position:absolute;width:305px;height:150px;left:285px;top:5px;cursor:url(images/interface/Pointer.cur),pointer" onclick="PlayAudio(\'gravebutton\');PlayMusic(oS.LoadMusic);SetBlock($(\'dSurface\'),$(\'iSurfaceBackground\'));ShowNameDiv();sa_event(\'clickstart0js\')"></span><div style="position:absolute;font-size:14px;left:660px;text-align:center;width:140px;top:185px;line-height:1.5;font-weight:bold"><span style="cursor:url(images/interface/Pointer.cur),pointer"><span id="" style=""></span></span></div></div><div style="position:absolute;width:74px;height:41px;left:807px;top:502px;cursor:url(images/interface/Pointer.cur),pointer;z-index:300" onclick="SetVisible($(\'dProcess\'))"></div><img src="" style="position:absolute;left:550px;top:-40px"></div>');
26422642

26432643
(ShowNameDiv = function () {
26442644
oSym.Start();
@@ -3251,9 +3251,10 @@ var lastB;
32513251
}
32523252
: function () {}),
32533253
(PlayMusic = $User.HTML5
3254-
? function (b) {
3254+
? function (b, enabled) {
32553255
var a = oAudio[b];
3256-
if (a) {
3256+
if (enabled == true || enabled == undefined) {
3257+
if (a) {
32573258
try {
32583259
a.currentTime = 0;
32593260
} catch (c) {}
@@ -3262,6 +3263,7 @@ var lastB;
32623263
NewMusic(b);
32633264
oAudio[b].play();
32643265
}
3266+
}
32653267
}
32663268
: function (a) {
32673269
NewMusic(a);

game/level/0.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ oS.Init({
7070
LevelEName: 0,
7171
ShowScroll: 1,
7272
LoadMusic: "MyScrapbook",
73+
MusicEnabled: false,
7374
AudioArr: [
7475
"losemusic",
7576
"winmusic",

0 commit comments

Comments
 (0)