Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def draw_actor_state(actor, x, y, dummy_width = 24)
- clear_stateanime if @stateanime_new
- icons = []
- for state in actor.states
- next if StateAnime::Exceptions.include?(state.id)
- icons.push(state.icon_index) if state.icon_index > 0
- end
- icons.push(StateAnime::NOR) if icons.empty?
- icons.uniq!
- src_rect = Rect.new(x, y, 24, 24)
- bitmap = Bitmap.new(24, 24)
- bitmap.blt(0, 0, self.contents, src_rect)
- obj = StateIcons.new(icons, x, y, bitmap)
- @stateanime_set.push(obj)
- draw_stateanime(obj)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement