I didn't found a cleaner way. My workaround:
On my script, comment/remove the
MenuHandlers.add(:pause_menu, :controls, {
"name" => _INTL("Controls"),
"order" => 75,
"effect" => proc { |menu|
pbPlayDecisionSE
open_set_controls_ui(menu)
next false
}
})
On UI_Options script section:
Change 'return @options.length + 1' to 'return @options.length + 2'.
Change 'optionname = (index == @options.length) ? _INTL("Close") : @options[index].name' to
optionname = case index
when @options.length+1; _INTL("Close")
when @options.length; _INTL("Controls")
else; @options[index].name
end
Change 'return if index == @options.length' to 'return if index >= @options.length'.
Change 'description = _INTL("Close the screen.")' to
if @sprites["option"].index==@options.length
description = _INTL("Set the Controls.")
else
description = _INTL("Close the screen.")
end
Change 'break if @sprites["option"].index == @options.length' to
break if @sprites["option"].index == @options.length+1
open_set_controls_ui if @sprites["option"].index == @options.length
.