subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
36
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
780
Reaction score
747
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
36
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 Profile Posts

I'm finally loving making the battles again - got a much more streamlined system going. I just hope I can get this game done soon so I can move on!
finally finished the 1st part of my game, it'll be releasing this friday after 7 months of work :LZYsmile:

the game is going to have 3 chapters with two parts to them, and now i've finished chapter 1, part one with a good hour of gameplay and a seperate route already starting
Recorded myself while doing some parallax mapping
Emotional maturity is using facts and logic to form your emotions. Emotional immaturity is using your emotions to form your logic and facts.
Got a 25 buck secret santa budget and managed to score 3 DVDs for 1,50 in total at the christmas market at university. I might need a handcart to transport the final result xD

Forum statistics

Threads
127,070
Messages
1,183,679
Members
166,976
Latest member
xhorxhi
Top