RMMZ Remove "Always Dash" from the Options menu

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,969
Reaction score
844
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,034
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,043
Reaction score
1,472
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
844
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

Finished that egg-sitting mini-game I mentioned here a couple weeks back. Now to fix the weather system so it doesn't rain indoors while you're playing it. >.> A simple fix in itself; leave it to me to take it as an excuse to completely revamp the time/weather/lighting system from scratch.
I'm really tempting to pre order cyberpunk 2077... should I do it or not :/ I really want to play the game but don't want to take a big hit to my saving because of it
So I need to come up with quite a few action sequences.
Was stressing about this plugin earlier, but pretty happy with how its looking now! Purple makes it pop more too!! :)

Forum statistics

Threads
105,485
Messages
1,014,082
Members
137,133
Latest member
Stuart18
Top