Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Данный скрипт добавляет отображение иконки в окно показа количества монеток
- #----------------------------------------------------------------------------
- class Window_Base
- def draw_currency_value_ex(value, unit, x, y, width,icon_index)
- cx = text_size(unit).width
- change_color(normal_color)
- draw_text(x, y, width - cx - 2, line_height, value, 2)
- change_color(system_color)
- draw_text(x, y, width, line_height, unit, 2)
- draw_icon(icon_index,x,y)
- end
- end
- class Window_Gold < Window_Base
- attr_accessor :icon
- alias too_old_initialize initialize
- def initialize
- # Поменяй здесь на нужный номер иконки
- @icon=245
- too_old_initialize
- end
- def refresh
- contents.clear
- draw_currency_value_ex(value, currency_unit, 4, 0, contents.width - 8,@icon)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement