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

Tomorrow is Thanksgiving, and I'm so excited! I've been exploring MZ a little, and I just downloaded Effekseer to make new animations. I have experience in 3D animation software, so I'll be pretty good at the whole "particle" thing. My first game on MZ will be Fantasy Force--starring a griffin, a dragon, and a pegasus fighting against the Dragon of Darkness.
currently listening to Driftwood Gaming streaming some MZ dev time and it's delightful! had no idea they were this entertaining, love it
In quarantine, will be tested soon. This year is really something... special.
I was at another orientation yesterday and I realized I'll be working with an old friend! We met at the local water park a few years back and it was so nice to see her again! We had a chat, and next week when I officially start, I'll see if maybe we can trade our Zoom IDs so we can talk!
I made some sideview closets for MV!
You can find them in my MV resource thread.

Forum statistics

Threads
105,512
Messages
1,014,339
Members
137,198
Latest member
mmc1980
Top