查看: 4791|回复: 4

[已经解决] 【穷比1V悬赏】存读档界面修改

[复制链接]

Adam

梦石
0
星屑
1118
在线时间
841 小时
注册时间
2010-8-24
回帖
2460
发表于 2014-3-22 18:38:01 | 显示全部楼层 |阅读模式
悬赏1星屑已解决
本帖最后由 李光兆 于 2014-3-25 12:24 编辑

效果是这样子哒。
没错就是MAD FATHER啦。
修改一下下应该只要……1V吧……
我是穷逼放过我。

请注明脚本来源是喵呜酱再使用唷
QQ图片20140322183628.jpg

最佳答案

查看完整内容

【效果图】 【素材图片】 FileBackground Load Save 【脚本】 [pre lang="ruby" line="1"]=begin =============================================================================== 狂父存档界面 (Author:喵呜喵5) =============================================================================== 使用说明: 仿恐解游戏狂父的界面制作的存/读档界面 请将三个图像文件:Save、FileBackgrou ...
嘛,摸了。

梦石
1
星屑
23371
在线时间
9572 小时
注册时间
2012-6-19
回帖
7021

开拓者短篇九导演组冠军

发表于 2014-3-22 18:38:02 | 显示全部楼层
本帖最后由 喵呜喵5 于 2014-9-7 14:43 编辑

【效果图】
未命名.PNG

【素材图片】
FileBackground.png
FileBackground
Load.png
Load
Save.png
Save

【脚本】
  1. =begin
  2. ===============================================================================
  3.   
  4.   狂父存档界面 (Author:喵呜喵5)
  5.   
  6. ===============================================================================

  7.   使用说明:   
  8.    
  9.   仿恐解游戏狂父的界面制作的存/读档界面
  10.   
  11.   请将三个图像文件:Save、FileBackground、Load 放到Graphics\System目录下
  12.   
  13. =end
  14. module MadFather
  15. #==============================================================================
  16. #  设定部分
  17. #==============================================================================

  18.   NAME = "DATA"

  19.   #存档文件名

  20.   EMPTY = "  NO DATA"

  21.   #存档不存在时的提示

  22.   SMALL = 2

  23.   #地图名/存档不存在提示的缩放大小

  24.   WIDTH = 212

  25.   #存档界面宽度

  26.   HEIGHT = 61

  27.   #存档界面高度

  28.   X0 = 166

  29.   #存档界面X坐标

  30.   Y0 = 55

  31.   #存档界面Y坐标

  32.   X1 = 6

  33.   #文件名X坐标

  34.   Y1 = 6

  35.   #文件名Y坐标

  36.   X2 = 100

  37.   #游戏时间X坐标(Y坐标同文件名Y坐标)

  38.   X3 = 8

  39.   #提示文字X坐标

  40.   Y3 = 35

  41.   #提示文字Y坐标

  42.   LOADX = 165

  43.   #读档符号X坐标

  44.   LOADY = 20

  45.   #读档符号Y坐标

  46.   SAVEX = 164

  47.   #存档符号X坐标

  48.   SAVEY = 20

  49.   #存档符号Y坐标


  50. #==============================================================================
  51. #  设定结束
  52. #==============================================================================
  53. end
  54. class << DataManager
  55.   alias m5_make_save_header make_save_header
  56.   def make_save_header
  57.     header = m5_make_save_header
  58.     header[:locate] = $game_map.display_name   
  59.     header
  60.   end
  61. end
  62. class Window_SaveFile
  63.   def initialize(height, index)
  64.     super(MadFather::X0, MadFather::HEIGHT * index, MadFather::WIDTH, MadFather::HEIGHT)
  65.     @file_index = index
  66.     refresh
  67.     @selected = false
  68.     self.opacity = 0
  69.   end
  70.   def standard_padding
  71.     return 0
  72.   end
  73.   def refresh
  74.     contents.clear
  75.     change_color(normal_color)
  76.     name = MadFather::NAME + "#{@file_index + 1}"
  77.     draw_text(MadFather::X1, MadFather::Y1, contents.width, line_height, name)   
  78.     draw_playtime(MadFather::X2, 6, contents.width)
  79.     draw_locate(MadFather::X3, MadFather::Y3, contents.width)
  80.   end
  81.   def draw_playtime(x, y, width)
  82.     header = DataManager.load_header(@file_index)
  83.     if header
  84.       draw_text(x, y, width, line_height, header[:playtime_s])
  85.     else
  86.       draw_text(x, y, width, line_height,"-:--:--")
  87.     end
  88.   end
  89.   def draw_locate(x, y, width)   
  90.     contents.font.size -= MadFather::SMALL
  91.     header = DataManager.load_header(@file_index)
  92.     if header and header[:locate]
  93.       draw_text(x, y, width, line_height, header[:locate])
  94.     else
  95.       draw_text(x, y, width, line_height, MadFather::EMPTY)
  96.     end
  97.     contents.font.size += MadFather::SMALL
  98.   end
  99.   def update_cursor
  100.     if @selected      
  101.       cursor_rect.set(0, 0, contents.width, contents.height)
  102.     else
  103.       cursor_rect.empty
  104.     end
  105.   end
  106. end
  107. class Scene_File
  108.   def create_background
  109.     super
  110.     @background2 = Sprite.new
  111.     @background2.bitmap = Cache.system("FileBackground")
  112.     @background2.z = @background_sprite.z
  113.     creat_scene_hint
  114.   end
  115.   def creat_scene_hint
  116.     @scene_hint = Sprite.new
  117.     @scene_hint.bitmap = Cache.system("Save")
  118.     @scene_hint.z = @background2.z
  119.     @scene_hint.x,@scene_hint.y = MadFather::SAVEX,MadFather::SAVEY
  120.   end
  121.   def dispose_background
  122.     super
  123.     @background2.bitmap.dispose
  124.     @background2.dispose
  125.     @scene_hint.bitmap.dispose
  126.     @scene_hint.dispose
  127.   end
  128.   alias m5_create_help_window create_help_window
  129.   def create_help_window
  130.     m5_create_help_window
  131.     @help_window.visible = false
  132.   end
  133.   def create_savefile_viewport
  134.     @savefile_viewport = Viewport.new
  135.     @savefile_viewport.rect.y = MadFather::Y0
  136.     @savefile_viewport.rect.height = MadFather::HEIGHT * visible_max
  137.   end
  138.   def visible_max
  139.     return 5
  140.   end
  141. end
  142. class Scene_Load
  143.   def creat_scene_hint
  144.     @scene_hint = Sprite.new
  145.     @scene_hint.bitmap = Cache.system("Load")
  146.     @scene_hint.z = @background2.z
  147.     @scene_hint.x,@scene_hint.y = MadFather::LOADX,MadFather::LOADY
  148.   end
  149. end
复制代码

评分

参与人数 1星屑 +12 收起 理由
taroxd + 12 我很赞同

查看全部评分

回复

使用道具 举报

梦石
1
星屑
23371
在线时间
9572 小时
注册时间
2012-6-19
回帖
7021

开拓者短篇九导演组冠军

发表于 2014-3-22 18:53:35 | 显示全部楼层
接单
不过英文字体未必是原版的字体……
回复

使用道具 举报

Adam

梦石
0
星屑
1118
在线时间
841 小时
注册时间
2010-8-24
回帖
2460
 楼主| 发表于 2014-3-22 20:32:04 | 显示全部楼层
喵呜喵5 发表于 2014-3-22 18:53
接单
不过英文字体未必是原版的字体……


no problam
喵呜最触了
嘛,摸了。
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部