Search found 55 matches

by Georgine
Tue Apr 22, 2014 1:39 am
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

I just figured it out, it wasn't working because I'm an idiot. XD There's another frame about 2 pages up for a completely different area, and somewhere along the line I tabbed the entire section with the frame I was having trouble with one indentation in, so the entire thing was getting the mins and...
by Georgine
Tue Apr 22, 2014 1:24 am
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

Hmm, that might be it- here's my styles section:

Code: Select all

        style.characternames = Style(style.frame)
        style.characternames_button.xmaximum=300
        style.characternames_button.xminimum=300
        style.characternames_button.ymaximum=20
        style.characternames_button.yminimum=20
by Georgine
Tue Apr 22, 2014 1:01 am
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

Oh, and in case I'm mis-using the syntax, to clarify I specified it with area() as follows:

Code: Select all

viewport:
                    area (0, 0, 310, 900)
by Georgine
Tue Apr 22, 2014 12:08 am
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

No visible effect- it has the same configuration as with x/yfill or no specified size.
by Georgine
Mon Apr 21, 2014 11:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

I can see some blue frame behind the viewport now, but the actual size remains the same as if I don't specify xfill/yfill or the maximums at all.
by Georgine
Mon Apr 21, 2014 11:24 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

Re: How do you resize a viewport?

Hmm, vbox: xminimum 310 yminimum 900 xmaximum 310 ymaximum 900 Runs, but looks identical to the version without it, and viewport: xminimum 310 yminimum 900 pops an error saying that xminimum and yminimum are not a valid child for viewport.
by Georgine
Mon Apr 21, 2014 11:07 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you resize a viewport?
Replies: 12
Views: 1264

How do you resize a viewport?

I'm using a vbox inside a viewport as a menu, as follows: frame: style_group "characternames" yalign 0.9 has vbox: viewport: mousewheel True scrollbars "vertical" vbox: xmaximum 310 ymaximum 900 for i in range(Character_list): textbutton Character_name[i] I am trying to size the ...
by Georgine
Sun Apr 20, 2014 11:14 pm
Forum: Ren'Py Questions and Announcements
Topic: ToggleVariable not changing boolean
Replies: 1
Views: 268

Re: ToggleVariable not changing boolean

I have no clue what happened, as I haven't changed a thing, but now it works perfectly- chalk this up to me being incompetent. :D
by Georgine
Sun Apr 20, 2014 10:54 pm
Forum: Ren'Py Questions and Announcements
Topic: ToggleVariable not changing boolean
Replies: 1
Views: 268

ToggleVariable not changing boolean

I'm trying to make buttons in the UI toggle menus on and off- if a menu is closed, clicking the corresponding button opens the menu, and if the menu is open clicking the same button closes it. Right now I have: textbutton "Phone book" action [If ((Phone_directory_open==False), true=Show(&q...
by Georgine
Sun Apr 20, 2014 7:45 am
Forum: Ren'Py Questions and Announcements
Topic: Coercing to Unicode error
Replies: 6
Views: 1106

Re: Coercing to Unicode error

Ooh perfect- thank you so much. :)
by Georgine
Sun Apr 20, 2014 7:25 am
Forum: Ren'Py Questions and Announcements
Topic: Coercing to Unicode error
Replies: 6
Views: 1106

Re: Coercing to Unicode error

That works absolutely perfectly, thank you!

I do notice that when I build a distribution to test it, my images and txt files are included as-is. Is there an easy way to fold them into some kind of binary to keep end users from playing around with them?
by Georgine
Sun Apr 20, 2014 7:01 am
Forum: Ren'Py Questions and Announcements
Topic: Coercing to Unicode error
Replies: 6
Views: 1106

Re: Coercing to Unicode error

Ooh that makes sense. Applying your change makes it run fine, but the data comes out a bit funky- if Names.txt contains: Bob Smith Ivan And I run the following: text Stat_first_name[Selected_character] + "'s status" The first two names come out as "Bob☐ 's status" and "Smith...
by Georgine
Sun Apr 20, 2014 6:44 am
Forum: Ren'Py Questions and Announcements
Topic: Coercing to Unicode error
Replies: 6
Views: 1106

Coercing to Unicode error

I'm writing a Python function to open a line-delimited txt file (for instance, a list of character's names) and populate a list with the data in that file. The function is: def Set_List_From_File(list_to_write, file_name): f = open(renpy.file("resources/"+str(file_name))) for line in f: li...
by Georgine
Fri Apr 11, 2014 11:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Can buttons set variables?
Replies: 2
Views: 487

Re: Can buttons set variables?

Ooh perfect, thank you so much (and again) :)
by Georgine
Fri Apr 11, 2014 8:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Can buttons set variables?
Replies: 2
Views: 487

Can buttons set variables?

My immediate question is whether a text or imagebutton's action can be used to directly set a variable, but the obvious question it also implies is: is there documentation on the wiki specifically delineating what an action can and cannot do? http://www.renpy.org/doc/html/screens.html#button is the ...