So I made a custom frame textbox and I'm trying to figure out how to rescale it.
Documentation says that I go to options.rpy but there's none of the lines of code there...
Any help would be good.
Resize Frame textbox...
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.
-
- Newbie
- Posts: 5
- Joined: Sat Jun 17, 2017 6:47 pm
- Contact:
Re: Resize Frame textbox...
I assum you are using the new gui, so just edit your image to be a desireble size, name it "textbox.png" and replace the original file in game\gui folder of your project by it.
Check the documentation for other customization - https://www.renpy.org/doc/html/gui.html
Check the documentation for other customization - https://www.renpy.org/doc/html/gui.html
- shakeyss
- Newbie
- Posts: 17
- Joined: Sun Jun 11, 2017 10:58 am
- Projects: Moonlit Tears
- Organization: Digilikha Studios
- Soundcloud: shakeyss
- itch: digilikha
- Location: Philippines
- Contact:
Re: Resize Frame textbox...
I did it in one of my frames.
I just
Cheers
I just
Code: Select all
frame xpos 150 ypos 100:
#Frame style
style "content_frame"
#Other codes here
style content_frame:
#The size of this image will be the size of your frame so if the image is 300 x 300, then so is your frame
background "image.png"
-
- Newbie
- Posts: 5
- Joined: Sat Jun 17, 2017 6:47 pm
- Contact:
Re: Resize Frame textbox...
So I can't resize a textbox using Renpy?Alex wrote:I assum you are using the new gui, so just edit your image to be a desireble size, name it "textbox.png" and replace the original file in game\gui folder of your project by it.
Check the documentation for other customization - https://www.renpy.org/doc/html/gui.html
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3791
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Resize Frame textbox...
You don't "need" to. Juat redraw the art asset how you'd like it, and adjust the text alignment in your script files.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Resize Frame textbox...
Well, you can (if you need so) - check screens.rpy line about 133emanueljoab wrote: So I can't resize a textbox using Renpy?
Code: Select all
style window:
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Frame("my_image.png", 3,3, xalign=0.5, yalign=1.0) #<--- instead of the original Image("gui/textbox.png", xalign=0.5, yalign=1.0)
https://www.renpy.org/doc/html/displayables.html#Frame
Re: Resize Frame textbox...
Im also having the same problem . I change my sceen size so it can fit the smartphone . But that cost me my chatbox/textbox , it so small that makes the textbox unbalance with the screen .
And tried tweak in on screen.rpy / option.rpy and nothings help.
I tried above solution and wasnt working either.
Any help?
Oh and im using the old GUI
And tried tweak in on screen.rpy / option.rpy and nothings help.
I tried above solution and wasnt working either.
Any help?
Oh and im using the old GUI
Who is online
Users browsing this forum: Google [Bot]