设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3852|回复: 4
打印 上一主题 下一主题

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

[复制链接]

Lv2.观梦者

Adam

梦石
0
星屑
688
在线时间
841 小时
注册时间
2010-8-24
帖子
2595
跳转到指定楼层
1
发表于 2014-3-22 18:38:01 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
1星屑
本帖最后由 李光兆 于 2014-3-25 12:24 编辑

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

请注明脚本来源是喵呜酱再使用唷

QQ图片20140322183628.jpg (44.6 KB, 下载次数: 27)

QQ图片20140322183628.jpg

最佳答案

查看完整内容

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

Lv5.捕梦者 (暗夜天使)

只有笨蛋才会看到

梦石
1
星屑
21035
在线时间
9339 小时
注册时间
2012-6-19
帖子
7107

开拓者短篇九导演组冠军

2
发表于 2014-3-22 18:38:02 | 只看该作者
本帖最后由 喵呜喵5 于 2014-9-7 14:43 编辑

【效果图】


【素材图片】

FileBackground

Load

Save

【脚本】
RUBY 代码复制
  1. =begin
  2. ===============================================================================
  3.  
  4.   狂父存档界面 (Author:喵呜喵5)
  5.  
  6. ===============================================================================
  7.  
  8.   使用说明:   
  9.     
  10.   仿恐解游戏狂父的界面制作的存/读档界面
  11.  
  12.   请将三个图像文件:Save、FileBackground、Load 放到Graphics\System目录下
  13.  
  14. =end
  15. module MadFather
  16. #==============================================================================
  17. #  设定部分
  18. #==============================================================================
  19.  
  20.   NAME = "DATA"
  21.  
  22.   #存档文件名
  23.  
  24.   EMPTY = "  NO DATA"
  25.  
  26.   #存档不存在时的提示
  27.  
  28.   SMALL = 2
  29.  
  30.   #地图名/存档不存在提示的缩放大小
  31.  
  32.   WIDTH = 212
  33.  
  34.   #存档界面宽度
  35.  
  36.   HEIGHT = 61
  37.  
  38.   #存档界面高度
  39.  
  40.   X0 = 166
  41.  
  42.   #存档界面X坐标
  43.  
  44.   Y0 = 55
  45.  
  46.   #存档界面Y坐标
  47.  
  48.   X1 = 6
  49.  
  50.   #文件名X坐标
  51.  
  52.   Y1 = 6
  53.  
  54.   #文件名Y坐标
  55.  
  56.   X2 = 100
  57.  
  58.   #游戏时间X坐标(Y坐标同文件名Y坐标)
  59.  
  60.   X3 = 8
  61.  
  62.   #提示文字X坐标
  63.  
  64.   Y3 = 35
  65.  
  66.   #提示文字Y坐标
  67.  
  68.   LOADX = 165
  69.  
  70.   #读档符号X坐标
  71.  
  72.   LOADY = 20
  73.  
  74.   #读档符号Y坐标
  75.  
  76.   SAVEX = 164
  77.  
  78.   #存档符号X坐标
  79.  
  80.   SAVEY = 20
  81.  
  82.   #存档符号Y坐标
  83.  
  84.  
  85. #==============================================================================
  86. #  设定结束
  87. #==============================================================================
  88. end
  89. class << DataManager
  90.   alias m5_make_save_header make_save_header
  91.   def make_save_header
  92.     header = m5_make_save_header
  93.     header[:locate] = $game_map.display_name   
  94.     header
  95.   end
  96. end
  97. class Window_SaveFile
  98.   def initialize(height, index)
  99.     super(MadFather::X0, MadFather::HEIGHT * index, MadFather::WIDTH, MadFather::HEIGHT)
  100.     @file_index = index
  101.     refresh
  102.     @selected = false
  103.     self.opacity = 0
  104.   end
  105.   def standard_padding
  106.     return 0
  107.   end
  108.   def refresh
  109.     contents.clear
  110.     change_color(normal_color)
  111.     name = MadFather::NAME + "#{@file_index + 1}"
  112.     draw_text(MadFather::X1, MadFather::Y1, contents.width, line_height, name)   
  113.     draw_playtime(MadFather::X2, 6, contents.width)
  114.     draw_locate(MadFather::X3, MadFather::Y3, contents.width)
  115.   end
  116.   def draw_playtime(x, y, width)
  117.     header = DataManager.load_header(@file_index)
  118.     if header
  119.       draw_text(x, y, width, line_height, header[:playtime_s])
  120.     else
  121.       draw_text(x, y, width, line_height,"-:--:--")
  122.     end
  123.   end
  124.   def draw_locate(x, y, width)   
  125.     contents.font.size -= MadFather::SMALL
  126.     header = DataManager.load_header(@file_index)
  127.     if header and header[:locate]
  128.       draw_text(x, y, width, line_height, header[:locate])
  129.     else
  130.       draw_text(x, y, width, line_height, MadFather::EMPTY)
  131.     end
  132.     contents.font.size += MadFather::SMALL
  133.   end
  134.   def update_cursor
  135.     if @selected      
  136.       cursor_rect.set(0, 0, contents.width, contents.height)
  137.     else
  138.       cursor_rect.empty
  139.     end
  140.   end
  141. end
  142. class Scene_File
  143.   def create_background
  144.     super
  145.     @background2 = Sprite.new
  146.     @background2.bitmap = Cache.system("FileBackground")
  147.     @background2.z = @background_sprite.z
  148.     creat_scene_hint
  149.   end
  150.   def creat_scene_hint
  151.     @scene_hint = Sprite.new
  152.     @scene_hint.bitmap = Cache.system("Save")
  153.     @scene_hint.z = @background2.z
  154.     @scene_hint.x,@scene_hint.y = MadFather::SAVEX,MadFather::SAVEY
  155.   end
  156.   def dispose_background
  157.     super
  158.     @background2.bitmap.dispose
  159.     @background2.dispose
  160.     @scene_hint.bitmap.dispose
  161.     @scene_hint.dispose
  162.   end
  163.   alias m5_create_help_window create_help_window
  164.   def create_help_window
  165.     m5_create_help_window
  166.     @help_window.visible = false
  167.   end
  168.   def create_savefile_viewport
  169.     @savefile_viewport = Viewport.new
  170.     @savefile_viewport.rect.y = MadFather::Y0
  171.     @savefile_viewport.rect.height = MadFather::HEIGHT * visible_max
  172.   end
  173.   def visible_max
  174.     return 5
  175.   end
  176. end
  177. class Scene_Load
  178.   def creat_scene_hint
  179.     @scene_hint = Sprite.new
  180.     @scene_hint.bitmap = Cache.system("Load")
  181.     @scene_hint.z = @background2.z
  182.     @scene_hint.x,@scene_hint.y = MadFather::LOADX,MadFather::LOADY
  183.   end
  184. end

评分

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

查看全部评分

回复

使用道具 举报

Lv5.捕梦者 (暗夜天使)

只有笨蛋才会看到

梦石
1
星屑
21035
在线时间
9339 小时
注册时间
2012-6-19
帖子
7107

开拓者短篇九导演组冠军

3
发表于 2014-3-22 18:53:35 | 只看该作者
接单
不过英文字体未必是原版的字体……
回复

使用道具 举报

Lv2.观梦者

Adam

梦石
0
星屑
688
在线时间
841 小时
注册时间
2010-8-24
帖子
2595
4
 楼主| 发表于 2014-3-22 20:32:04 | 只看该作者
喵呜喵5 发表于 2014-3-22 18:53
接单
不过英文字体未必是原版的字体……


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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-15 08:56

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表