This area is for the Q/A section. I expect it to grow. But if it doesn't, I have some users that are apparently dabbling in Rubyscripting.
QUESTION #1:
The HP values are centered. How do I make them left-adjusted?
ANSWER:
The XaiL menu uses its own HP, SP and Exp drawing methods which mimic the original RPGMaker VXAce version. The replacement I used to display the HP stats is on line 463.
Code:
def draw_actor_xailhp(actor, x, y, width = 144)
xail_bars(x, y, actor.hp, actor.maxhp, X_MAIN::AV::BAR_HP_COLOR1,
X_MAIN::AV::BAR_HP_COLOR2, X_MAIN::AV::BAR_HP_BACKGD)
text = actor.hp.to_s + "/" + actor.maxhp.to_s
if X_MAIN::PARTY::EXP_DISPLAY != nil
text += " " + $data_system.words.hp
end
self.contents.draw_text(x, y, width, 32, text, 1)
end
The magic is in the last statement in that method, the draw_text method.
Normally, that statement just has five parameters: x, y, width, height and text. But this one has a sixth parameter, the alignment value of '1'. You can set the value to '1' for a centered text, '2' for right aligned, or '0' for left aligned (though that is also the default.
If you want it left-justified, make the params (x, y, width, 32, text)
And the same goes for the SP and EXP stats code just below.