RMMZ Remove "Always Dash" from the Options menu

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,958
Reaction score
828
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
39,971
Reaction score
13,604
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
1,962
Reaction score
1,408
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,958
Reaction score
828
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


Finally! I've been puzzling over why it wasn't working for two days now. Turns out all of my calculations were correct, I just forgot to give some events hitboxes. :kaoswt: Now my randomly generated maps check for collision errors, and move stuff around in real time if they finds any. :LZSexcite:
Ami
--- OP Candy ---

Kids: Trick Or Treat!
Hero: Alright,here's the Candies (Give A Bunch Of Candy).
Kids: Thank you,Mister! (Running)
Hero: How cute they are…
F.Archer: Did you give them a OP Candy,accidently?
Hero: Huh?
Halloween, a day where kids are encouraged to take candy from strangers.
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!
Took a break from spriting dinosaurs to carve a dinosaur pumpkin.

Forum statistics

Threads
104,673
Messages
1,007,996
Members
136,163
Latest member
movingsolutionsmovers
Top