subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
35
Reaction score
14
First Language
king's english
Primarily Uses
RMMV
Aloha kakou-

I am trying to add my own command to the options window.

Behold my code:
Window_Options-min.png

It runs without a hitch, alack the command "Hud Alignment" does not appear in the options window-
Options Menu.PNG

Can somebody enlighten me as to what I have neglected?

Mahalo nui in advance!
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
613
Reaction score
589
First Language
german
Primarily Uses
RMMZ
Your command is there, you just need to scroll down :p

These are the lines of code from the Maker's Source Code you may want to alias to change the windows's height:

Code:
Scene_Options.prototype.maxCommands = function() {
    // Increase this value when adding option items.
    return 7;
};
Scene_Options.prototype.maxVisibleCommands = function() {
    return 12;
};

Example:

Code:
const alias = Scene_Options.prototype.maxCommands;
Scene_Options.prototype.maxCommands = function() {
  return alias.call(this) + 1;
}
 
Last edited:

subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
35
Reaction score
14
First Language
king's english
Primarily Uses
RMMV
Your command is there, you just need to scroll down :p

These are the lines of code from the Maker's Source Code you may want to alias to change the windows's height:

Code:
Scene_Options.prototype.maxCommands = function() {
    // Increase this value when adding option items.
    return 7;
};
Scene_Options.prototype.maxVisibleCommands = function() {
    return 12;
};

Example:

Code:
const alias = Scene_Options.prototype.maxCommands;
Scene_Options.prototype.maxCommands = function() {
  return alias.call(this) + 1;
}

@Aerosys thank you!
 

Latest Threads

Latest Posts

Latest Profile Posts

Remember when people had the ability to have meaningful conversations on platforms like twitter or facebook? Good times... Nowadays is absolute crap.
All aboard the Advent calendar train, riding Avery's coattails as an excuse to make more sprites. ;)
Advent2021-01.gif

Get 'em in my thread in General Resources.
I had a dream where it was Friday, and what happened in the dream was irrelevant, because I woke up and it's not Friday, so I'm sad.
edit: third time's the charm? some graphic text I whipped up that I like for the mid-game intertitle, now with all of the actual letters in the stupid damn words I was trying to spell :uswt2:
kcsmall.png

Forum statistics

Threads
117,097
Messages
1,104,548
Members
153,111
Latest member
Pazzow
Top