This commit is contained in:
ckcz123 2019-08-18 15:25:24 +08:00
parent 59a69d8563
commit 42f6841e68
2 changed files with 2 additions and 2 deletions

View File

@ -1138,7 +1138,7 @@ events.prototype._action_showTextImage = function (data, x, y, prefix) {
var loc = this.__action_getLoc(data.loc, 0, 0, prefix);
if (core.isReplaying()) data.time = 0;
this.__action_doAsyncFunc(data.async || data.time == 0, core.showImage,
data.code, core.ui.textImage(data.text), loc[0], loc[1], 100, 100, data.opacity, data.time);
data.code, core.ui.textImage(data.text), null, loc, data.opacity, data.time);
}
events.prototype._action_hideImage = function (data, x, y, prefix) {

View File

@ -353,7 +353,7 @@ ui.prototype.calWidth = function (name, text, font) {
////// 字符串自动换行的分割 //////
ui.prototype.splitLines = function (name, text, maxWidth, font) {
var ctx = this.getContextByName(name);
if (!ctx) return;
if (!ctx) return [text];
if (font) core.setFont(name, font);
var contents = [];