RMMZ Remove "Always Dash" from the Options menu

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,969
Reaction score
845
First Language
French
I'm not using Dash at all. I'd like to remove it from the options menu, how do I do that?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,035
Reaction score
13,672
First Language
English
Primarily Uses
RMMV
Copy the following into a text file and name it with a .js extension, then put it in your plugins folder.

Note - this overwrites a method, as it can't be aliased, so if you see issues with other things in the Options menu not working properly, maybe move this one to the top of your plugin list.

Code:
Window_Options.prototype.addGeneralOptions = function() {
    // this.addCommand(TextManager.alwaysDash, "alwaysDash");
    this.addCommand(TextManager.commandRemember, "commandRemember");
    this.addCommand(TextManager.touchUI, "touchUI");
};
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,044
Reaction score
1,474
First Language
EN
Primarily Uses
RMMZ
In case you're interested, I have a plugin that does this by aliasing the window's addCommand method instead. It's Cae_MenuDisplayOpts: you can find the "Hide Options" parameter and add alwaysDash to the list (case-sensitive). :)

That said, I don't think the difference in approaches matters much here...if you only want this particular feature I'd recommend going with Shaz's suggestion~
 

PMantis13

Caipirinha lover.
Veteran
Joined
Aug 29, 2020
Messages
31
Reaction score
18
First Language
PT-BR
Primarily Uses
RMMZ
In case you're interested, I have a plugin that does this by aliasing the window's addCommand method instead. It's Cae_MenuDisplayOpts: you can find the "Hide Options" parameter and add alwaysDash to the list (case-sensitive). :)

That said, I don't think the difference in approaches matters much here...if you only want this particular feature I'd recommend going with Shaz's suggestion~
Makes sense, you could alias the addCommand function and just return if you receive the 'alwaysDash' command, then just call super for other commands.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,969
Reaction score
845
First Language
French
@Shaz
Sorry for my somewhat delayed answer (got quite heavily "side" tracked) but thank you, worked like a charm. :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I made some sideview closets for MV!
You can find them in my MV resource thread.
People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,507
Messages
1,014,275
Members
137,177
Latest member
tranphong
Top