Help Window width and heigth

● ARCHIVED · READ-ONLY
Started by Eliaquim 3 posts View original ↗
  1. Hi there!
    I was watching this tutorial:
    [embedded media]

    And i manage to change the position and size of the Help window in the Scene_item.

    But when i try this for the Scene_Menu, i change the position, but i cant change the size. Why?
    Look at the code:

    Code:
    (function(){
        var helpItemCategory = ['Contains potions and herbs.', 'Contains blades and arrows.',
        'Contains breastplates and bucklers.', 'Contains mementos and keys.'];
    
        var itemHelp = 'Use / Check your inventory';
        var skillHelp = 'Use / Check your skills.';
        var eqHelp = 'Sort / Change your equipment.';
        var statusHelp = 'Check your character statistics.';
        var forHelp = 'Sort your party';
        var saveHelp = 'Save your progress';
        var optionsX = 'Set game options';
        var quitH = 'End game.';
    
        var allHelp = [itemHelp, skillHelp, eqHelp, statusHelp, forHelp, optionsX, saveHelp, quitH];
    
        Scene_Item.prototype.update = function() {
            Scene_MenuBase.prototype.update.call(this);
            if (this._categoryWindow.active) {
                this._helpWindow.setText(helpItemCategory[this._categoryWindow._index]);
            }
        }
    
        Scene_Item.prototype.createHelpWindow = function() {
            this._helpWindow = new Window_Help();
            this.addWindow(this._helpWindow);
            this._helpWindow.y = 400;
            this._helpWindow.x = 400;
            this._helpWindow.windowWidth = 400;
            this._helpWindow.windowHeight = 400;
        };
    
        var xSceneMenu_create = Scene_Menu.prototype.create;
        Scene_Menu.prototype.create = function() {
            xSceneMenu_create.call(this);
            this.createHelpWindow();
        };
    
        Scene_Menu.prototype.update = function() {
            Scene_MenuBase.prototype.update.call(this);
            this._helpWindow.setText(allHelp[this._commandWindow._index]);
        }
    
        Scene_Menu.prototype.createHelpWindow = function() {
            this._helpWindow = new Window_Help();
            this.addWindow(this._helpWindow);
            this._helpWindow.y = 0;
            this._helpWindow.x = 240;
            this._helpWindow.windowWidth = 100;
            this._helpWindow.windowHeight = 80;
            
        };
    })();
  2. I don't have the code in front of me but I'm pretty sure that:

    Code:
    this._helpWindow.windowWidth = 100;
    this._helpWindow.windowHeight = 80;

    Should be:

    Code:
    this._helpWindow.width = 100;
    this._helpWindow.height = 80;
  3. Hi aloe!
    Thank you, it worked! It was a small detail ...
    Thanks a lot!