Search found 7 matches

by marine
Wed May 10, 2023 7:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How to change the textbox when players entre their information
Replies: 5
Views: 524

Re: How to change the textbox when players entre their information

I think that is why I try screen input(prompt) and not work Can you explain what does not work? Note, that the default background for the window style does not change if you change the window size. For example, you can specify it as frame for scaling: screen input(prompt): style_prefix "input&...
by marine
Wed May 10, 2023 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: does not change variable
Replies: 5
Views: 428

Re: does not change variable

First of all, why do you think that sizevalue does not change? It does. Second, why do you think that textbox_height should change? It shouldn't. default sizevalue =500 define gui.textbox_height = sizevalue # Here both sizevalue and textbox_height equal to 500 sizevalue = 900 # here sizevalue is eq...
by marine
Wed May 10, 2023 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: does not change variable
Replies: 5
Views: 428

Re: does not change variable

timepatches wrote: Wed May 10, 2023 10:29 am If a value is going to be changed, you need to use default when you initialise it, not define.
Thanks! but when I tried default with szievalue, it comes with an error message telling me that sizevalue is not defined.
by marine
Wed May 10, 2023 10:58 am
Forum: Ren'Py Questions and Announcements
Topic: does not change variable
Replies: 5
Views: 428

Re: does not change variable

Thanks! but I had tried to use default, but it only gives error message name is not defined.
by marine
Wed May 10, 2023 10:26 am
Forum: Ren'Py Questions and Announcements
Topic: does not change variable
Replies: 5
Views: 428

does not change variable

Hi, could someone help me with this code? Basically, I want to change the GUI textbox depending on the scenario. I named two variables int, size and sizevalue. The size controls which scenario the if statement goes into, and sizevalue controls the actual size of the textbox height. However, whatever...
by marine
Wed May 10, 2023 7:30 am
Forum: Ren'Py Questions and Announcements
Topic: How to change the textbox when players entre their information
Replies: 5
Views: 524

Re: How to change the textbox when players entre their information

Sorry, my input is kind of complicated, because I require the player to write a long dialogue, and then store it outside of the game. Therefore, I actually use python to do this input, which the code end like this: python: import os.path import os savePath = config.basedir + "/resource/" i...
by marine
Tue May 09, 2023 9:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How to change the textbox when players entre their information
Replies: 5
Views: 524

How to change the textbox when players entre their information

May I ask how could I change the size of the textbox when players entre their information? I tried to look around forums and Renpy Document and wiki. As a result, I produce some sort of code like this: In screen.rpy file: screen say(who, what): style_prefix "say" window: id "window&qu...