未命名.png (145.6 KB, 下载次数: 27)
class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class($game_party.members[0], 470, 0) draw_currency_value($game_party.gold, 0, 0, 200) end end
未命名1.png (153.02 KB, 下载次数: 27)
class Game_System attr_accessor :save_gold attr_accessor :save_leader end class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class(@game_system.save_leader, 470, 0) draw_currency_value(@game_system.save_gold, 0, 0, 200) end end class Scene_File < Scene_Base def do_save $game_system.save_gold = $game_party.gold $game_system.save_leader = $game_party.members[0] file = File.open(@savefile_windows[@index].filename, "wb") write_save_data(file) file.close return_scene end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |