本帖最后由 怀念丶落樱 于 2021-6-6 20:22 编辑
不用找人了。我弄出来了[RenPy] 纯文本查看 复制代码 #script.rpy文件内
define imgPath = "1"
label start:
scene a
call screen a
#z.rpy文件内
screen z:
fixed:
xcenter 0.35
ycenter 0.35
xsize 640
ysize 360
textbutton "回":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action Jump ("start")
#x.rpy文件内
label cc:
image iraImg:
"[imgPath]"
scene iraImg
call screen z
#a.rpy文件内
screen a:
fixed:
xcenter 0.35
ycenter 0.35
xsize 640
ysize 360
textbutton "男":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action SetVariable ("imgPath",1)
fixed:
xcenter 0.5
ycenter 0.35
xsize 640
ysize 360
textbutton "女":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action SetVariable ("imgPath",2)
text "[imgPath]"
fixed:
xcenter 0.6
ycenter 0.35
xsize 640
ysize 360
textbutton "确定":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action Jump ("cc")
|