I was experimenting with Yanfly's menu engine and run in to a problem.
I want my characters name and lastname (which is "nickname" in the engine) align with one another and character class and level align with one another. Doing it with the method I'm using just gives static positions for text for every character which of course makes me run in to problems when characters have names of different lengths. If any one knows a method where I can get one space between character name and last name(nickname) and one space between class and level I would die to hear it! Thank you in advance!
EDIT: Also if someone knows a way to create frame/border with window menu skin between the characters I would also die to know that too!
I want my characters name and lastname (which is "nickname" in the engine) align with one another and character class and level align with one another. Doing it with the method I'm using just gives static positions for text for every character which of course makes me run in to problems when characters have names of different lengths. If any one knows a method where I can get one space between character name and last name(nickname) and one space between class and level I would die to hear it! Thank you in advance!
EDIT: Also if someone knows a way to create frame/border with window menu skin between the characters I would also die to know that too!
#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# overwrite method: draw_actor_simple_status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, dx, dy)
dy -= line_height / 2
draw_actor_name(actor, dx, dy)
draw_actor_icons(actor, dx, dy + line_height * 2)
dw = contents.width - dx - 124
draw_actor_class(actor, dx + 220, dy, dw)
draw_actor_level(actor, dx + 290, dy)
draw_actor_nickname(actor, dx + 90, dy, dw)
draw_actor_hp(actor, dx, dy + line_height * 1, dw + 124)
if YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && !actor.draw_mp?
draw_actor_tp(actor, dx, dy + line_height * 2, dw + 124)
elsif YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && actor.draw_mp?
if $imported["YEA-BattleEngine"]
draw_actor_tp(actor, dx, dy + line_height * 2, dw/2 + 1 + 124)
draw_actor_mp(actor, dx + dw/2, dy + line_height * 2, dw/2 + 124)
else
draw_actor_mp(actor, dx, dy + line_height * 2, dw/2 + 1 + 124)
draw_actor_tp(actor, dx + dw/2, dy + line_height * 2, dw/2 + 124)
end
else
draw_actor_mp(actor, dx, dy + line_height * 2, dw + 124)
end
end
end # Window_Base
# ■ Window_Base
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# overwrite method: draw_actor_simple_status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, dx, dy)
dy -= line_height / 2
draw_actor_name(actor, dx, dy)
draw_actor_icons(actor, dx, dy + line_height * 2)
dw = contents.width - dx - 124
draw_actor_class(actor, dx + 220, dy, dw)
draw_actor_level(actor, dx + 290, dy)
draw_actor_nickname(actor, dx + 90, dy, dw)
draw_actor_hp(actor, dx, dy + line_height * 1, dw + 124)
if YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && !actor.draw_mp?
draw_actor_tp(actor, dx, dy + line_height * 2, dw + 124)
elsif YEA::MENU:😀RAW_TP_GAUGE && actor.draw_tp? && actor.draw_mp?
if $imported["YEA-BattleEngine"]
draw_actor_tp(actor, dx, dy + line_height * 2, dw/2 + 1 + 124)
draw_actor_mp(actor, dx + dw/2, dy + line_height * 2, dw/2 + 124)
else
draw_actor_mp(actor, dx, dy + line_height * 2, dw/2 + 1 + 124)
draw_actor_tp(actor, dx + dw/2, dy + line_height * 2, dw/2 + 124)
end
else
draw_actor_mp(actor, dx, dy + line_height * 2, dw + 124)
end
end
end # Window_Base