找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 14499|回复: 1

[已解决] 关于imagesmap无法点击的问题

[复制链接]
发表于 2018-4-1 17:32:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 法海叔叔 于 2018-4-1 17:38 编辑

代码如下,为何我的imagemap无法点击?用imagebutton是没有问题的,但用map可以节省好多代码,但……问题出现了,无法点击,只是显示。
[RenPy] 纯文本查看 复制代码
screen home_imgbnt:
    hbox xpos 30 yalign 1.0 yoffset -30:
        imagemap:
            auto "home_imgbtn_%s.png"
            hotspot (0, 120, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]
            hotspot (0, 140, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]
            hotspot (0, 280, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]
label home4:
    show screen home_imgbnt
    show screen dday
    scene bathroom 
    #"你来到了洗手间"
    menu:
        "洗澡":
            jump meeting
        "刷牙":
            jump home
        "离开":
            jump home




 楼主| 发表于 2018-4-1 17:44:24 | 显示全部楼层
明白了,x,y写反了。应该是这样的。我简直是蠢
[RenPy] 纯文本查看 复制代码
            hotspot (0, 0, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]
            hotspot (140, 0, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]
            hotspot (280, 0, 120, 120) action [Hide("home_imgbnt"), Jump("home2")]



回复 支持 抱歉

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-4-23 23:30 , Processed in 0.096015 second(s), 22 queries , File On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表