查看: 1843|回复: 6

[已经过期] 卸下装备的装备栏如何显示[卸下]二字?

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
16 小时
注册时间
2011-8-16
回帖
44
发表于 2011-8-20 01:15:14 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽

Fuzzy Ginkgo

梦石
0
星屑
61105
在线时间
1933 小时
注册时间
2010-6-26
回帖
1535

烫烫烫开拓者

发表于 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
我的言论只代表我个人的观点,不代表雇主及/或任何第三方的立场。
Opinions expressed are solely my own and do not express the views or opinions of my employer and/or any third parties.
捐赠 | GitHub
回复

使用道具 举报

梦石
0
星屑
585
在线时间
142 小时
注册时间
2008-11-20
回帖
208
发表于 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
  
【RPGXP视频教学】脚本不是高手的专利 (正在更新...)
http://rpg.blue/thread-238457-1-1.html



回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
16 小时
注册时间
2011-8-16
回帖
44
 楼主| 发表于 2011-8-20 11:08:58 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

Fuzzy Ginkgo

梦石
0
星屑
61105
在线时间
1933 小时
注册时间
2010-6-26
回帖
1535

烫烫烫开拓者

发表于 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
我的言论只代表我个人的观点,不代表雇主及/或任何第三方的立场。
Opinions expressed are solely my own and do not express the views or opinions of my employer and/or any third parties.
捐赠 | GitHub
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
16 小时
注册时间
2011-8-16
回帖
44
 楼主| 发表于 2011-8-20 11:23:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

梦石
0
星屑
585
在线时间
142 小时
注册时间
2008-11-20
回帖
208
发表于 2011-8-20 14:39:15 | 显示全部楼层
不知道你的是怎么回事,某侠的没有问题
未命名.PNG
  
【RPGXP视频教学】脚本不是高手的专利 (正在更新...)
http://rpg.blue/thread-238457-1-1.html



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部