From 1ec4994f3cd23467e80f16cfa63bd883a6fc8ad1 Mon Sep 17 00:00:00 2001 From: oc Date: Tue, 2 Apr 2019 11:17:17 +0800 Subject: [PATCH] drawBook textAlign center --- libs/ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ui.js b/libs/ui.js index 8a569922..6c887f92 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1254,6 +1254,7 @@ ui.prototype.drawBook = function (index) { core.drawBoxAnimate(); this.drawPagination(page, totalPage); + core.setTextAlign('ui', 'center'); core.fillText('ui', '返回游戏', this.PIXEL - 46, this.PIXEL - 13,'#DDDDDD', this._buildFont(15, true)); }