Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_Base < Window
- def draw_icon(icon_index, x, y, enabled = true)
- bitmap = RPG::Cache.state($data_states[icon_index].name)
- self.contents.blt(x, y, bitmap, Rect.new(0, 0, 24, 24), enabled ? 255 : 128)
- end
- def draw_actor_state(actor, x, y, width = 96)
- count = 0
- actor.states.sort!
- actor.states.each do |state|
- draw_icon(state, x + 24 * count, y+4)
- count += 1
- break if (24 * count > width - 24)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment