找到以前的帖子了,这个问题解决了!我会将修改后的代码放在下面!
以下是修改后的代码!
define x = 0
screen a:
fixed:
xcenter 0.5
ycenter 0.5
xsize 640
ysize 360
vbox:
add "images/Untitled.png" xcenter 0.5
textbutton "加1":
text_size 40 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action [SetVariable("x",x+1),Jump ('sheet1')]
textbutton "加2":
text_size 40 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "ffcce0"
text_hover_color "#ffffff"
action [SetVariable("x",x+2),Jump ('sheet2')]
text"[x]"size 40 outlines [(absolute(2),"#000",absolute(0),absolute(0))] color "ffcce0" hover_color "#ffffff"
|