| 赞 | 1  | 
 
| VIP | 255 | 
 
| 好人卡 | 52 | 
 
| 积分 | 1 | 
 
| 经验 | 77416 | 
 
| 最后登录 | 2016-1-18 | 
 
| 在线时间 | 1269 小时 | 
 
 
 
 
 
Lv1.梦旅人 薄凉看客
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 1269 小时
 
        - 注册时间
 - 2010-6-20
 
        - 帖子
 - 1316
 
 
  
 | 
	
重新赋值 @item_max  @commands 就好 
可以在Window_Command里多加一方法- def draw_new_item(*args)
 
 -     @commands = args[0]
 
 -     @item_max = @commands.size
 
 -     if self.contents != nil
 
 -     self.contents.dispose
 
 -     self.contents = nil
 
 -     end
 
 -     self.contents = Bitmap.new(width - 32, @item_max * 32)
 
 -     self.height = @item_max * 32 + 32
 
 -     self.y = 480 - 160 - self.height
 
 -     refresh
 
 -   end
 
  复制代码 找到战斗场景的update 
 
分歧 @actor_index 就可以判断角色 
比如- if @actor_index == 1
 
 -       @actor_command_window.draw_new_item(["测试1", "测试2"])
 
 -     else
 
 -       s1 = $data_system.words.attack
 
 -       s2 = $data_system.words.skill
 
 -       s3 = $data_system.words.guard
 
 -       s4 = $data_system.words.item
 
 -       @actor_command_window.draw_new_item([s1, s2, s3, s4])
 
 -     end
 
  复制代码 战斗测试 帕吉尔 的战斗指令窗口已经改变了 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |