Project1

标题: 卸下装备的装备栏如何显示[卸下]二字? [打印本页]

作者: 459974518    时间: 2011-8-20 01:15
提示: 作者被禁止或删除 内容自动屏蔽
作者: orzfly    时间: 2011-8-20 01:47
  1. class Window_EquipItem < Window_Selectable
  2.   alias empty_refresh refresh
  3.   def refresh
  4.     empty_refresh
  5.     self.contents.font.color = normal_color
  6.     self.contents.draw_text(4 + (@item_max - 1) % 2 * (288 + 32) + 28, (@item_max - 1) / 2 * 32, 212, 32, "[卸下]", 0)
  7.   end
  8. end
复制代码
normal_color 可以改成 Color.new(r, g, b) 来使用别的颜色
作者: 癫狂侠客    时间: 2011-8-20 10:03
本帖最后由 癫狂侠客 于 2011-8-20 10:04 编辑
  1. class Window_EquipItem < Window_Selectable
  2.   alias empty_refresh refresh
  3.   def refresh
  4.     empty_refresh
  5.     self.contents.font.color = normal_color
  6.     self.contents.draw_text(4 + (@item_max - 1) % 2 * (288 + 32) + 28, (@item_max - 1) / 2 * 32, 212, 32, "[卸下]", 0)
  7.   end
  8. def update_help
  9.     @help_window.set_text(self.item == nil ? "卸下装备" : self.item.description)
  10.   end
  11. end
复制代码
全面的卸下装备,加"卸下"格子和帮助语句
作者: 459974518    时间: 2011-8-20 11:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: orzfly    时间: 2011-8-20 11:12
本帖最后由 orzfly 于 2011-8-20 11:29 编辑
  1. class Window_EquipItem < Window_Selectable
  2.   alias empty_refresh refresh
  3.   def refresh
  4.     empty_refresh
  5.     self.contents.font.color = normal_color
  6.     self.contents.draw_text(32, (@item_max - 2) * 32, 212, 32, "[卸下]", 0)
  7.   end
  8.   def update_help
  9.     @help_window.set_text(self.item == nil ? "卸下装备" : self.item.description)
  10.   end
  11. end
复制代码
���
作者: 459974518    时间: 2011-8-20 11:23
提示: 作者被禁止或删除 内容自动屏蔽
作者: 癫狂侠客    时间: 2011-8-20 14:39
不知道你的是怎么回事,某侠的没有问题

未命名.PNG (60.51 KB, 下载次数: 0)

未命名.PNG





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