Search found 5 matches

by thorskin
Wed Oct 19, 2022 1:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Spacing problem in a hbox
Replies: 2
Views: 141

Re: Spacing problem in a hbox

fixed: xfill True It half worked, correct spacing but I could not have the buttons on the right side of the box. I have removed the width. You were right when saying that width disabled spacing. Then I used xanchor 1.0 to position the right side of the hbox hbox : ypos 0 ysize 200 xanchor 1.0 xpos ...
by thorskin
Wed Oct 19, 2022 7:52 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Spacing problem in a hbox
Replies: 2
Views: 141

[solved] Spacing problem in a hbox

I have defined a hbox like this : hbox : ypos 0 ysize 200 xpos 1100 xsize 800 box_reverse True spacing 10 with a variable number of imagebuttons all of the same size. The buttons are displayed starting from the right as intended but with a variable spacing to use the full width of the hbox I want th...
by thorskin
Sun Oct 16, 2022 7:14 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Use a variable as a tag in show statement
Replies: 4
Views: 191

Re: [SOLVED]Use a variable as a tag in show statement

My first attempt was : $ renpy.show(thestring[index], tag = "girl[index]") thinking that interpolation would work and that the tags would be "girl1","girl2" ... but actually interpolation does not work here and the tags were always "girl[index]" and I was only seeing the last one in the list. actual...
by thorskin
Sun Oct 16, 2022 6:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Use a variable as a tag in show statement
Replies: 4
Views: 191

[SOLVED] Use a variable as a tag in show statement

Thanks,
$ renpy.show(thestring[index], tag = mytags[index])

I already tried this syntax but was getting an error : name 'mytags[index]' is not defined
and I thought my syntax was wrong.
But the error was elsewhere : the mytags array was empty when this line was called.
by thorskin
Sat Oct 15, 2022 9:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Use a variable as a tag in show statement
Replies: 4
Views: 191

[SOLVED]Use a variable as a tag in show statement

I have a complex scene with different characters who can have different poses and clothing For each character I create a string with the image name (png file) and use : label start : $ index = 0 while index < 10 show expression thestring[index] $ index = index + 1 Now I want to add a tag to each cha...