Hovered thumb[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
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Hovered thumb[SOLVED!]

#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.

User avatar
Marchare
Newbie
Posts: 19
Joined: Mon Apr 28, 2014 7:43 pm
Contact:

Re: Hovered thumb

#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.

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Hovered thumb

#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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]