EYHN / hexo-helper-live2d

Add the Sseexxyyy live2d to your hexo!
GNU General Public License v2.0
3.86k stars 470 forks source link

关于waifu-tips.js #137

Open Yanstory opened 5 years ago

Yanstory commented 5 years ago

这个页面里有供live2d使用的waifu-tips.js,可以给live2d小人添加(基于鼠标动作的)文字浮动框。

这个插件支持waifu-tips.js吗?或者怎样可以集成到插件里?

EYHN commented 5 years ago

很抱歉!让您久等了

我在 https://github.com/xiazeyu/live2d-widget.js/commit/d700ae349cc8ea254d08f4f246d5319e92155dad 实现了一个简单的 hitokoto 示例。 image

现在将你的 hexo-helper-live2d 升级到 3.1.1 ,然后如下修改设置,可以体验此功能

live2d:
  enable: true
  dialog:
    enable: true
    hitokoto: true

关于会话框后续更新请关注 https://github.com/xiazeyu/live2d-widget.js/issues/48

yanickxia commented 4 years ago

@EYHN 可否配置脚本,好像如下方式无效

 dialog:
    enable: true
    hitokoto: true
    script:
      'every 2s': '$hitokoto'
      'tap face': 'text2'
      'tap body': 'text3'