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 Profile Posts

I'm feeling rough today, a bit too many last night I'd say. Still have no choice to work on Corpse Mansion. That and I got. bunch of sales last night. I was like wtf this morning, next payout is gonna be nice at least.
I'm just so close to replacing LUK with a different stat, maybe DEX but we'll see.
Slapped together a title screen and working on some dungeon clutter + portraits for Dubhghaill and Einar. Usual CW for minor body horror wrt Einar
QVLJIgD.png

OaPcYUy.png

r55FiUJ.png

EIgO94y.png
cT1V4nb.png
>studying for months for an exam
>does exam
>waits 3 months for the results to come out
>me trying to login, incorrect password
>I get recovery password
>me trying to login, incorrect password

What the heck. As a son of a Karen, I'm going to file a few complaints.

Forum statistics

Threads
117,149
Messages
1,104,971
Members
153,229
Latest member
jimproringtones
Top