I added it right under the live composite and it places it where the character images begin instead of in the middle where I want it. I tried using xpos/ypos or xalign/yalign but it doesn't seem to move it. I tried moving the ui.bar down away from the live composite but then the bar doesn't show up at all.
Here is the code for the character's live composite:
Code: Select all
def draw_samantha_flip(st, at):
return LiveComposite(
(100, 630), # image size
(0, 0), im.Flip(im.FactorScale("create_character/base_female1.png", .80, .80),horizontal=True),
(0, 0), im.Flip(im.FactorScale("create_character/outfits/uniform_female_1.png", .80, .80),horizontal=True),
#(0, 0), im.Flip(im.FactorScale("create_character/misc/dance_hoodie_%s.png"%(dance_hoodie), .80, .80),horizontal=True),
#(0, 0), im.Flip(im.FactorScale("create_character/outfits/dance_outfit_%s.png"%(dance_outfit), .80, .80),horizontal=True),
(0, 0), im.Flip(im.FactorScale("create_character/faces/samantha/%s.png"%(samantha_face), .80, .80),horizontal=True),
(0, 0), im.Flip(im.FactorScale("create_character/hair_female/hair_samantha.png", .80, .80),horizontal=True),
(0, 0), ui.bar(range=samantha_max,value=samantha_points,xmaximum=100,ymaximum=20,thumb=None,left_bar=Frame("create_character/full_bar.png"), right_bar=Frame("create_character/empty_bar.png")),
),.1
#ui.bar(range=samantha_max,value=samantha_points,xmaximum=100,ymaximum=20,thumb=None,left_bar=Frame("create_character/full_bar.png"), right_bar=Frame("create_character/empty_bar.png"))
And like, when I put an xpos and ypos, it doesn't move the one it's supposed to-- it moves the bugged one. The one that shows up when there's a menu showing lol I'm so confused
Code: Select all
ui.bar(range=samantha_max,value=samantha_points,xmaximum=100,ymaximum=20,thumb=None,left_bar=Frame("create_character/full_bar.png"), right_bar=Frame("create_character/empty_bar.png"),xpos=300, ypos=50),