How do I customize bars? - SOLVED

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.
Post Reply
Message
Author
User avatar
NickelBuckle9
Regular
Posts: 36
Joined: Wed Sep 14, 2011 3:47 pm
Completed: MiniBot
Projects: Ah! Peku, Pokemon Trainer Game (untitled)
Location: United States - East Coast
Contact:

How do I customize bars? - SOLVED

#1 Post by NickelBuckle9 » Thu Mar 08, 2012 2:15 pm

Hey everyone! I've checked out Aleema's style customization tutorial and attempted changing the script she suggested, but nothing seems to have been changed.

:(

All I'm trying to do is display a simple bar (not a scroll bar), on the player's screen to show their current level in each stat. Could someone please show me how to customize the length of the bar (currently, it stretches all the way across the screen, and change the full and empty pictures from the default style to my own?

Here's my current code:

Code: Select all

$ ui.hbox(xalign=0.5, yalign=0.5)
$ ui.bar(100,value, xmaximum=400)
$ ui.close()
Thank you so much!
Last edited by NickelBuckle9 on Fri Mar 09, 2012 10:40 am, edited 1 time in total.
Image
Completed Projects:
* MiniBot *
http://www.youtube.com/watch?v=xR6Ru9-vlic
(Check video details for download links)
http://nickel-buckle-9.deviantart.com/

User avatar
Tsundere Lightning
Miko-Class Veteran
Posts: 910
Joined: Sun Jul 06, 2008 4:30 pm
Projects: And plenty of them!
Location: Creche Alpha, Treasure Island
Contact:

Re: How do I customize bars?

#2 Post by Tsundere Lightning » Fri Mar 09, 2012 2:54 am

You'd have better luck posting this in the Ren'Py Questions and Answers subforum. I've asked a mod to move it there.
She's sun and rain: She's fire and ice. A little crazy, but it's nice.
Bliss Stage: Love is your weapon! A sci-fi visual novel about child soldiers coming of age. Kickstarter prerelease here. WIP thread here. Original tabletop game by Ben Lehman here. Tumblr here.


User avatar
NickelBuckle9
Regular
Posts: 36
Joined: Wed Sep 14, 2011 3:47 pm
Completed: MiniBot
Projects: Ah! Peku, Pokemon Trainer Game (untitled)
Location: United States - East Coast
Contact:

Re: How do I customize bars?

#4 Post by NickelBuckle9 » Fri Mar 09, 2012 10:40 am

Thank you! That's exactly what I'm looking for! ^^
Image
Completed Projects:
* MiniBot *
http://www.youtube.com/watch?v=xR6Ru9-vlic
(Check video details for download links)
http://nickel-buckle-9.deviantart.com/

Post Reply

Who is online

Users browsing this forum: No registered users