Is there a way to change the confirm key in Yanfly's System Options? At the moment, the menu/cancel key = confirm, and I'd like to make it so that the default confirm key = confirm. An additional cancel option would be a plus as well.
Yanfly System Options Confirm Key
RGSSx Script SupportWhat do you mean by "confirm key"?
Please, give an example of what you ment.
What is that "confirm key" on the keyboard and what would you like it to be? (I didn't quite understand the last post)
Please, give an example of what you ment.
What is that "confirm key" on the keyboard and what would you like it to be? (I didn't quite understand the last post)
By "confirm key," I mean the keyboard key clicked to save changed options. I believe the default is the "C button." In the Options Menu, the "B button"(default back button) saves changes. I simply want to make "C" save modified option data.
Well, first, find the Scene_System
In the create_command_window you will find something like @command_window.set_handler🙂cancel...)
Try changing :cancel to 😮k
That's it.
In the create_command_window you will find something like @command_window.set_handler🙂cancel...)
Try changing :cancel to 😮k
That's it.
Now neither key (C or B ) does anything. Hmm...
Well, then try
class Scene_System def update super return_scene if Input.trigger🙂C) endendPaste this below YEA-System Options
class Scene_System def update super return_scene if Input.trigger🙂C) endendPaste this below YEA-System Options
Should I place it directly underneath: "$imported["YEA-SystemOptions"] = true"?
EDIT: Placed your code into a separate script and got:
Oops.
Code:
class Scene_System < Scene_MenuBase # <== Replace with Base if it throws superclass mismatch def update super return_scene if Input.trigger?(:C) endend
That worked! Thanks a million, KockaAdmiralac_FINALLY!
Original thread: https://forums.rpgmakerweb.com/threads/yanfly-system-options-confirm-key.43763/