Page 1 of 1

[SOLVED] How to make volume bar looks like scroll bar (etc.)

Posted: Fri Aug 07, 2015 1:40 pm
by Lazy-Levia
I'm a new Ren'Py user and I find it so fun to make my own Visual Novel. But I have some questions :

1. Is that possible to have volume bar with slide?
I mean.. in default game, we should drag the bar to increase volume, but I want to change it into slider.
(Answered by trooper6. Thanks a lot! Scroll down to see his answer.)

2. Is that possible to make transparent background for preferences or save/load game screens?
(Once again, scroll down to see the answer from trooper6 and Donmai. Worked so~ well :) )

3. Can I make the button for change text speed instead the text-speed bar?
I mean.. I want to give "slow" button for text speed 5, "normal" button for text speed 20, etc..
(ANSWER : after read through Screen Actions documentation suggested by xela, I found the Preference("text speed",142) to change the text speed into 142 cps --" Sorry for my lazyness to not read the documentation before ask.. :oops: )

Sorry for my bad english.. :oops:

EDIT : Thanks for your answer! :) Please take care of me again~

Re: How to make volume bar with slide? (and some questions..

Posted: Fri Aug 07, 2015 1:47 pm
by xela
1) What is the difference between sliding and dragging in this context?

2) Yes, there are many examples around the forum (someone please find one :oops: ).

3) Yes, please take a look at screens/screen actions documentations sections.

Re: How to make volume bar with slide? (and some questions..

Posted: Sat Aug 08, 2015 2:12 pm
by Lazy-Levia
Ah, thank you for your response sir!

1. Um I want to change it like ... how should I say.. scrolling with slider? adding scroll bar? Ugh, i found it hard to explain it too .. Image maybe look like this? so.. if you scroll it right, the volume will increase..

2. Great! Thank you! /start stalking those 193 pages/ /I'm not lazy/ /perhaps/

3. Uwoh, okay, check it soon after! Thanks!

Re: How to make volume bar with slide? (and some questions..

Posted: Sat Aug 08, 2015 2:59 pm
by trooper6
It seems to me that your "Slider" is just a vertical bar that looks like a scroll bar, and that the slider image is just a particularly large thumb.
Check out Aleema's tutorial on customizing your menus: http://lemmasoft.renai.us/forums/viewto ... =51&t=9812
This thread in the Questions section about vertical bar preferences: http://lemmasoft.renai.us/forums/viewto ... bar+custom
And the documentation on vbars/bars:
http://www.renpy.org/doc/html/screens.html#vbar
http://www.renpy.org/doc/html/screens.html#bar
Don't forget to follow the link to bar properties.

Re: How to make volume bar with slide? (and some questions..

Posted: Sat Aug 08, 2015 4:06 pm
by Lazy-Levia
Thanks a bunch trooper6!! :D Yeay, now I've got that style~ gonna write it soon on the game --)b

Well, it left my number 2 question tho.. ._. (still didn't find any topic in the forum related to transparent background for config or load/save game :roll: :roll: )

Re: How to make volume bar with slide? (and some questions..

Posted: Sat Aug 08, 2015 6:55 pm
by trooper6
As for the transparent background for your screen, that is pretty easy.
Most of your elements don't have backgrounds...so the background is probably coming from a frame or a window. Just give that frame/window a background of None.
This is mentioned under window style properties: http://www.renpy.org/doc/html/style_pro ... background

Re: How to make volume bar with slide? (and some questions..

Posted: Sat Aug 08, 2015 8:37 pm
by Donmai
Lazy-Levia wrote:2. Is that possible to make transparent background for preferences or save/load game screens?
Open your options.rpy. Look for this line:

Code: Select all

gm_root = "#dcebff",
(The hex number may be different, depending on the theme you have picked). Change the line to:

Code: Select all

gm_root = Null(),
and save. That's all.

Re: How to make volume bar with slide? (and some questions..

Posted: Sun Aug 09, 2015 11:57 am
by Lazy-Levia
Ooh thanks a bunch for both of you, sir trooper6 and sir Donmai!