我想通过native.showAlert()让用户知道他在游戏中通过最后一点点显示一些文字来赢得生命。
警报的代码是
native.showAlert( "Hi!", "Thank you for playing! Here's one extra life as a gift for your next game. Enjoy!" , {"OK"}, lifegift )
我想在享受之后表现出一颗心。我怎么做?它可以是表情符号或图像。感谢
p.s。:现在只为iOS构建
答案 0 :(得分:2)
你只是想在你的电晕SDK警报上展示一颗心吗? 如果您使用的是mac,那么您只需执行以下操作:
native.showAlert( "Hi!", "You got an extra ♥ " , {"OK"}, lifegift )
看起来像这样:
您可以从this等各种网站获取不同的符号。
继续编码...........:)