| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 4 |  
| 积分 | 1 |  
| 经验 | 4836 |  
| 最后登录 | 2022-10-29 |  
| 在线时间 | 345 小时 |  
 Lv1.梦旅人 
	梦石0 星屑140 在线时间345 小时注册时间2009-5-15帖子111 | 
| 本帖最后由 dujian15 于 2012-10-19 17:44 编辑 
 是这样的,我的菜单如图
  我想要在显示小人的地方显示这个小人的基本装备图标,如主手副手 衣服 饰品什么的,大概五个左右。 
 在Window_MenuStatus这个脚本中,我找到45行左右的地方改动了这些脚本。
 
 改动后如下:
 #--------------------------------------------------------------------------
 # ● 绘制项目
 #--------------------------------------------------------------------------
 def draw_item(index)
 actor = $game_party.members[index]
 enabled = $game_party.battle_members.include?(actor)
 rect = item_rect(index)
 draw_item_background(index)
 draw_line(rect) #
 draw_actor_face_half(actor, rect.x + 1, rect.y + 1, enabled)
 
 draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)
 draw_actor_graphic(actor , 410, rect.y + 65 )
 #  draw_icon(actor.equips.icon_index, rect.x + 410, rect.y + 67, enabled)end
 
 #--------------------------------------------------------------------------
 # * Draw Line
 #--------------------------------------------------------------------------
 def draw_line(rect)
 temp_rect = rect.clone
 temp_rect.height = 2
 temp_rect.width = 25
 contents.gradient_fill_rect(temp_rect, color2, color1)
 temp_rect.y += 72
 contents.gradient_fill_rect(temp_rect, color2, color1)
 temp_rect.y -= 72
 temp_rect.x += temp_rect.width
 temp_rect.width *= 2
 contents.fill_rect(temp_rect, color1)
 temp_rect.y += 72
 contents.fill_rect(temp_rect, color1)
 temp_rect.y -= 72
 temp_rect.x += temp_rect.width
 temp_rect.width /= 2
 contents.gradient_fill_rect(temp_rect, color1, color2)
 temp_rect.y += 72
 contents.gradient_fill_rect(temp_rect, color1, color2)
 temp_rect.y -= 72
 temp_rect.height = 74
 temp_rect.width = 250
 temp_rect.x = 209
 contents.gradient_fill_rect(temp_rect, color2, color1)
 end
 #--------------------------------------------------------------------------
 # * Get Color 1
 #--------------------------------------------------------------------------
 def color1
 Color.new(255, 255, 255, 255)
 end
 #--------------------------------------------------------------------------
 # * Get Color 2
 #--------------------------------------------------------------------------
 def color2
 Color.new(255, 255, 255, 0)
 end
 
 
 标红的位置是我想画图标的位置,请问人物装备图标的数值应该如何返回?
 | 
 |