This commit is contained in:
oc 2018-09-08 13:30:28 +08:00
parent 52bb6a81dd
commit 13c208c491
4 changed files with 4 additions and 2 deletions

View File

@ -1195,7 +1195,9 @@ events.prototype.changeFloor = function (floorId, stair, heroLoc, time, callback
// 更改BGM
if (core.isset(core.floors[floorId].bgm)) {
core.playBgm(core.floors[floorId].bgm);
var bgm = core.floors[floorId].bgm;
if (bgm instanceof Array) bgm = bgm[0];
core.playBgm(bgm);
}
// 不存在事件时,更改画面色调

View File

@ -529,7 +529,7 @@ ui.prototype.drawTextBox = function(content) {
core.clearMap("ui", content_left, content_top - 18, validWidth, top + height - content_top + 10);
core.setAlpha('ui', textAttribute.background[3]);
core.setFillStyle('ui', core.arrayToRGB(textAttribute.background));
core.fillRect("ui", content_left, content_top - 18, validWidth, top + height - content_top + 10);
core.fillRect("ui", content_left, content_top - 18, validWidth, top + height - content_top + 11);
core.setAlpha('ui', textAttribute.text[3]);
core.setFillStyle('ui', core.arrayToRGB(textAttribute.text));

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB