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.
I am currently working on a project where I aim to implement a scroll bar for choices within a choice screen. To facilitate customization, I have crafted a specific style for the 'textbutton' to adjust attributes such as font size and color. Regrettably, this approach does not appear to be functioning as expected. I would greatly appreciate any insights or suggestions that could help me identify and resolve the underlying issue
fgfg3356 wrote: ↑Sun Jan 21, 2024 4:30 am
I would greatly appreciate any insights or suggestions that could help me identify and resolve the underlying issue
Your textbutton uses a style. This style contains keywords like "color" or "font" that are not possible for the textbutton, only for text itself.
fgfg3356 wrote: ↑Sun Jan 21, 2024 4:30 am
I would greatly appreciate any insights or suggestions that could help me identify and resolve the underlying issue
style large_textbutton is button
style large_textbutton_text:
font "KoPubDotumLight.ttf"
color "#FF0000"
size 20
.... textbutton choice[0] action choice[1] style "large_textbutton"
Within the "large_textbutton" style definition, you can of course include textbutton related style properties.
Thanks to you, my work is functioning well! Your assistance has significantly advanced my project. I am deeply grateful for your help and sincerely wish you all the best in your future endeavors. Your support has been invaluable, and I hope that wonderful things come your way