textalign: center in UI
This commit is contained in:
parent
650c8c1fca
commit
4702919b44
@ -1412,6 +1412,7 @@ ui.prototype.drawBook = function (index) {
|
|||||||
}
|
}
|
||||||
core.drawBoxAnimate();
|
core.drawBoxAnimate();
|
||||||
this.drawPagination(page, totalPage, 12);
|
this.drawPagination(page, totalPage, 12);
|
||||||
|
core.canvas.ui.textAlign = 'center';
|
||||||
// 退出
|
// 退出
|
||||||
core.fillText('ui', '返回游戏', 370, 403,'#DDDDDD', 'bold 15px Verdana');
|
core.fillText('ui', '返回游戏', 370, 403,'#DDDDDD', 'bold 15px Verdana');
|
||||||
}
|
}
|
||||||
@ -1981,6 +1982,7 @@ ui.prototype.drawSLPanel = function(index, refresh) {
|
|||||||
else drawAll();
|
else drawAll();
|
||||||
|
|
||||||
this.drawPagination(page+1, max_page, 12);
|
this.drawPagination(page+1, max_page, 12);
|
||||||
|
core.canvas.ui.textAlign = 'center';
|
||||||
// 退出
|
// 退出
|
||||||
core.fillText('ui', '返回游戏', 370, 403,'#DDDDDD', 'bold 15px Verdana');
|
core.fillText('ui', '返回游戏', 370, 403,'#DDDDDD', 'bold 15px Verdana');
|
||||||
|
|
||||||
@ -2117,6 +2119,8 @@ ui.prototype.drawKeyBoard = function () {
|
|||||||
offset+=32;
|
offset+=32;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
core.canvas.ui.textAlign = 'center';
|
||||||
|
|
||||||
core.fillText("ui", "返回游戏", 416-80, offset-3, '#FFFFFF', 'bold 15px Verdana');
|
core.fillText("ui", "返回游戏", 416-80, offset-3, '#FFFFFF', 'bold 15px Verdana');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user