hmmm... sounds like a good solutionYou must be registered to see the links
You create the frame in an image editor. It's not dynamic, it's an image file. The border is defined by what properties you use when creating it.
Like the page says, you add the image and the Borders() to a Frame().hmmm... sounds like a good solution
but how do I add image to Borders()?
I feel like I do smth wrong...Like the page says, you add the image and the Borders() to a Frame().
frame:
background Frame("Screenshot_2.png", Borders(40, 40, 40, 40))
text "hello" style "teststyle"
I can't remember off the top of my head the exact syntax, but I think it needs to be:I feel like I do smth wrong...
this is my code but with it I get this output (screenshot below)Code:frame: background Frame("Screenshot_2.png", Borders(40, 40, 40, 40)) text "hello" style "teststyle"
border image is a simple grey 24x24 picture, font size is 300
Frame("Screenshot_2.png", Borders(40, 40, 40, 40)):
text "hello" style "teststyle"
"'Frame' is not a keyword argument blah, blah, blah"I can't remember off the top of my head the exact syntax, but I think it needs to be:
You're not adding it to another frame, you're replacing the frame with a custom one.Code:Frame("Screenshot_2.png", Borders(40, 40, 40, 40)): text "hello" style "teststyle"
Then I'm not sure. I know you can add it as a custom displayable with "add Frame()" but it won't take children then. Ren'py's screen language may just be hardcoded to use the image in "gui/frame.png", I'm not sure. In that you'll just need to replace the image itself and set the borders in the config file."'Frame' is not a keyword argument blah, blah, blah"
the main problem with changing gui stuff is that it will be changed everywhere... but I need it to be changed only hereThen I'm not sure. I know you can add it as a custom displayable with "add Frame()" but it won't take children then. Ren'py's screen language may just be hardcoded to use the image in "gui/frame.png", I'm not sure. In that you'll just need to replace the image itself and set the borders in the config file.
upd: tried to doThen I'm not sure. I know you can add it as a custom displayable with "add Frame()" but it won't take children then. Ren'py's screen language may just be hardcoded to use the image in "gui/frame.png", I'm not sure. In that you'll just need to replace the image itself and set the borders in the config file.
add Frame("Screenshot_2.png", Borders(4, 4, 4, 4))
Welcome to Ren'py development. It's 1% ideas, 99% trying to decipher shitty documentation for a solution to a simple problem.upd: tried to dobut it sill just gives me an upscaled copy of my frame imageCode:add Frame("Screenshot_2.png", Borders(4, 4, 4, 4))
screen TestScreen:
frame:
background Frame("custom_frame.png")
padding (100, 100)
xfill False
yfill False
add "image.png"
frame:
background Frame("custom_frame.png", Borders(20, 20, 20, 20))
padding (20, 20, 20, 20)
xfill False
yfill False
add "image.png"