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.
-
Yuuji
- Regular
- Posts: 96
- Joined: Tue Jan 20, 2015 3:08 am
- Location: Russia, Perm
-
Contact:
#1
Post
by Yuuji » Mon Jan 26, 2015 7:54 am
Hello! I'm trying to make bar that sets some preferences in game. All's ok with that but I have a question. Is there a way I can implement hovered state of a bar thumb? My bar uses styles. Something like that:
Code: Select all
bar xpos 112 ypos 193 value Preference("text speed") style "text_slider" left_gutter 0 right_gutter 0
style text_slider:
xmaximum 326
ymaximum 19
right_bar "image/text_speed_slider.png"
left_bar "image/text_speed_slider.png"
thumb "image/speed_slider_idle.png"
thumb_offset 2
So, I use only thumb property to set image to the bar thumb. Is there a property in style or some workarounds for my problem?
Last edited by
Yuuji on Mon Jan 26, 2015 9:53 am, edited 1 time in total.
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.
-
Marchare
- Newbie
- Posts: 19
- Joined: Mon Apr 28, 2014 7:43 pm
-
Contact:
#2
Post
by Marchare » Mon Jan 26, 2015 9:19 am
Perhaps hover_thumb should do the trick?
Haven't seen it in the documentation nor tested it yet, but hover_thumb appears blue in Editra like other style properties.
-
Yuuji
- Regular
- Posts: 96
- Joined: Tue Jan 20, 2015 3:08 am
- Location: Russia, Perm
-
Contact:
#3
Post
by Yuuji » Mon Jan 26, 2015 9:53 am
Oh, really. Thank you very much!
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.
Users browsing this forum: Bing [Bot]