All right, don't anybody get moody. Here's how you display text
and bars in SL ...
Let's show text+bar on the main menu. Find "screen main_menu" in screens.rpy (newer Ren'Py games only). We're going to add the
text widget and the
bar widget at the bottom left corner.
First, I make a vbox, so that I can show the Text on top of the Bar (or visa versa). I make sure to add the positional properties under the vbox to place these widgets where I want them on the main menu. I make sure that the vbox is aligned so that it is not inside of any other widget (like the navigation's frame).
Under that, I add my Text and Bar widgets in their simplest forms. I'm assuming that you are keeping count of the number of endings in a variable that is a
number. In this example, it is called
endings_seen, and I put a fake maximum of 5 total. The default would be 0, and you would count up for each ending seen, optimally. If you're doing this another way, tell me.
Anyway, here's my finished example (new stuff is in the bottom vbox):
Code:
screen main_menu:
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
window:
style "mm_root"
# The main menu buttons.
frame:
style_group "mm"
xalign .98
yalign .98
has vbox
textbutton _("Start Game") action Start()
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Help") action Help()
textbutton _("Quit") action Quit(confirm=False)
vbox:
xpos 0.02 ypos 0.98
xanchor 0.0 yanchor 1.0
$ howmanyend = "Endings Seen: %d / 5" % endings_seen
text howmanyend xalign 0.5
bar value endings_seen range 5 xmaximum 250 xalign 0.5