查看: 3420|回复: 4

[已经解决] 我想删除菜单里面一些不要的地方(例如贵重物品,Lv,金...

[复制链接]
梦石
0
星屑
114
在线时间
31 小时
注册时间
2013-7-7
回帖
33
发表于 2013-7-11 01:01:53 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 Mr.喵 于 2013-7-11 14:47 编辑

如图,我不想要红线划的地方,在脚本里面哪里删掉啊?我找不到。求解答
initpintu_副本.jpg
梦石
0
星屑
663
在线时间
750 小时
注册时间
2012-11-10
回帖
903
发表于 2013-7-11 01:20:05 | 显示全部楼层
这里是VX区..

点评

那個.....這裡是VA區  发表于 2013-7-11 12:55
回复

使用道具 举报

梦石
0
星屑
114
在线时间
31 小时
注册时间
2013-7-7
回帖
33
 楼主| 发表于 2013-7-11 12:23:14 | 显示全部楼层
啊= =发错地方。。。。应该都差不多吧。。好吧。。求删
回复

使用道具 举报

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

开拓者短篇九导演组冠军

发表于 2013-7-11 14:21:59 | 显示全部楼层


  1. =begin

  2. ===============================================================================
  3.   默认菜单改 By喵呜喵5
  4. ===============================================================================

  5. 【说明】

  6. 修改成了解谜游戏常见的菜单,大量修改了默认方法,所以不出意外的话会和其他菜单美化脚本
  7. 发生冲突,咱不负责修正,嗯哼!
  8. 另外,只是删除了默认的选项而已,并没有针对菜单做太多的美化……
  9. “这些是美工的事情啦!不懂脚本的美工弱爆了啦!”
  10. ……差不多是这样的感觉

  11. =end

  12. #==============================================================================
  13. #  脚本部分
  14. #==============================================================================

  15. class Window_MenuCommand < Window_Command
  16.   def make_command_list
  17.     add_main_commands
  18.     add_game_end_command
  19.   end
  20.   def add_main_commands
  21.     add_command(Vocab::item,   :item,   main_commands_enabled)
  22.     add_command(Vocab::status, :status, main_commands_enabled)
  23.   end
  24. end
  25. class Scene_Menu < Scene_MenuBase
  26.   def start
  27.     super
  28.     create_command_window
  29.     create_status_window
  30.   end
  31. end
  32. class Window_ItemCategory < Window_HorzCommand
  33.   attr_reader   :item_window
  34.   def initialize
  35.     super(1000, 0)
  36.   end

  37.   def window_width
  38.     Graphics.width
  39.   end
  40.   def col_max
  41.     return 1
  42.   end
  43.   def update
  44.     super
  45.     @item_window.category = current_symbol if @item_window
  46.   end
  47.   def make_command_list
  48.     add_command(Vocab::item,     :item)
  49.   end
  50.   def item_window=(item_window)
  51.     @item_window = item_window
  52.     update
  53.   end
  54. end
  55. class Scene_Item < Scene_ItemBase
  56.   def start
  57.     super
  58.     create_help_window
  59.     create_category_window
  60.     create_item_window
  61.     on_category_ok
  62.   end
  63.   def create_item_window
  64.     wy = @category_window.y
  65.     wh = Graphics.height - wy
  66.     @item_window = Window_ItemList.new(0, wy, Graphics.width, wh)
  67.     @item_window.viewport = @viewport
  68.     @item_window.help_window = @help_window
  69.     @item_window.set_handler(:ok,     method(:on_item_ok))
  70.     @item_window.set_handler(:cancel, method(:on_item_cancel))
  71.     @category_window.item_window = @item_window
  72.   end
  73.   def on_item_cancel
  74.     return_scene
  75.   end
  76.   def create_category_window
  77.     @category_window = Window_ItemCategory.new
  78.     @category_window.viewport = @viewport
  79.     @category_window.help_window = @help_window
  80.     @category_window.y = @help_window.height
  81.     @category_window.set_handler(:ok,     method(:on_item_ok))
  82.     @category_window.set_handler(:cancel, method(:return_scene))
  83.   end
  84. end
  85. class Window_Base < Window
  86.   def draw_actor_simple_status(actor, x, y)
  87.     draw_actor_name(actor, x, y)
  88.   end
  89. end
  90. class Window_Status < Window_Selectable
  91.   def refresh
  92.     contents.clear
  93.     draw_block1   (line_height * 0)
  94.     draw_horz_line(line_height * 1)
  95.     draw_block2   (line_height * 2)
  96.     draw_horz_line(line_height * 6)
  97.     draw_block4   (line_height * 7)
  98.   end
  99.   def draw_block2(y)
  100.     draw_actor_face(@actor, 8, y)
  101.   end
  102. end
复制代码


点评

老夫这种渣渣也来做个补充,删掉21-30行可以恢复原始的菜单列表,但是贵重物品等等的仍然能够消失掉,这样额外添加菜单的同学就可以去掉不需要的  发表于 2013-7-14 16:14
意思是要我新建一个脚本吗?我试试看  发表于 2013-7-11 14:38

评分

参与人数 1星屑 +100 收起 理由
Sion + 100 头像帝 - -b

查看全部评分

回复

使用道具 举报

梦石
0
星屑
114
在线时间
31 小时
注册时间
2013-7-7
回帖
33
 楼主| 发表于 2013-7-11 14:40:51 | 显示全部楼层
非常感谢,我会用了

点评

感谢,我会慢慢研究的了!  发表于 2013-7-11 16:10
也不是说一定要新建一个脚本,只是要改的东西很多很杂,我懒得一个一个指出来了,所以直接帮你修改好了而已……  发表于 2013-7-11 16:03
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部