赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 4 |
经验 | 1075 |
最后登录 | 2013-4-30 |
在线时间 | 31 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 350
- 在线时间
- 31 小时
- 注册时间
- 2013-1-17
- 帖子
- 12
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
想以圖示代替顏色,改了Window_Base > draw_item_name的腳本
單純新手練習,請多多指教!!
原碼
def draw_item_name(item, x, y, enabled = true, width = 172)
return unless item
draw_icon(item.icon_index, x, y, enabled)
change_color(normal_color, enabled)
draw_text(x + 24, y, width, line_height, item.name)
end
修改後
def draw_item_name(item, x, y, enabled = true, width = 172)
return unless item
draw_icon(item.icon_index, x, y, enabled)
change_color(normal_color, enabled)
draw_text(x + 24, y, width, line_height, item.name)
#editStart
n = item.note.to_i
s = item.name.length * 18 + 25 #全形字符限定
draw_icon(n, x + s, y, enabled)
#editEnd
end |
|