PIXI Controls: Fix Edit Mode Text size and zIndex

This commit is contained in:
OleSTEEP 2024-02-15 22:47:21 +03:00
parent f218aed9da
commit 57ffea9478

View file

@ -125,13 +125,13 @@ ONSControls.createAdditionalButtons = function() {
ONSControls.createEditModeInterface = function() {
const headerText = new PIXI.Text("Режим редактирования", {
fontFamily: 'Arial',
fontSize: 24,
fontSize: Math.round(this._controlsCanvas.screen.height / 36),
fill: 0xaaaaaa,
align: 'center'
});
const tipText = new PIXI.Text("Здесь вы можете свободно перемещать элементы управления по экрану.\nЧтобы выйти из этого режима, нажмите кнопку \"Назад\" вашего Android устройства.", {
fontFamily: 'Arial',
fontSize: 16,
fontSize: Math.round(this._controlsCanvas.screen.height / 55),
fill: 0xaaaaaa,
align: 'center'
});
@ -935,12 +935,12 @@ Window_OmoMenuOptionsONSControls.prototype.add = function () {
ONSControls.initialize = function() {
console.log("ONSControls: Initialized");
this.createCanvas();
this.createEditModeInterface();
this.configManager();
this.createButtons();
this.createDPad();
this.createBumpers();
this.createAdditionalButtons();
this.createEditModeInterface();
this.updateButtons();
this.setupInteractive();
this.disableTouch();