CSS properties to customize error popups

● ARCHIVED · READ-ONLY
Started by Landazar 4 posts View original ↗
  1. Is this even possible to make game in RMMV handling errors from this
    Clipboard01.jpg

    to (for example that) ?
    error.png
  2. Is it possible? Yes.

    If you know CSS/HTML, it wouldn't be hard, you can create whatever buttons you'd like and style them as you wish.

    Here is where the loading error HTML is created.
    Code:
    Graphics.printLoadingError = function(url) {
        if (this._errorPrinter && !this._errorShowed) {
            this._errorPrinter.innerHTML = this._makeErrorHtml('Loading Error', 'Failed to load: ' + url);
            var button = document.createElement('button');
            button.innerHTML = 'Retry';
            button.style.fontSize = '24px';
            button.style.color = '#ffffff';
            button.style.backgroundColor = '#000000';
            button.onmousedown = button.ontouchstart = function(event) {
                ResourceHandler.retry();
                event.stopPropagation();
            };
            this._errorPrinter.appendChild(button);
            this._loadingCount = -Infinity;
        }
    };

    And here for the content of the message:
    Code:
    Graphics._makeErrorHtml = function(name, message) {
        return ('<font color="yellow"><b>' + name + '</b></font><br>' +
                '<font color="white">' + message + '</font><br>');
    };
  3. like say upper , yes it easy , you can also use dev tool to live customize CSS.
    upload_2018-8-7_14-42-41.png
  4. Thank you all. Thank so much :)
    Spoiler
    giphy.gif

    (Not quite) quick modification and 1st result:
    Spoiler
    rrr.jpg