马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
[RenPy] 纯文本查看 复制代码 ## Screen with Stats Button
screen gameUI:
imagebutton:
xalign 1.0
yalign 0.0
xoffset -30
yoffset 30
auto "UI/map_%s.png"
action Jump ("call_mapUI")
# You may also use the code below depending on your needs.
# action ShowMenu("mapUI")
# This was the same code used in the vlog.
# If you just want to show a map that does nothing more than just an indicator, it's good to use ShowMenu.
# If you want to navigate using the map, it's prefered to use "call".
# When in skip mode (tab key on keyboard), this prevents the game to be skipped.
label call_mapUI:
call screen MapUI
screen MapUI:
add "map/bg map.jpg"
imagebutton:
xpos 618
ypos 570
idle "map/house1_idle.png"
hover "map/house1_hover.png"
action Jump("house1_pressed")
imagebutton:
xpos 596
ypos 165
idle "map/house2_idle.png"
hover "map/house2_hover.png"
action Jump("house2_pressed")
[RenPy] 纯文本查看 复制代码 label start:
# use the code below to show the "map" button
show screen gameUI
"The game UI is apprearing."
"test2"
return
label house1_pressed:
scene bg classroom
"House 1 was pressed!"
jump after_house_choice
label house2_pressed:
"House 2 was pressed!"
jump after_house_choice
label after_house_choice:
"Tada!"
return
这是一个地图的按钮,点击它可以进入新的场景,但是这个按钮会一直显示在我们的游戏中,假如我要在新的一段对话隐藏这个地图按钮怎么办?详细的代码和GUI文件我已经上传到百度网盘有需要可以直接下载,然后在新建工程中测试,如果你有能力解决请发出你的支付宝收款码,我看到了会立刻转过去,最后感谢大家阅读此贴。
链接:https://pan.baidu.com/s/1TCYVUfYhvV-ROR39vHgqkA
提取码:c14o
|