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

Project1

 找回密码
 注册会员
搜索

卸下装备的装备栏如何显示[卸下]二字?

查看数: 1494 | 评论数: 6 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2011-8-20 01:15

正文摘要:

如上,就是那个取下装备的位置显示[卸下]之类的字!请高手帮帮忙!

回复

癫狂侠客 发表于 2011-8-20 14:39:15
不知道你的是怎么回事,某侠的没有问题

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

未命名.PNG
orzfly 发表于 2011-8-20 11:12:41
本帖最后由 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
复制代码
���

点评

不行,还是出错了,请看!  发表于 2011-8-20 12:15
x坐标怎么直接32了。。。  发表于 2011-8-20 11:47
癫狂侠客 发表于 2011-8-20 10:03:19
本帖最后由 癫狂侠客 于 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
复制代码
全面的卸下装备,加"卸下"格子和帮助语句

点评

但是还是有一点问题,请到帖子里看看!  发表于 2011-8-20 11:06
orzfly 发表于 2011-8-20 01:47:03
  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 11:06
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-2-17 14:46

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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