Resize Frame textbox...

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.
Post Reply
Message
Author
emanueljoab
Newbie
Posts: 5
Joined: Sat Jun 17, 2017 6:47 pm
Contact:

Resize Frame textbox...

#1 Post by emanueljoab »

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.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Resize Frame textbox...

#2 Post by Alex »

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

User avatar
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...

#3 Post by shakeyss »

I did it in one of my frames.

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"

Cheers

emanueljoab
Newbie
Posts: 5
Joined: Sat Jun 17, 2017 6:47 pm
Contact:

Re: Resize Frame textbox...

#4 Post by emanueljoab »

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
So I can't resize a textbox using Renpy?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Resize Frame textbox...

#5 Post by Imperf3kt »

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

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Resize Frame textbox...

#6 Post by Alex »

emanueljoab wrote: So I can't resize a textbox using Renpy?
Well, you can (if you need so) - check screens.rpy line about 133

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)
put the appropriate file name in last line (including path from game folder of your project, as usual).

https://www.renpy.org/doc/html/displayables.html#Frame

nixrlz
Newbie
Posts: 5
Joined: Sun Aug 13, 2017 11:50 am
Contact:

Re: Resize Frame textbox...

#7 Post by nixrlz »

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

Post Reply

Who is online

Users browsing this forum: Google [Bot]