查看: 4590|回复: 5

[已经解决] 关于存档的问题0A0……

[复制链接]
梦石
0
星屑
55
在线时间
48 小时
注册时间
2012-6-15
回帖
22
发表于 2013-5-4 07:31:53 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 273561079 于 2013-5-4 16:54 编辑

好吧我又来问了……|||存档界面能存档的时候人物显示的不是行走图而是头像吗0 0还要把地图名给显示上去的那种……
梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2013-5-4 08:37:01 | 显示全部楼层
本帖最后由 tseyik 于 2013-5-4 08:40 编辑

http://www4.plala.or.jp/findias/ ... ce_rgss3/index.html
メニュー>
乜ーブ画面改
2.jpg
  1. #==============================================================================
  2. # ■ VXAce-RGSS3-19 セーブ画面-改 [Ver.1.0.0]        by Claimh
  3. #------------------------------------------------------------------------------
  4. #  セーブ画面の表示を変更します。
  5. #  (注)導入前のセーブデータは使えません
  6. #==============================================================================

  7. #==============================================================================
  8. # ■ Game_Party
  9. #==============================================================================
  10. class Game_Party < Game_Unit
  11.   #--------------------------------------------------------------------------
  12.   # ● セーブファイル表示用の顔グラフィック画像情報
  13.   #--------------------------------------------------------------------------
  14.   def faces_for_savefile
  15.     battle_members.collect do |actor|
  16.       [actor.face_name, actor.face_index]
  17.     end
  18.   end
  19. end

  20. #==============================================================================
  21. # ■ DataManager
  22. #==============================================================================
  23. class << DataManager
  24.   #--------------------------------------------------------------------------
  25.   # ● セーブヘッダの作成
  26.   #--------------------------------------------------------------------------
  27.   alias make_save_header_faces make_save_header
  28.   def make_save_header
  29.     header = make_save_header_faces
  30.     header[:faces]    = $game_party.faces_for_savefile
  31.     header[:map_name] = $game_map.display_name
  32.     header
  33.   end
  34. end

  35. #==============================================================================
  36. # ■ Window_SaveFile
  37. #------------------------------------------------------------------------------
  38. #  セーブ画面およびロード画面で表示する、セーブファイルのウィンドウです。
  39. #==============================================================================
  40. class Window_SaveFile < Window_Base
  41.   #--------------------------------------------------------------------------
  42.   # ● リフレッシュ
  43.   #--------------------------------------------------------------------------
  44.   def refresh
  45.     contents.clear
  46.     change_color(normal_color)
  47.     name = Vocab::File + " #{@file_index + 1}"
  48.     draw_text(4, 0, 200, line_height, name)
  49.     @name_width = text_size(name).width
  50.     draw_party_faces(100, (contents_height - 96) / 2)
  51.     draw_map_name(0, contents_height - line_height)
  52.     draw_playtime(0, contents_height - line_height, contents.width - 4, 2)
  53.   end
  54.   #--------------------------------------------------------------------------
  55.   # ● パーティキャラの描画
  56.   #--------------------------------------------------------------------------
  57.   def draw_party_faces(x, y)
  58.     header = DataManager.load_header(@file_index)
  59.     return unless header && header[:faces]
  60.     header[:faces].each_with_index do |data, i|
  61.       draw_face(data[0], data[1], x + i * 96, y)
  62.     end
  63.   end
  64.   #--------------------------------------------------------------------------
  65.   # ● マップ名の描画
  66.   #--------------------------------------------------------------------------
  67.   def draw_map_name(x, y, align=0)
  68.     header = DataManager.load_header(@file_index)
  69.     return unless header && header[:map_name]
  70.     name = header[:map_name]
  71.     draw_text(x, y, contents.width, line_height, name, align)
  72.   end
  73. end
复制代码

乜ーブ画面改2
3.jpg
  1. #==============================================================================
  2. # ■ VXAce-RGSS3-20 セーブ画面-改2 [Ver.1.1.0]        by Claimh
  3. #------------------------------------------------------------------------------
  4. #  セーブ画面の表示を改変します。
  5. #  (注)導入前のセーブデータは使えません
  6. #------------------------------------------------------------------------------
  7. #・ミッション名の更新
  8. # $game_party.mission = "あらすじ"
  9. #==============================================================================

  10. #==============================================================================
  11. # ■ SaveActor  : セーブファイル用のダミーアクター
  12. #==============================================================================
  13. class SaveActor
  14.   #--------------------------------------------------------------------------
  15.   # ● 公開インスタンス変数
  16.   #--------------------------------------------------------------------------
  17.   attr_reader :name
  18.   attr_reader :level
  19.   attr_reader :hp
  20.   attr_reader :mp
  21.   attr_reader :mhp
  22.   attr_reader :mmp
  23.   attr_reader :face_name
  24.   attr_reader :face_index
  25.   #--------------------------------------------------------------------------
  26.   # ● オブジェクト初期化
  27.   #--------------------------------------------------------------------------
  28.   def initialize(actor)
  29.     @name = actor.name
  30.     [url=home.php?mod=space&uid=22147]@level[/url] = actor.level
  31.     @hp = actor.hp; @mhp = actor.mhp
  32.     @mp = actor.mp; @mmp = actor.mmp
  33.     @face_name = actor.face_name
  34.     @face_index = actor.face_index
  35.     [url=home.php?mod=space&uid=89503]@deAd[/url] = actor.dead?
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ● 戦闘不能判定
  39.   #--------------------------------------------------------------------------
  40.   def dead?
  41.     @dead
  42.   end
  43.   #--------------------------------------------------------------------------
  44.   # ● HP の割合を取得
  45.   #--------------------------------------------------------------------------
  46.   def hp_rate
  47.     @hp.to_f / @mhp
  48.   end
  49.   #--------------------------------------------------------------------------
  50.   # ● MP の割合を取得
  51.   #--------------------------------------------------------------------------
  52.   def mp_rate
  53.     @mmp > 0 ? @mp.to_f / @mmp : 0
  54.   end
  55. end

  56. #==============================================================================
  57. # ■ Game_Party
  58. #==============================================================================
  59. class Game_Party < Game_Unit
  60.   #--------------------------------------------------------------------------
  61.   # ● 公開インスタンス変数
  62.   #--------------------------------------------------------------------------
  63.   attr_accessor :mission                  # ミッション(ファイル画面表示用)
  64.   #--------------------------------------------------------------------------
  65.   # ● オブジェクト初期化
  66.   #--------------------------------------------------------------------------
  67.   alias initialize_save initialize
  68.   def initialize
  69.     initialize_save
  70.     @mission = ""
  71.   end
  72.   #--------------------------------------------------------------------------
  73.   # ● セーブファイル表示用の顔グラフィック画像情報
  74.   #--------------------------------------------------------------------------
  75.   def member_for_savefile
  76.     members.collect { |actor| SaveActor.new(actor) }
  77.   end
  78. end

  79. #==============================================================================
  80. # ■ DataManager
  81. #==============================================================================
  82. class << DataManager
  83.   #--------------------------------------------------------------------------
  84.   # ● セーブヘッダの作成
  85.   #--------------------------------------------------------------------------
  86.   alias make_save_header_faces make_save_header
  87.   def make_save_header
  88.     header = make_save_header_faces
  89.     header[:map_name] = $game_map.display_name
  90.     header[:actors]   = $game_party.member_for_savefile
  91.     header[:mission]  = $game_party.mission
  92.     header[:gold]     = $game_party.gold
  93.     header
  94.   end
  95. end


  96. #==============================================================================
  97. # ■ Window_SaveFile
  98. #==============================================================================
  99. class Window_SaveFile < Window_Base
  100.   #--------------------------------------------------------------------------
  101.   # ● オブジェクト初期化 [再定義]
  102.   #     index : セーブファイルのインデックス
  103.   #--------------------------------------------------------------------------
  104.   def initialize(height, index)
  105.     super(0, index * height, window_width, height)
  106.     @file_index = index
  107.     refresh
  108.     @selected = false
  109.   end
  110.   #--------------------------------------------------------------------------
  111.   # ● ウィンドウ幅
  112.   #--------------------------------------------------------------------------
  113.   def window_width
  114.     return 134
  115.   end
  116.   #--------------------------------------------------------------------------
  117.   # ● リフレッシュ [再定義]
  118.   #--------------------------------------------------------------------------
  119.   def refresh
  120.     contents.clear
  121.     change_color(normal_color)
  122.     name = Vocab::File + " #{@file_index + 1}"
  123.     draw_text(4, 0, 200, line_height, name)
  124.     @name_width = text_size(name).width
  125.   end
  126. end

  127. #==============================================================================
  128. # ■ Window_SaveFile
  129. #==============================================================================
  130. class Window_SaveInfo < Window_Selectable
  131.   #--------------------------------------------------------------------------
  132.   # ● オブジェクト初期化
  133.   #--------------------------------------------------------------------------
  134.   def initialize(x, h)
  135.     @actors = []
  136.     super(x, h, Graphics.width - x, Graphics.height - h)
  137.     self.file_index = index
  138.   end
  139.   #--------------------------------------------------------------------------
  140.   # ● 項目の高さを取得
  141.   #--------------------------------------------------------------------------
  142.   def item_height
  143.     (contents_height - (line_height * 2)) / row_num
  144.   end
  145.   #--------------------------------------------------------------------------
  146.   # ● ウィンドウ内容の高さを計算
  147.   #--------------------------------------------------------------------------
  148.   def contents_height
  149.     height - standard_padding * 2
  150.   end
  151.   #--------------------------------------------------------------------------
  152.   # ● 列数の取得
  153.   #--------------------------------------------------------------------------
  154.   def row_num
  155.     return 3
  156.   end
  157.   #--------------------------------------------------------------------------
  158.   # ● 桁数の取得
  159.   #--------------------------------------------------------------------------
  160.   def col_max
  161.     return 2
  162.   end
  163.   #--------------------------------------------------------------------------
  164.   # ● 下端パディングの更新
  165.   #--------------------------------------------------------------------------
  166.   def update_padding_bottom
  167.   end
  168.   #--------------------------------------------------------------------------
  169.   # ● 横に項目が並ぶときの空白の幅を取得
  170.   #--------------------------------------------------------------------------
  171.   def spacing
  172.     return 16
  173.   end
  174.   #--------------------------------------------------------------------------
  175.   # ● 項目数の取得
  176.   #--------------------------------------------------------------------------
  177.   def item_max
  178.     return [@actors.size, 6].min
  179.   end
  180.   #--------------------------------------------------------------------------
  181.   # ● データ参照
  182.   #--------------------------------------------------------------------------
  183.   def data(header, symbol, default)
  184.     (header.nil? or header[symbol].nil?) ? default : header[symbol]
  185.   end
  186.   #--------------------------------------------------------------------------
  187.   # ● ファイル変更
  188.   #--------------------------------------------------------------------------
  189.   def file_index=(index)
  190.     return if @file_index == index
  191.     @file_index = index
  192.     header = DataManager.load_header(@file_index)
  193.     @actors   = data(header, :actors, [])
  194.     @map_name = data(header, :map_name, "")
  195.     @playtime = data(header, :playtime_s, "00:00:00")
  196.     @mission  = data(header, :mission, "")
  197.     [url=home.php?mod=space&uid=236945]@gold[/url]     = data(header, :gold, 0)
  198.     create_contents
  199.     refresh
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # ● リフレッシュ
  203.   #--------------------------------------------------------------------------
  204.   def refresh
  205.     super
  206.     if @actors.empty? or @actors.nil?
  207.       draw_text(0, 0, contents_width, contents_height, "- empty -", 1)
  208.       return
  209.     end
  210.     draw_text(0, 0, contents_width, line_height, @map_name)
  211.     draw_playtime(contents_width - 128, 0, 128)
  212.     draw_text_ex(0, line_height, @mission)
  213.     draw_gold(contents_width - 128, line_height, 128)
  214.   end
  215.   #--------------------------------------------------------------------------
  216.   # ● 項目の描画
  217.   #--------------------------------------------------------------------------
  218.   def draw_item(index)
  219.     return if @actors.empty? or @actors.nil?
  220.     actor = @actors[index]
  221.     rect = item_rect(index)
  222.     rect.y += line_height * 2
  223.     draw_actor_face(actor, rect.x, rect.y, !actor.dead?)
  224.     draw_actor_name(actor,  rect.x + 100, rect.y+line_height*0)
  225.     draw_actor_level(actor, rect.x + 100, rect.y+line_height*1)
  226.     w = [124, rect.width - 100].min
  227.     draw_actor_hp(actor,   rect.x + 100, rect.y+line_height*2, w)
  228.     draw_actor_mp(actor,   rect.x + 100, rect.y+line_height*3, w)
  229.   end
  230.   #--------------------------------------------------------------------------
  231.   # ● プレイ時間の描画
  232.   #--------------------------------------------------------------------------
  233.   def draw_playtime(x, y, width)
  234.     change_color(system_color)
  235.     contents.font.size -= 8
  236.     draw_text(x, y+4, width, line_height, "TIME")
  237.     contents.font.size += 8
  238.     change_color(normal_color)
  239.     draw_text(x, y, width, line_height, @playtime, 2)
  240.   end
  241.   #--------------------------------------------------------------------------
  242.   # ● 所持金の描画
  243.   #--------------------------------------------------------------------------
  244.   def draw_gold(x, y, width)
  245.     draw_currency_value(@gold, Vocab::currency_unit, x, y, width)
  246.   end
  247.   #--------------------------------------------------------------------------
  248.   # ● 水平線の描画
  249.   #--------------------------------------------------------------------------
  250.   def draw_horz_line(y)
  251.     line_y = y + line_height / 2 - 1
  252.     contents.fill_rect(0, line_y, contents_width, 2, line_color)
  253.   end
  254.   #--------------------------------------------------------------------------
  255.   # ● 水平線の色を取得
  256.   #--------------------------------------------------------------------------
  257.   def line_color
  258.     color = normal_color
  259.     color.alpha = 48
  260.     color
  261.   end
  262. end

  263. #==============================================================================
  264. # ■ Scene_File
  265. #==============================================================================
  266. class Scene_File < Scene_MenuBase
  267.   #--------------------------------------------------------------------------
  268.   # ● セーブファイルウィンドウの作成
  269.   #--------------------------------------------------------------------------
  270.   alias create_savefile_windows_save create_savefile_windows
  271.   def create_savefile_windows
  272.     create_savefile_windows_save
  273.     @info_window = Window_SaveInfo.new(@savefile_windows[0].window_width, @help_window.height)
  274.   end
  275.   #--------------------------------------------------------------------------
  276.   # ● 選択状態の初期化
  277.   #--------------------------------------------------------------------------
  278.   alias init_selection_save init_selection
  279.   def init_selection
  280.     init_selection_save
  281.     @info_window.file_index = @index
  282.   end
  283.   #--------------------------------------------------------------------------
  284.   # ● 画面内に表示するセーブファイル数を取得
  285.   #--------------------------------------------------------------------------
  286.   def visible_max
  287.     return @savefile_viewport.rect.height / @help_window.height
  288.   end
  289.   #--------------------------------------------------------------------------
  290.   # ● カーソルの更新
  291.   #--------------------------------------------------------------------------
  292.   alias update_cursor_save update_cursor
  293.   def update_cursor
  294.     update_cursor_save
  295.     @info_window.file_index = @index
  296.   end
  297. end
复制代码

评分

参与人数 2星屑 +130 收起 理由
Sion + 100 认可答案
j433463 + 30

查看全部评分

回复

使用道具 举报

梦石
0
星屑
50
在线时间
687 小时
注册时间
2012-10-29
回帖
1526
发表于 2013-5-4 09:26:20 | 显示全部楼层
本帖最后由 j433463 于 2013-5-4 09:39 编辑

默认游戏分辨率下的存档介面,每一个存档条内高度并不足以放入一张完整脸图,
大概被挡掉三分之一,最多只能这样子:

s1.PNG

脸图都放不下了,地图名自然受到限制,我只能想到这样的摆放位置,
大约可以容许八个中文字吧,超过就会盖到脸图了,这样也能接受吗?

一个存档条含框线大约是 92 高度,而一张脸图 96 高度,已经有差了,
再扣去框线和内边距,只剩下大约 68 高度而已,实在放不下一张脸图,
如果分辨率大一些或者可以。

楼上的也是一样情形,不过巧妙的调整了脸图,看起来顺眼多了。

s1.PNG

脸图往上提,看起来确实好一点。

点评

是可以这样,那和改分辨率也一样能解决,或像楼上那样改存档画面,方式很多,不过已经不在改默认脚本范围了。  发表于 2013-5-4 12:21
话说这个问题直接把一页显示的存档数量改称3个不就解决了……  发表于 2013-5-4 11:35

评分

参与人数 1星屑 +100 收起 理由
Sion + 100 认可答案

查看全部评分

修改劇本中,仔細審查原來的劇情大綱,覺得有點不太滿意,嘗試編寫不同主角不同主線的劇情,希望能寫得出來。
回复

使用道具 举报

梦石
0
星屑
55
在线时间
48 小时
注册时间
2012-6-15
回帖
22
 楼主| 发表于 2013-5-4 16:54:02 | 显示全部楼层
谢谢2位大神的说0▽0
回复

使用道具 举报

梦石
0
星屑
805
在线时间
72 小时
注册时间
2018-11-16
回帖
38
发表于 2018-11-18 15:24:54 | 显示全部楼层
tseyik 发表于 2013-5-4 08:37
http://www4.plala.or.jp/findias/codecrush/material/vxace_rgss3/index.html
メニュー>
乜ーブ画面改

第一个怎么用啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部