Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module SaveConfirm
- Texts = {
- :save => "Confirm Save",
- :load => "Confirm Load",
- :delete => "Confirm Delete",
- }
- end
- class Scene_File < Scene_MenuBase
- alias fix_texts7762 confirm_choice
- def confirm_choice
- @confirm_window.ctext = SaveConfirm::Texts[@action_window.current_symbol]
- @confirm_window.refresh
- fix_texts7762
- end
- end
- class Window_Confirm < Window_Command
- attr_accessor :ctext
- def alignment
- return 1
- end
- def make_command_list
- txt = @ctext ? @ctext : ""
- add_command(txt, :on_confirm_ok)
- add_command("Nevermind", :on_confirm_cancel)
- end
- def draw_item(index)
- change_color(normal_color, command_enabled?(index))
- draw_text(item_rect_for_text(index), command_name(index), alignment)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement