- Joined
- Jan 12, 2019
- Messages
- 1,546
- Reaction score
- 1,049
- First Language
- Polish
- Primarily Uses
- RMMV
As title says, I've tried this code to make messages transparent for online version, but in all of my installed browsers:
Opera, Chrome, Brave messages display with default skin window.
Then I changed a little Game_Interpreter command directly in rpg_objects.js to following:
And still nothing, what am I missing with this?
(I'd like to mention I'm running tests on localhost and each change in code is followed with Apache restart, clearing all caches and tmp files).
Opera, Chrome, Brave messages display with default skin window.
Code:
(function(){
'use strict';
Game_Message.prototype.background = function() {
this._background = 2; //transparent
return this._background;
})();
Then I changed a little Game_Interpreter command directly in rpg_objects.js to following:
Code:
// Show Text
Game_Interpreter.prototype.command101 = function() {
if (!$gameMessage.isBusy()) {
$gameMessage.setFaceImage(this._params[0], this._params[1]);
$gameMessage.setBackground(2);
$gameMessage.setPositionType(this._params[3]);
while (this.nextEventCode() === 401) { // Text data
this._index++;
$gameMessage.add(this.currentCommand().parameters[0]);
}
switch (this.nextEventCode()) {
case 102: // Show Choices
this._index++;
this.setupChoices(this.currentCommand().parameters);
break;
case 103: // Input Number
this._index++;
this.setupNumInput(this.currentCommand().parameters);
break;
case 104: // Select Item
this._index++;
this.setupItemChoice(this.currentCommand().parameters);
break;
}
this._index++;
this.setWaitMode('message');
}
return false;
};
And still nothing, what am I missing with this?
(I'd like to mention I'm running tests on localhost and each change in code is followed with Apache restart, clearing all caches and tmp files).