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

Project1

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

[已经过期] 关于菜单界面的问题?

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
209 小时
注册时间
2012-8-26
帖子
80
跳转到指定楼层
1
发表于 2014-5-2 22:50:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
小弟不才...混了那么久才找到一个美工...结果在做了一点剧情后发现...自己的菜单还没换...刚开始也没怎样,直到看到各位大触解密界面的精致程度,我就泪奔了,由于是解密风格,所以之前的那些rpg风格的动态菜单之类的完全不合适...希望有人能帮忙看看,解密菜单如何制作出精致效果...谢谢了!

Lv2.观梦者 (暗夜天使)

卑微的梦

梦石
0
星屑
523
在线时间
820 小时
注册时间
2013-2-23
帖子
1185

短篇九勇士组季军

2
发表于 2014-5-2 22:51:09 手机端发表。 | 只看该作者
你就是耳朵吧!o_O
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
209 小时
注册时间
2012-8-26
帖子
80
3
 楼主| 发表于 2014-5-3 08:50:19 | 只看该作者
子弹君 发表于 2014-5-2 22:51
你就是耳朵吧!o_O

噗!暴露了(我是伸手党,别鄙视我...555)...
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
35 小时
注册时间
2014-2-10
帖子
138
4
发表于 2014-5-3 11:04:51 | 只看该作者

RUBY 代码复制
  1. #==============================================================================
  2. #
  3. # ▼ Yanfly Engine Ace - Ace Menu Engine v1.07
  4. # -- Last Updated: 2012.01.03
  5. # -- Level: Normal, Hard
  6. # -- Requires: n/a
  7. #
  8. #==============================================================================
  9.  
  10. $imported = {} if $imported.nil?
  11. $imported["YEA-AceMenuEngine"] = true
  12.  
  13. #==============================================================================
  14. # ▼ Updates
  15. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  16. # 2012.01.03 - Compatibility Update: Ace Item Menu
  17. # 2012.01.01 - Compatibility Update: Kread-EX's Synthesis
  18. #            - Compatibility Update: Kread-EX's Grathnode Install
  19. #            - Compatibility Update: Yami's Slot Battle
  20. # 2011.12.23 - Script efficiency optimized.
  21. # 2011.12.19 - Compatibility Update: Class System
  22. # 2011.12.15 - Updated for better menu MP/TP gauge management.
  23. # 2011.12.13 - Compatibility Update: Ace Equip Engine
  24. # 2011.12.07 - Update to allow for switches to also hide custom commands.
  25. # 2011.12.06 - Started Script and Finished.
  26. #
  27. #==============================================================================
  28. # ▼ Introduction
  29. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  30. # The menu system in RPG Maker VX Ace is great. However, it lacks the user
  31. # customization that RPG Maker 2003 allowed. With this script, you can add,
  32. # remove, and rearrange menu commands as you see fit. In addition to that, you
  33. # can add in menu commands that lead to common events or even custom commands
  34. # provided through other scripts.
  35. #
  36. # This script also provides window appearance management such as setting almost
  37. # all command windows to be center aligned or changing the position of the
  38. # help window. You can also opt to show the TP Gauge in the main menu as well
  39. # as in the skill menu.
  40. #
  41. #==============================================================================
  42. # ▼ Instructions
  43. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  44. # To install this script, open up your script editor and copy/paste this script
  45. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  46. #
  47. # Edit the settings in the module below as you see fit.
  48. #
  49. #==============================================================================
  50. # ▼ Compatibility
  51. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  52. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  53. # it will run with RPG Maker VX without adjusting.
  54. #
  55. #==============================================================================
  56.  
  57. module YEA
  58.   module MENU
  59.  
  60.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  61.     # - General Menu Settings -
  62.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  63.     # This changes the way menus appear in your game. You can change their
  64.     # alignment, and the location of the help window, Note that any non-Yanfly
  65.     # Engine Ace scripts may not conform to these menu styles.
  66.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  67.     HELP_WINDOW_LOCATION = 0     # 0-Top, 1-Middle, 2-Bottom.
  68.     COMMAND_WINDOW_ALIGN = 1     # 0-Left, 1-Middle, 2-Right.
  69.  
  70.     # These settings below adjust the visual appearance of the main menu.
  71.     # Change the settings as you see fit.
  72.     MAIN_MENU_ALIGN = 0          # 0-Left, 1-Middle, 2-Right.
  73.     MAIN_MENU_RIGHT = false      # false-Left, true-Right.
  74.     MAIN_MENU_ROWS  = 10         # Maximum number of rows for main menu.
  75.     DRAW_TP_GAUGE   = false      # If true, draws TP in the main menu.
  76.  
  77.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  78.     # - Main Menu Settings -
  79.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  80.     # These settings adjust the main menu, the order at which commands appear,
  81.     # what text is displayed, and what the commands are linked to. Here's a
  82.     # list of which commands do what:
  83.     #
  84.     # -------------------------------------------------------------------------
  85.     # :command         Description
  86.     # -------------------------------------------------------------------------
  87.     # :item            Opens up the item menu. Default menu item.
  88.     # :skill           Opens up the skill menu. Default menu item.
  89.     # :equip           Opens up the equip menu. Default menu item.
  90.     # :status          Opens up the status menu. Default menu item.
  91.     # :formation       Lets player manage party. Default menu item.
  92.     # :save            Opens up the save menu. Default menu item.
  93.     # :game_end        Opens up the shutdown menu. Default menu item.
  94.     #
  95.     # :class           Requires YEA - Class System
  96.     #
  97.     # :gogototori      Requires Kread-EX's Go Go Totori! Synthesis
  98.     # :grathnode       Requires Kread-EX's Grathnote Install
  99.     # :sslots          Requires Yami's YSA - Slot Battle
  100.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  101.     COMMANDS =[
  102.       :item,         # Opens up the item menu. Default menu item.
  103.     # :event_1,      # Launches Common Event 1. Common Event Command.
  104.     # :event_2,      # Launches Common Event 2. Common Event Command.
  105.     # :debug,        # Opens up debug menu. Custom Command.
  106.     # :shop,         # Opens up a shop to pawn items. Custom Command.
  107.       :game_end,     # Opens up the shutdown menu. Default menu item.
  108.     ] # Do not remove this.
  109.  
  110.     #--------------------------------------------------------------------------
  111.     # - Common Event Commands -
  112.     # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  113.     # If you insert one of the following commands into the COMMANDS array, the
  114.     # player can trigger a common event to launch. You can disable certain
  115.     # commands in the menu by binding them to a switch. If you don't want to
  116.     # disable them, set the switch to 0 and it will always be enabled. The
  117.     # ShowSwitch will prevent a command from appear if that switch is false.
  118.     # Set it to 0 for it to have no impact.
  119.     #--------------------------------------------------------------------------
  120.     COMMON_EVENT_COMMANDS ={
  121.     # :command => ["Display Name", EnableSwitch, ShowSwitch, Event ID],
  122.       :event_1 => [        "Camp",           11,          0,        1],
  123.       :event_2 => [   "Synthesis",            0,          0,        2],
  124.     } # Do not remove this.
  125.  
  126.     #--------------------------------------------------------------------------
  127.     # - Custom Commands -
  128.     # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  129.     # For those who use scripts that may lead to other menu scenes, use this
  130.     # hash to manage custom commands that run specific script calls. You can
  131.     # disable certain commands in the menu by binding them to a switch. If you
  132.     # don't want to disable them, set the switch to 0. The ShowSwitch will
  133.     # prevent a command from appear if that switch is false. Set it to 0 for
  134.     # it to have no impact.
  135.     #--------------------------------------------------------------------------
  136.     CUSTOM_COMMANDS ={
  137.     # :command => ["Display Name", EnableSwitch, ShowSwitch, Handler Method],
  138.       :debug   => [       "Debug",            0,          0, :command_debug],
  139.       :shop    => [        "Shop",           12,          0,  :command_shop],
  140.       :gogototori => ["Synthesis",            0,        0,  :command_totori],
  141.       :grathnode => [ "Grathnode",            0,        0, :command_install],
  142.     } # Do not remove this.
  143.  
  144.   end # MENU
  145. end # YEA
  146.  
  147. #==============================================================================
  148. # ▼ Editting anything past this point may potentially result in causing
  149. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  150. # halitosis so edit at your own risk.
  151. #==============================================================================
  152.  
  153. #==============================================================================
  154. # ■ Window_MenuCommand
  155. #------------------------------------------------------------------------------
  156. # This class is kept towards the top of the script to provide easier access.
  157. #==============================================================================
  158.  
  159. class Window_MenuCommand < Window_Command
  160.  
  161.   #--------------------------------------------------------------------------
  162.   # overwrite method: make_command_list
  163.   #--------------------------------------------------------------------------
  164.   def make_command_list
  165.     for command in YEA::MENU::COMMANDS
  166.       case command
  167.       #--- Default Commands ---
  168.       when :item
  169.         add_command(Vocab::item,   :item,   main_commands_enabled)
  170.       when :skill
  171.         add_command(Vocab::skill,  :skill,  main_commands_enabled)
  172.       when :equip
  173.         add_command(Vocab::equip,  :equip,  main_commands_enabled)
  174.       when :status
  175.         add_command(Vocab::status, :status, main_commands_enabled)
  176.       when :formation
  177.         add_formation_command
  178.       when :save
  179.         add_original_commands
  180.         add_save_command
  181.       when :game_end
  182.         add_game_end_command
  183.       #--- Yanfly Engine Ace Commands ---
  184.       when :class
  185.         next unless $imported["YEA-ClassSystem"]
  186.         add_class_command
  187.       #--- Imported Commands ---
  188.       when :sslots
  189.         next unless $imported["YSA-SlotBattle"]
  190.         add_sslots_command
  191.       when :grathnode
  192.         next unless $imported["KRX-GrathnodeInstall"]
  193.         process_custom_command(command)
  194.       when :gogototori
  195.         next unless $imported["KRX-AlchemicSynthesis"]
  196.         process_custom_command(command)
  197.       #--- Imported Commands ---
  198.       else
  199.         process_common_event_command(command)
  200.         process_custom_command(command)
  201.       end
  202.     end
  203.   end
  204.  
  205.   #--------------------------------------------------------------------------
  206.   # new method: process_common_event_command
  207.   #--------------------------------------------------------------------------
  208.   def process_common_event_command(command)
  209.     return unless YEA::MENU::COMMON_EVENT_COMMANDS.include?(command)
  210.     show = YEA::MENU::COMMON_EVENT_COMMANDS[command][2]
  211.     continue = show <= 0 ? true : $game_switches[show]
  212.     return unless continue
  213.     text = YEA::MENU::COMMON_EVENT_COMMANDS[command][0]
  214.     switch = YEA::MENU::COMMON_EVENT_COMMANDS[command][1]
  215.     ext = YEA::MENU::COMMON_EVENT_COMMANDS[command][3]
  216.     enabled = switch <= 0 ? true : $game_switches[switch]
  217.     add_command(text, command, enabled, ext)
  218.   end
  219.  
  220.   #--------------------------------------------------------------------------
  221.   # new method: process_custom_command
  222.   #--------------------------------------------------------------------------
  223.   def process_custom_command(command)
  224.     return unless YEA::MENU::CUSTOM_COMMANDS.include?(command)
  225.     show = YEA::MENU::CUSTOM_COMMANDS[command][2]
  226.     continue = show <= 0 ? true : $game_switches[show]
  227.     return unless continue
  228.     text = YEA::MENU::CUSTOM_COMMANDS[command][0]
  229.     switch = YEA::MENU::CUSTOM_COMMANDS[command][1]
  230.     enabled = switch <= 0 ? true : $game_switches[switch]
  231.     add_command(text, command, enabled)
  232.   end
  233.  
  234. end # Window_MenuCommand
  235.  
  236. #==============================================================================
  237. # ■ Menu
  238. #==============================================================================
  239.  
  240. module Menu
  241.  
  242.   #--------------------------------------------------------------------------
  243.   # self.help_window_location
  244.   #--------------------------------------------------------------------------
  245.   def self.help_window_location
  246.     return YEA::MENU::HELP_WINDOW_LOCATION
  247.   end
  248.  
  249.   #--------------------------------------------------------------------------
  250.   # self.command_window_align
  251.   #--------------------------------------------------------------------------
  252.   def self.command_window_align
  253.     return YEA::MENU::COMMAND_WINDOW_ALIGN
  254.   end
  255.  
  256.   #--------------------------------------------------------------------------
  257.   # self.main_menu_align
  258.   #--------------------------------------------------------------------------
  259.   def self.main_menu_align
  260.     return YEA::MENU::MAIN_MENU_ALIGN
  261.   end
  262.  
  263.   #--------------------------------------------------------------------------
  264.   # self.main_menu_right
  265.   #--------------------------------------------------------------------------
  266.   def self.main_menu_right
  267.     return YEA::MENU::MAIN_MENU_RIGHT
  268.   end
  269.  
  270. end # Menu
  271.  
  272. #==============================================================================
  273. # ■ Window_Command
  274. #==============================================================================
  275.  
  276. class Window_Command < Window_Selectable
  277.  
  278.   #--------------------------------------------------------------------------
  279.   # overwrite method: alignment
  280.   #--------------------------------------------------------------------------
  281.   def alignment
  282.     return Menu.command_window_align
  283.   end
  284.  
  285. end # Window_Command
  286.  
  287. #==============================================================================
  288. # ■ Window_MenuCommand
  289. #==============================================================================
  290.  
  291. class Window_MenuCommand < Window_Command
  292.  
  293.   #--------------------------------------------------------------------------
  294.   # alias method: init_command_position
  295.   #--------------------------------------------------------------------------
  296.   class <<self; alias init_command_position_ame init_command_position; end
  297.   def self.init_command_position
  298.     init_command_position_ame
  299.     @@last_command_oy = nil
  300.   end
  301.  
  302.   #--------------------------------------------------------------------------
  303.   # overwrite method: visible_line_number
  304.   #--------------------------------------------------------------------------
  305.   def visible_line_number
  306.     return [[item_max, YEA::MENU::MAIN_MENU_ROWS].min, 1].max
  307.   end
  308.  
  309.   #--------------------------------------------------------------------------
  310.   # overwrite method: alignment
  311.   #--------------------------------------------------------------------------
  312.   def alignment
  313.     return Menu.main_menu_align
  314.   end
  315.  
  316.   #--------------------------------------------------------------------------
  317.   # alias method: process_ok
  318.   #--------------------------------------------------------------------------
  319.   alias window_menucommand_process_ok_ame process_ok
  320.   def process_ok
  321.     @@last_command_oy = self.oy
  322.     window_menucommand_process_ok_ame
  323.   end
  324.  
  325.   #--------------------------------------------------------------------------
  326.   # alias method: select_last
  327.   #--------------------------------------------------------------------------
  328.   alias window_menucommand_select_last_ame select_last
  329.   def select_last
  330.     window_menucommand_select_last_ame
  331.     self.oy = @@last_command_oy unless @@last_command_oy.nil?
  332.     @@last_command_oy = nil
  333.   end
  334.  
  335. end # Window_MenuCommand
  336.  
  337. #==============================================================================
  338. # ■ Scene_Menu
  339. #==============================================================================
  340.  
  341. class Scene_Menu < Scene_MenuBase
  342.  
  343.   #--------------------------------------------------------------------------
  344.   # alias method: start
  345.   #--------------------------------------------------------------------------
  346.   alias scene_menu_start_ame start
  347.   def start
  348.     scene_menu_start_ame
  349.     relocate_windows
  350.   end
  351.  
  352.   #--------------------------------------------------------------------------
  353.   # new method: relocate_windows
  354.   #--------------------------------------------------------------------------
  355.   def relocate_windows
  356.     return unless Menu.main_menu_right
  357.     @command_window.x = Graphics.width - @command_window.width
  358.   end
  359.  
  360. end # Scene_Menu
  361.  
  362. #==============================================================================
  363. # ■ Scene_Item
  364. #==============================================================================
  365.  
  366. class Scene_Item < Scene_ItemBase
  367.  
  368.   #--------------------------------------------------------------------------
  369.   # alias method: start
  370.   #--------------------------------------------------------------------------
  371.   alias scene_item_start_ame start
  372.   def start
  373.     scene_item_start_ame
  374.     return if $imported["YEA-ItemMenu"]
  375.     relocate_windows
  376.   end
  377.  
  378.   #--------------------------------------------------------------------------
  379.   # new method: relocate_windows
  380.   #--------------------------------------------------------------------------
  381.   def relocate_windows
  382.     case Menu.help_window_location
  383.     when 0 # Top
  384.       @help_window.y = 0
  385.       @category_window.y = @help_window.height
  386.       @item_window.y = @category_window.y + @category_window.height
  387.     when 1 # Middle
  388.       @category_window.y = 0
  389.       @help_window.y = @category_window.height
  390.       @item_window.y = @help_window.y + @help_window.height
  391.     else # Bottom
  392.       @category_window.y = 0
  393.       @item_window.y = @category_window.height
  394.       @help_window.y = @item_window.y + @item_window.height
  395.     end
  396.     if $imported["YEA-ItemMenu"]
  397.       @types_window.y = @category_window.y
  398.       @status_window.y = @category_window.y
  399.     end
  400.   end
  401.  
  402. end # Scene_Item
  403.  
  404. #==============================================================================
  405. # ■ Scene_Skill
  406. #==============================================================================
  407.  
  408. class Scene_Skill < Scene_ItemBase
  409.  
  410.   #--------------------------------------------------------------------------
  411.   # alias method: start
  412.   #--------------------------------------------------------------------------
  413.   alias scene_skill_start_ame start
  414.   def start
  415.     scene_skill_start_ame
  416.     relocate_windows
  417.   end
  418.  
  419.   #--------------------------------------------------------------------------
  420.   # new method: relocate_windows
  421.   #--------------------------------------------------------------------------
  422.   def relocate_windows
  423.     case Menu.help_window_location
  424.     when 0 # Top
  425.       @help_window.y = 0
  426.       @command_window.y = @help_window.height
  427.       @status_window.y = @help_window.height
  428.       @item_window.y = @status_window.y + @status_window.height
  429.     when 1 # Middle
  430.       @command_window.y = 0
  431.       @status_window.y = 0
  432.       @help_window.y = @status_window.y + @status_window.height
  433.       @item_window.y = @help_window.y + @help_window.height
  434.     else # Bottom
  435.       @command_window.y = 0
  436.       @status_window.y = 0
  437.       @item_window.y = @status_window.y + @status_window.height
  438.       @help_window.y = @item_window.y + @item_window.height
  439.     end
  440.   end
  441.  
  442. end # Scene_Skill
  443.  
  444. #==============================================================================
  445. # ■ Scene_Equip
  446. #==============================================================================
  447.  
  448. class Scene_Equip < Scene_MenuBase
  449.  
  450.   #--------------------------------------------------------------------------
  451.   # alias method: start
  452.   #--------------------------------------------------------------------------
  453.   alias scene_equip_start_ame start
  454.   def start
  455.     scene_equip_start_ame
  456.     relocate_windows
  457.     relocate_aee_windows
  458.   end
  459.  
  460.   #--------------------------------------------------------------------------
  461.   # new method: relocate_windows
  462.   #--------------------------------------------------------------------------
  463.   def relocate_windows
  464.     return if $imported["YEA-AceEquipEngine"]
  465.     case Menu.help_window_location
  466.     when 0 # Top
  467.       @help_window.y = 0
  468.       @status_window.y = @help_window.height
  469.       @command_window.y = @help_window.height
  470.       @slot_window.y = @command_window.y + @command_window.height
  471.       @item_window.y = @slot_window.y + @slot_window.height
  472.     when 1 # Middle
  473.       @status_window.y = 0
  474.       @command_window.y = 0
  475.       @slot_window.y = @command_window.y + @command_window.height
  476.       @help_window.y = @slot_window.y + @slot_window.height
  477.       @item_window.y = @help_window.y + @help_window.height
  478.     else # Bottom
  479.       @status_window.y = 0
  480.       @command_window.y = 0
  481.       @slot_window.y = @command_window.y + @command_window.height
  482.       @item_window.y = @slot_window.y + @slot_window.height
  483.       @help_window.y = @item_window.y + @item_window.height
  484.     end
  485.   end
  486.  
  487.   #--------------------------------------------------------------------------
  488.   # new method: relocate_aee_windows
  489.   #--------------------------------------------------------------------------
  490.   def relocate_aee_windows
  491.     return unless $imported["YEA-AceEquipEngine"]
  492.     case Menu.help_window_location
  493.     when 0 # Top
  494.       @help_window.y = 0
  495.       @command_window.y = @help_window.height
  496.       @slot_window.y = @command_window.y + @command_window.height
  497.     when 1 # Middle
  498.       @command_window.y = 0
  499.       @help_window.y = @command_window.height
  500.       @slot_window.y = @help_window.y + @help_window.height
  501.     else # Bottom
  502.       @command_window.y = 0
  503.       @slot_window.y = @command_window.height
  504.       @help_window.y = @slot_window.y + @slot_window.height
  505.     end
  506.     @actor_window.y = @command_window.y
  507.     @item_window.y = @slot_window.y
  508.     @status_window.y = @slot_window.y
  509.   end
  510.  
  511. end # Scene_Equip
  512.  
  513. #==============================================================================
  514. # ■ Scene_Menu
  515. #==============================================================================
  516.  
  517. class Scene_Menu < Scene_MenuBase
  518.  
  519.   #--------------------------------------------------------------------------
  520.   # alias method: create_command_window
  521.   #--------------------------------------------------------------------------
  522.   alias scene_menu_create_command_window_ame create_command_window
  523.   def create_command_window
  524.     scene_menu_create_command_window_ame
  525.     process_common_event_commands
  526.     process_custom_commands
  527.   end
  528.  
  529.   #--------------------------------------------------------------------------
  530.   # new method: process_common_event_commands
  531.   #--------------------------------------------------------------------------
  532.   def process_common_event_commands
  533.     for command in YEA::MENU::COMMANDS
  534.       next unless YEA::MENU::COMMON_EVENT_COMMANDS.include?(command)
  535.       @command_window.set_handler(command, method(:command_common_event))
  536.     end
  537.   end
  538.  
  539.   #--------------------------------------------------------------------------
  540.   # new method: command_common_event
  541.   #--------------------------------------------------------------------------
  542.   def command_common_event
  543.     event_id = @command_window.current_ext
  544.     return return_scene if event_id.nil?
  545.     return return_scene if $data_common_events[event_id].nil?
  546.     $game_temp.reserve_common_event(event_id)
  547.     return_scene
  548.   end
  549.  
  550.   #--------------------------------------------------------------------------
  551.   # new method: process_custom_commands
  552.   #--------------------------------------------------------------------------
  553.   def process_custom_commands
  554.     for command in YEA::MENU::COMMANDS
  555.       next unless YEA::MENU::CUSTOM_COMMANDS.include?(command)
  556.       called_method = YEA::MENU::CUSTOM_COMMANDS[command][3]
  557.       @command_window.set_handler(command, method(called_method))
  558.     end
  559.   end
  560.  
  561.   #--------------------------------------------------------------------------
  562.   # new method: command_debug
  563.   #--------------------------------------------------------------------------
  564.   def command_debug
  565.     SceneManager.call(Scene_Debug)
  566.   end
  567.  
  568.   #--------------------------------------------------------------------------
  569.   # new method: command_shop
  570.   #--------------------------------------------------------------------------
  571.   def command_shop
  572.     goods = []
  573.     SceneManager.call(Scene_Shop)
  574.     SceneManager.scene.prepare(goods, false)
  575.   end
  576.  
  577.   #--------------------------------------------------------------------------
  578.   # new method: command_totori
  579.   #--------------------------------------------------------------------------
  580.   def command_totori
  581.     return unless $imported['KRX-AlchemicSynthesis']
  582.     SceneManager.call(Scene_Alchemy)
  583.   end
  584.  
  585. end # Scene_Menu
  586.  
  587. #==============================================================================
  588. #
  589. # ▼ End of File
  590. #
  591. #==============================================================================

评分

参与人数 1星屑 +100 收起 理由
taroxd + 100 认可答案

查看全部评分


本人的游戏主页:YBGame
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
209 小时
注册时间
2012-8-26
帖子
80
5
 楼主| 发表于 2014-5-3 11:39:11 | 只看该作者
银元宝 发表于 2014-5-3 11:04
#==============================================================================
#
# ▼ Ya ...

我复制不了代码...肿么办
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
209 小时
注册时间
2012-8-26
帖子
80
6
 楼主| 发表于 2014-5-3 12:04:23 | 只看该作者
话说这个怎么用啊...貌似只是把一些多余的东西去掉了而已...(版主原谅,我不是有意要连帖的,真的非常对不起
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
22973
在线时间
8639 小时
注册时间
2011-12-31
帖子
3367
7
发表于 2014-5-3 14:46:46 | 只看该作者
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
209 小时
注册时间
2012-8-26
帖子
80
8
 楼主| 发表于 2014-5-3 16:13:16 | 只看该作者
tseyik 发表于 2014-5-3 14:46
カスタムメニュー(自定義菜單)
http://cacaosoft.web.fc2.com/tkool/script/rgss3/cm/index.html
範本

完全打不开啊...
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
758
在线时间
2064 小时
注册时间
2011-10-3
帖子
1686
9
发表于 2014-5-4 22:53:38 | 只看该作者
495317827 发表于 2014-5-3 16:13
完全打不开啊...

请使用代理
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-12-1 00:48

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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