查看: 3349|回复: 2

[已经解决] 想要存档画面显示行走图和底部菜单

[复制链接]
梦石
0
星屑
313
在线时间
39 小时
注册时间
2019-8-14
回帖
9
发表于 2019-8-19 22:50:15 | 显示全部楼层 |阅读模式

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

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

×
我想要在存档画面显示行走图,请问这种该怎么做呀...
然后顺便我可以再问一个问题吗。。。就是我想做一种菜单在画面的底部,就是魔女之家里和狱都事变里的那种,请问该怎么做。。
梦石
0
星屑
9862
在线时间
580 小时
注册时间
2017-9-28
回帖
203
发表于 2019-8-20 11:00:46 | 显示全部楼层
1. 默认不就是
2. 稍微修改一下默认脚本的 xy 类的东西就行了
你可以试试这个简单的脚本,插入【插件脚本】处
  1. # coding: utf-8
  2. # @display 仿魔女之家菜单布局

  3. class Window_MenuCommand
  4.   def initialize
  5.     super 16, 320
  6.     select_last
  7.   end

  8.   def make_command_list
  9.     add_command(Vocab::item,     :item,     main_commands_enabled)
  10.     add_command(Vocab::continue, :continue, continue_enabled)
  11.   end

  12.   def continue_enabled
  13.     DataManager.save_file_exists?
  14.   end

  15.   def window_width
  16.     128
  17.   end
  18. end

  19. class Window_MenuStatus
  20.   def window_width
  21.     Graphics.width - 160
  22.   end

  23.   def window_height
  24.     120
  25.   end

  26.   def draw_actor_simple_status(actor, x, y)
  27.     draw_actor_name(actor, x, y + 4)
  28.     draw_actor_level(actor, x, y + line_height * 1 + 16)
  29.     draw_actor_hp(actor, x + 120, y + line_height * 1 + 16)
  30.   end

  31.   def draw_actor_level(actor, x, y)
  32.     change_color(system_color)
  33.     draw_text(x + 32, y, 32, line_height, Vocab::level_a)
  34.     change_color(normal_color)
  35.     draw_text(x, y, 24, line_height, actor.level, 2)
  36.   end
  37. end

  38. class Scene_Menu
  39.   def create_gold_window
  40.   end

  41.   def create_status_window
  42.     @status_window = Window_MenuStatus.new(@command_window.width + 24, 292)
  43.   end

  44.   alias _create_command_window_continue create_command_window
  45.   def create_command_window
  46.     _create_command_window_continue
  47.     @command_window.set_handler(:continue, method(:command_continue))
  48.   end

  49.   def command_continue
  50.     SceneManager.call(Scene_Load)
  51.   end
  52. end

  53. class Window_ItemHelp < Window_Help
  54.   def initialize(line_number = 1)
  55.     super_init = Window_Base.instance_method(:initialize).bind(self)
  56.     super_init.call(8, 8, Graphics.width - 16, fitting_height(line_number))
  57.   end
  58. end

  59. class Scene_Item
  60.   def create_help_window
  61.     @help_window = Window_ItemHelp.new
  62.     @help_window.viewport = @viewport
  63.   end

  64.   def create_category_window
  65.   end

  66.   def create_item_window
  67.     @item_window = Window_ItemList.new(8, 288, Graphics.width - 16, 120)
  68.     @item_window.viewport = @viewport
  69.     @item_window.help_window = @help_window
  70.     @item_window.set_handler(:ok,     method(:on_item_ok))
  71.     @item_window.set_handler(:cancel, method(:return_scene))
  72.     @item_window.select(0)
  73.     @item_window.activate
  74.   end
  75. end
复制代码

评分

参与人数 2星屑 +50 赞 +1 收起 理由
夢中人 + 1 塞糖
VIPArcher + 50 认可答案

查看全部评分

喵喵喵
回复 1 0

使用道具 举报

梦石
0
星屑
313
在线时间
39 小时
注册时间
2019-8-14
回帖
9
 楼主| 发表于 2019-8-20 21:56:01 | 显示全部楼层
hyrious 发表于 2019-8-20 11:00
1. 默认不就是
2. 稍微修改一下默认脚本的 xy 类的东西就行了
[fold=你可以试试这个简单的脚本,插入【插件 ...

非常感谢!已经解决了!
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部