| 赞 | 76 |
| VIP | |
| 好人卡 | |
| 积分 | 99 |
| 经验 | |
| 最后登录 | 2026-3-14 |
| 在线时间 | 580 小时 |
- 梦石
- 0
- 星屑
- 9862
- 在线时间
- 580 小时
- 注册时间
- 2017-9-28
- 回帖
- 203
|
发表于 2019-8-20 11:00:46
|
显示全部楼层
1. 默认不就是
2. 稍微修改一下默认脚本的 xy 类的东西就行了
你可以试试这个简单的脚本,插入【插件脚本】处- # coding: utf-8
- # @display 仿魔女之家菜单布局
- class Window_MenuCommand
- def initialize
- super 16, 320
- select_last
- end
- def make_command_list
- add_command(Vocab::item, :item, main_commands_enabled)
- add_command(Vocab::continue, :continue, continue_enabled)
- end
- def continue_enabled
- DataManager.save_file_exists?
- end
- def window_width
- 128
- end
- end
- class Window_MenuStatus
- def window_width
- Graphics.width - 160
- end
- def window_height
- 120
- end
- def draw_actor_simple_status(actor, x, y)
- draw_actor_name(actor, x, y + 4)
- draw_actor_level(actor, x, y + line_height * 1 + 16)
- draw_actor_hp(actor, x + 120, y + line_height * 1 + 16)
- end
- def draw_actor_level(actor, x, y)
- change_color(system_color)
- draw_text(x + 32, y, 32, line_height, Vocab::level_a)
- change_color(normal_color)
- draw_text(x, y, 24, line_height, actor.level, 2)
- end
- end
- class Scene_Menu
- def create_gold_window
- end
- def create_status_window
- @status_window = Window_MenuStatus.new(@command_window.width + 24, 292)
- end
- alias _create_command_window_continue create_command_window
- def create_command_window
- _create_command_window_continue
- @command_window.set_handler(:continue, method(:command_continue))
- end
- def command_continue
- SceneManager.call(Scene_Load)
- end
- end
- class Window_ItemHelp < Window_Help
- def initialize(line_number = 1)
- super_init = Window_Base.instance_method(:initialize).bind(self)
- super_init.call(8, 8, Graphics.width - 16, fitting_height(line_number))
- end
- end
- class Scene_Item
- def create_help_window
- @help_window = Window_ItemHelp.new
- @help_window.viewport = @viewport
- end
- def create_category_window
- end
- def create_item_window
- @item_window = Window_ItemList.new(8, 288, Graphics.width - 16, 120)
- @item_window.viewport = @viewport
- @item_window.help_window = @help_window
- @item_window.set_handler(:ok, method(:on_item_ok))
- @item_window.set_handler(:cancel, method(:return_scene))
- @item_window.select(0)
- @item_window.activate
- end
- end
复制代码 |
评分
-
查看全部评分
|