Project1

标题: 脚本问题 [打印本页]

作者: ni838746001    时间: 2011-7-30 15:19
标题: 脚本问题
本帖最后由 fux2 于 2011-7-30 15:54 编辑
  1. ■ Window_EquipRight
  2. #--------------------------------------------------------------------------
  3.   # ● 刷新
  4.   #--------------------------------------------------------------------------

  5. def refresh
  6.     self.contents.clear
  7.     @data = []
  8.     @data.push($data_weapons[@actor.hand1_id])
  9.     @data.push($data_armors[@actor.hand2_id])
  10.     @data.push($data_armors[@actor.upbody_id])
  11.     @data.push($data_armors[@actor.downbody_id])
  12.     @data.push($data_armors[@actor.head_id])
  13.     @data.push($data_armors[@actor.shoe_id])
  14.     @data.push($data_armors[@actor.jewel1_id])
  15.     @data.push($data_armors[@actor.jewel2_id])
  16.     @data.push($data_armors[@actor.jewel3_id])
  17.     @data.push($data_armors[@actor.name_id])
  18.     @item_max = @data.size
  19.     self.contents.font.color = Color.new(0,0,0,255)
  20.     self.contents.font.size=11
  21.     self.contents.draw_text(4, 32 * 0, 92, 32, "武器")
  22.     self.contents.draw_text(4, 32 * 1, 92, 32, "盾")
  23.     self.contents.draw_text(4, 32 * 2, 92, 32, "身体")
  24.     self.contents.draw_text(4, 32 * 3, 92, 32, "披风")
  25.     self.contents.draw_text(4, 32 * 4, 92, 32, "头部")
  26.     self.contents.draw_text(4, 32 * 5, 92, 32, "鞋子")
  27.     self.contents.draw_text(4, 32 * 6, 92, 32, "戒指")
  28.     self.contents.draw_text(4, 32 * 7, 92, 32, "项链")
  29.     self.contents.draw_text(4, 32 * 8, 92, 32, "手镯")
  30.     self.contents.draw_text(4, 32 * 9, 92, 32, "荣誉")
  31.     draw_item_name(@data[0], 92, 32 * 0)
  32.     draw_item_name(@data[1], 92, 32 * 1)
  33.     draw_item_name(@data[2], 92, 32 * 2)
  34.     draw_item_name(@data[3], 92, 32 * 3)
  35.     draw_item_name(@data[4], 92, 32 * 4)
  36.     draw_item_name(@data[5], 92, 32 * 5)
  37.     draw_item_name(@data[6], 92, 32 * 6)
  38.     draw_item_name(@data[7], 92, 32 * 7)
  39.     draw_item_name(@data[8], 92, 32 * 8)
  40.     draw_item_name(@data[9], 92, 32 * 9)
  41.   end
复制代码
我不希望他显示装备的名字。只想显示图标?怎么弄好呃?dsu_plus_rewardpost_czw
作者: starky_ds    时间: 2011-7-30 17:52
把20行到31行删掉就是




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1