本帖最后由 怀念丶落樱 于 2021-12-29 20:46 编辑
直接新建一个工程,清空script内的所有内容,将我的发的复制进去,启动试试吧,然后自己改一下按钮的位置吧
不想要按钮可以用 hotspot 做一个图片按钮弄个小一些的图片,图片要有边框图片中心透明,将数字框进去,图片长宽自己掌握。我用的是图片的按钮。
发起提问输入标题下方有选项栏,选项栏倒数第二个,就是企鹅前面的那个<>符号,你可以直接将代码粘贴在那里发出来。
[RenPy] 纯文本查看 复制代码
default a = "0"
default b = "0"
label start:
call screen aa
return
#两个按钮
screen aa:
fixed:
xcenter 0.4
ycenter 0.356
xsize 640
ysize 360
textbutton "输入1":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action Jump ('hh')
fixed:
xcenter 0.5
ycenter 0.356
xsize 640
ysize 360
textbutton "输入2":
text_size 20 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action Jump ('xx')
fixed:
xcenter 0.30
ycenter 0.356
xsize 640
ysize 360
text "[a]"
fixed:
xcenter 0.45
ycenter 0.356
xsize 640
ysize 360
text "[b]"
label hh:
call screen hh
screen hh:
fixed:
xcenter 0.4
ycenter 0.356
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')
fixed:
xcenter 0.30
ycenter 0.356
xsize 640
ysize 360
vbox:
input value VariableInputValue("a")
label xx:
call screen xx
screen xx:
fixed:
xcenter 0.5
ycenter 0.356
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')
fixed:
xcenter 0.45
ycenter 0.356
xsize 640
ysize 360
vbox:
input value VariableInputValue("b")
|