Makes icons expand right to left

Hello everyone !


I'll try to explain my request. By defaut, the batlle icons expand from left to right, like in this picture :


http://hpics.li/91f024d


I'd just like to "swap", and makes icons start from the right (near HP) and go left then.


Is it possible to do that ?
It's totally possible. Here you go.

Code:
# Kazama[rmwOS]
# Version 1.0
# Swapped Battle Icons
# Requested by Draw

# Description:
# Draws Icons from Right to Left

class Window_BattleStatus < Window_Selectable

  def draw_actor_icons(actor, x, y, width = 96)
    icons = (actor.state_icons + actor.buff_icons)[0, width / 24]
    icons.each_with_index {|n, i| draw_icon(n, x - 24 * i, y) }
  end

  def draw_basic_area(rect, actor)
    draw_actor_name(actor, rect.x + 0, rect.y, 100)
    draw_actor_icons(actor, rect.x + 128, rect.y, rect.width - 96)
  end
end
It's totally possible. Here you go.



# Kazama[rmwOS]
# Version 1.0
# Swapped Battle Icons
# Requested by Draw

# Description:
# Draws Icons from Right to Left

class Window_BattleStatus < Window_Selectable

def draw_actor_icons(actor, x, y, width = 96)
icons = (actor.state_icons + actor.buff_icons)[0, width / 24]
icons.each_with_index {|n, i| draw_icon(n, x - 24 * i, y) }
end

def draw_basic_area(rect, actor)
draw_actor_name(actor, rect.x + 0, rect.y, 100)
draw_actor_icons(actor, rect.x + 128, rect.y, rect.width - 96)
end
end



Exactly what I needed, thank you !

Original thread: https://forums.rpgmakerweb.com/threads/makes-icons-expand-right-to-left.62146/