Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
-
Contact:
#1
Post
by namastaii » Sat Feb 21, 2015 9:39 pm
When you use a bar range for a value of something, all the colors are the same (according to whatever theme you choose)
I was wondering is there a way to change the color in the coding for each bar for each element without doing much different and using the same code layout?
For instance, this is the regular code:
Code: Select all
screen stats_screen:
frame:
has vbox
hbox:
label "{color=#9933ff}Energy: {/color}" xminimum 100
bar range energy_max value energy xmaximum 400
and it shows up like this:
And I wish to change the value (that blue progressive bar inside) to whatever color I want if possible..or do I have to create a different stat bar from python? I'd prefer to keep this simple layout if possible. I tried looking for some answers but didn't find any.
-
qirien
- Miko-Class Veteran
- Posts: 538
- Joined: Thu Jul 31, 2003 10:06 pm
- Organization: Metasepia Games
- Deviantart: qirien
- Github: qirien
- itch: qirien
- Location: New Mexico, USA
- Discord: qirien
-
Contact:
#2
Post
by qirien » Sun Mar 01, 2015 11:56 am
Unfortunately, there is no way to change the color of the bar without making your own bar with your own graphics. But you can change the theme, which will change the colors of all bars in your game.
If you want to make your own graphics to fully customize the look of the bar and its color, check out
Aleema's Customization Thread, especially the section "Styling bars and thumbs".
-
mjshi
- Regular
- Posts: 179
- Joined: Wed Mar 13, 2013 9:55 pm
- Completed: MazeSite01, Ponderings of Time
-
Contact:
#3
Post
by mjshi » Sun Mar 01, 2015 2:59 pm
Aleema's tutorial is more of a Preferences menu bar tutorial, so I'll
do some shameless self advertising suggest that you check out the bar tutorial in my signature, or check out the Ren'Py documentation:
http://www.renpy.org/doc/html/style_pro ... properties
To use the previous poster's suggestion of images, you'd have to define left_bar and right_bar in the bar property statements.
-
namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
-
Contact:
#4
Post
by namastaii » Sun Mar 01, 2015 5:13 pm
Thanks guys

Users browsing this forum: No registered users