Makes icons expand right to left

Draw

Veteran
Veteran
Joined
Oct 11, 2015
Messages
83
Reaction score
1
First Language
French
Primarily Uses
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 ?
 

Anomaly

coffee.empty? ? refill_coffee : drink_coffee
Veteran
Joined
Jan 19, 2016
Messages
61
Reaction score
302
First Language
[US] English
Primarily Uses
RMVXA
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
 

Draw

Veteran
Veteran
Joined
Oct 11, 2015
Messages
83
Reaction score
1
First Language
French
Primarily Uses
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 !
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top