Thanks for your input, but unfortunately, this does not help me much.
Using the "left_bar" and "right_bar" properties as colors definitely gives me those colors for the bar, but it doesn't allow for the use of the styled bar image. For example, using the "austen" theme with the default widget color set to red, I can use the below code to create a display that looks like the attached screencap.
Code: Select all
screen stats_frame(name, level, hp, maxhp, mp, maxmp, xcoord, ycoord):
frame:
xpadding 18 ypadding 18
xalign xcoord
yalign ycoord
hbox:
vbox:
text name size 25 ypos -5
hbox:
vbox:
text "HP " size 20 xmaximum 200
text "MP " size 20 ypos 5 xmaximum 200
vbox:
bar value StaticValue(hp, maxhp) xmaximum 200
bar value StaticValue(mp, maxmp) xmaximum 200 ypos 5 left_bar "#ffffffaa" right_bar "#FFFF0099"
vbox:
text "Lv. [level]" size 25 xalign 1.0 ypos -5
text "[hp]/[maxhp]" size 20 xalign 1.0
text "[mp]/[maxmp]" size 20 xalign 1.0 ypos 5
label start:
show screen stats_frame("Player", 5, 23, 50, 4, 30, 0.15, 0.15)
"Sample Text"
The default style color for all widgets in the theme gets applied to the HP bar, making it red, or any color the user defines.
The MP bar, using the "left_bar" and "right_bar" properties, has the right colors as individually defined, but it doesn't use the bar image from the theme.
Since the user can describe what color they want the default bar (and other widgets) to be with a statement in the "options.rpy" file, I would like to think there is a way to describe a bar with an individual coloring that still uses the rest of the theme, but I don't have any idea how I would do so.
I've tried adding things to the bar statement such as:
Code: Select all
bar value StaticValue(hp, maxhp) xmaximum 200 color "#FF1500"
Code: Select all
bar value StaticValue(hp, maxhp) xmaximum 200 widget_color "#FF1500"
...but nothing seems to work with the bar statement correctly.