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

I think it's ready - Chapter Selection:
unknown.png
On another more gaming topic, I paid 20 bucks for a visual novel to emotionally destroy me. I may write an entry about that.
1638611395177.png
Reading about metaverses recently. I can totally imagine myself in the future, logging in with VR glasses to a virtual beach villa sitting in a virtual chair, with a virtual laptop facing the sea...coding 16-bit RM.
Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!

Forum statistics

Threads
117,171
Messages
1,105,132
Members
153,267
Latest member
Christopher626
Top