[Solved]Change viewport's background collor.
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.
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.
[Solved]Change viewport's background collor.
I tried making an scrollabre gallery, but after adding frame with viewport, the background area turned out to be white. Is there a way to change it's color?
Last edited by Doeny on Sat Oct 08, 2022 1:21 pm, edited 1 time in total.
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Change viewport's background collor.
You can use the background property for your frame. It takes a displayable, so you can use Solid to change the background color.
https://www.renpy.org/doc/html/style_pr ... background
Here's an example:
I suppose the reason why your frame is white is because your game uses one of the white GUI themes, and frames use the "gui/frame.png" image by default (which in this case is white).
https://www.renpy.org/doc/html/style_pr ... background
Here's an example:
Code: Select all
frame:
background Solid("#000")Re: Change viewport's background collor.
Thankieslaure44 wrote: ↑Sat Oct 08, 2022 1:11 pmYou can use the background property for your frame. It takes a displayable, so you can use Solid to change the background color.
https://www.renpy.org/doc/html/style_pr ... background
Here's an example:I suppose the reason why your frame is white is because your game uses one of the white GUI themes, and frames use the "gui/frame.png" image by default (which in this case is white).Code: Select all
frame: background Solid("#000")
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]