Fix drawTextBox \b

This commit is contained in:
ckcz123 2019-04-10 18:46:29 +08:00
parent 3f030ff010
commit a2506d7068
2 changed files with 10 additions and 2 deletions

View File

@ -70,7 +70,7 @@ events.prototype._startGame_start = function (hard, seed, route, callback) {
events.prototype._startGame_afterStart = function (nowLoc, callback) {
core.ui.closePanel();
core.showStatusBar();
this._startGame_statusBar();
core.dom.musicBtn.style.display = 'none';
core.changeFloor(core.firstData.floorId, null, nowLoc, null, function () {
// 插入一个空事件避免直接回放录像出错
@ -80,6 +80,14 @@ events.prototype._startGame_afterStart = function (nowLoc, callback) {
this._startGame_upload();
}
// 开始游戏时是否显示状态栏
events.prototype._startGame_statusBar = function () {
if (core.flags.startUsingCanvas)
core.hideStatusBar();
else
core.showStatusBar();
}
events.prototype._startGame_upload = function () {
// Upload
var formData = new FormData();

View File

@ -768,8 +768,8 @@ ui.prototype.drawTextBox = function(content, showAll) {
var textAttribute = core.status.textAttribute;
var titleInfo = this._getTitleAndIcon(content);
var posInfo = this._getPosition(titleInfo.content);
if (!posInfo.position) posInfo.position = textAttribute.position;
if (posInfo.position != 'up' && posInfo.position != 'down') posInfo.px = posInfo.py = null;
if (!posInfo.position) posInfo.position = textAttribute.position;
content = this._drawTextBox_drawImages(posInfo.content);
// Step 2: 计算对话框的矩形位置