Odd problem, or maybe I'm just stupid...

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
Qu-ko
Regular
Posts: 54
Joined: Sun Jun 18, 2006 12:27 am
Location: Massachusetts, land of evil-ness
Contact:

Odd problem, or maybe I'm just stupid...

#1 Post by Qu-ko »

Hi, um, I'm the noob from a while ago who was all "I CANNOT DO THIS *suicide*" and asking some dumb questions. Heh, well, I'm back with another possibly stupid question. ^^;

Okay, so, I changed the sliders in preferences to custom images, right? But the strange thing is, after I did so, they go past the end of the slider for some reason.

I don't really know what I did... my slider prefs look like this:

Code: Select all

        style.bar.left_bar = Frame("slider_full.png", 12, 0)
        style.bar.right_bar = Frame("slider_empty.png", 12, 0)
        style.bar.thumb = Image("slider_idle.png")
        style.bar.hover_thumb = Image("slider_hover.png")
        style.bar.thumb_shadow = Image("slider_shadow.png")
        style.prefs_slider.xmaximum=200
        style.prefs_slider.ymaximum=22
        style.prefs_slider.xpos = 0.5
        style.prefs_slider.xanchor = 0.5
My slider widths are at 128, and I'm thinking that might have something to do with it, but I don't really know how to fix it.

Erm... save me? :<
ヾ(゚Д゚)ノ うわあああぁぁぁぁぁぁぁ―――――――

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#2 Post by PyTom »

The slider width and height are controlled by the .xmaximum and .ymaximum settings, respectively. Perhaps reducing those would fix your problem?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Qu-ko
Regular
Posts: 54
Joined: Sun Jun 18, 2006 12:27 am
Location: Massachusetts, land of evil-ness
Contact:

#3 Post by Qu-ko »

Well, I changed it to match my width, but the slider still remained past the end of the bar... maybe if I post a screenshot, you can get a better idea of what it actually looks like.

You can see on the Auto-Forward Time bar that the slider has moved beyond where it's supposed to be. It also refuses to move from past the bar unless I click somewhere inside the bar rather than directly on the slider.
Attachments
Said screenshot.
Said screenshot.
ヾ(゚Д゚)ノ うわあああぁぁぁぁぁぁぁ―――――――

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#4 Post by PyTom »

Can you post the images that make up the slider? I think the problem is probably a combination of a need to set the left and right gutters for the slider, and to set the thumb offset.

perhaps setting

$ style.thumb.right_gutter = <width of thumb>

will be enough for you.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Qu-ko
Regular
Posts: 54
Joined: Sun Jun 18, 2006 12:27 am
Location: Massachusetts, land of evil-ness
Contact:

#5 Post by Qu-ko »

Aha! I checked the reference section again to look for more details on gutters and offsets, and did this as a result:

Code: Select all

        style.bar.left_gutter = 10
        style.bar.right_gutter = 12
        style.bar.thumb_offset = -10
and it fixed itself. Thanks, heh... although that was pretty dumb of me. ^^;
ヾ(゚Д゚)ノ うわあああぁぁぁぁぁぁぁ―――――――

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#6 Post by monele »

Cool new interface btw ;)

Post Reply

Who is online

Users browsing this forum: Bing [Bot]