Ren'Py memo

Ren'Pyの個人的なメモ

選択肢の数によって位置をずらす

参照:
Pythonでリストのサイズ(要素数)を取得 | note.nkmk.me

screen choice(items):
    style_prefix "choice"

    vbox:
        if len(items) == 2:
            yalign 0.3
        else:
            yalign 0.15

pythonのlen()で選択肢の数を取得し、ifでyalignの位置をずらす。