Project1
标题:
卸下装备的装备栏如何显示[卸下]二字?
[打印本页]
作者:
459974518
时间:
2011-8-20 01:15
提示:
作者被禁止或删除 内容自动屏蔽
作者:
orzfly
时间:
2011-8-20 01:47
class Window_EquipItem < Window_Selectable
alias empty_refresh refresh
def refresh
empty_refresh
self.contents.font.color = normal_color
self.contents.draw_text(4 + (@item_max - 1) % 2 * (288 + 32) + 28, (@item_max - 1) / 2 * 32, 212, 32, "[卸下]", 0)
end
end
复制代码
normal_color 可以改成 Color.new(r, g, b) 来使用别的颜色
作者:
癫狂侠客
时间:
2011-8-20 10:03
本帖最后由 癫狂侠客 于 2011-8-20 10:04 编辑
class Window_EquipItem < Window_Selectable
alias empty_refresh refresh
def refresh
empty_refresh
self.contents.font.color = normal_color
self.contents.draw_text(4 + (@item_max - 1) % 2 * (288 + 32) + 28, (@item_max - 1) / 2 * 32, 212, 32, "[卸下]", 0)
end
def update_help
@help_window.set_text(self.item == nil ? "卸下装备" : self.item.description)
end
end
复制代码
全面的卸下装备,加"卸下"格子和帮助语句
作者:
459974518
时间:
2011-8-20 11:08
提示:
作者被禁止或删除 内容自动屏蔽
作者:
orzfly
时间:
2011-8-20 11:12
本帖最后由 orzfly 于 2011-8-20 11:29 编辑
class Window_EquipItem < Window_Selectable
alias empty_refresh refresh
def refresh
empty_refresh
self.contents.font.color = normal_color
self.contents.draw_text(32, (@item_max - 2) * 32, 212, 32, "[卸下]", 0)
end
def update_help
@help_window.set_text(self.item == nil ? "卸下装备" : self.item.description)
end
end
复制代码
���
作者:
459974518
时间:
2011-8-20 11:23
提示:
作者被禁止或删除 内容自动屏蔽
作者:
癫狂侠客
时间:
2011-8-20 14:39
不知道你的是怎么回事,某侠的没有问题
未命名.PNG
(60.51 KB, 下载次数: 0)
下载附件
保存到相册
2011-8-20 14:39 上传
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1