I don't know why, but for some reason 'pos' in this case does not want to take in absolute values. So you have to define the integer value of the position you want it to fit in.
So you want half the window size, which for your case is x 270 and y 112. Remember, it is only taking integer values for the pixel alignment, so you can't have a number like 112.5.
You could write it out with xpos = 270, xanchor = 0.5, but xcenter = 270 does the same thing with one line.
I've commented out the padding, because it seems a bit odd... It doesn't seem to be padding the right places. Such as, window_xpadding = #, gives the same # value padding on both left and right side. However, for some reason the right padding does not seem to apply itself. Could be something with the defining window size. Also, could be the same reason why 'pos' isn't working properly for defining an absolute position inside the window. My guess is it might be something with how window max and min size has to also account for padding and margin.
Anyhow, you could just use what_xmaximum to define a pseudo padding. Although, technically it is just limiting the width of the text, but it'll still serve the same functionality if your end goal was to have the text to be dead center of the text bubble.
So something like this;
Code:
init:
$ left_text_normal = Character(None,
window_background = Frame("gfx/textbox01.png", 0, 0),
window_xfill=False,
window_xmaximum=540,
window_xminimum=540,
window_yminimum=225,
window_ymaximum=225,
window_xalign=0.15,
window_yalign=0.8,
#window_left_padding = 75,
#window_right_padding = 75,
#window_top_padding = 65,
#window_bottom_padding = 65,
what_color="#000000",
what_size=16,
what_xcenter = 270,
what_ycenter = 112,
what_xmaximum = 400
)
$ right_text_normal = Character(None,
window_background = Frame(im.Flip("gfx/textbox01.png", horizontal=True), 0, 0),
window_xfill=False,
window_xminimum=540,
window_xmaximum = 540,
window_yminimum=225,
window_ymaximum=225,
window_xalign=0.85,
window_yalign=0.8,
#window_left_padding = 75,
#window_right_padding = 75,
#window_top_padding = 65,
#window_bottom_padding = 65,
what_color="#000000",
what_size=16,
what_xcenter = 270,
what_ycenter = 112,
what_xmaximum = 400
)
label start:
left_text_normal "Test text. Test text. Test text. Test text. Test text. Test text. Test text. Test text. Test text. Test text. Test text."
right_text_normal "Test text."
return