coronasdk - Corona SDK : show emoji/images on native. showAlert()

标签 coronasdk

我想让我的游戏中的用户知道,通过使用 native.showAlert() 显示一些末尾带有小爱心的文本,他赢得了一条生命。

警报代码是

native.showAlert( "Hi!", "Thank you for playing! Here's one extra life as a gift for your next game. Enjoy!" , {"OK"}, lifegift )

我想在享受之后表现出一颗心。我怎么做?它可以是表情符号或图像。谢谢

附注:目前仅针对 iOS 构建

最佳答案

您只是想在 Corona SDK 警报上显示一颗心吗? 如果您使用的是 Mac,那么您可以简单地执行以下操作:

native.showAlert( "Hi!", "You got an extra ♥ " , {"OK"}, lifegift )

它看起来像这样:

enter image description here

您可以从不同的网站获取不同的符号,例如 this .

继续编码............:)

关于coronasdk - Corona SDK : show emoji/images on native. showAlert(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24461969/

相关文章:

lua - Corona SDK 级别 : Can't integrate my level into Storyboard - Assertion Failed error

lua - Corona SDK 中的水平 ScrollView

image - 电晕中的 display.newImage() 与 display.newImageRect()

iphone - Lua 中的 addEventListener()

algorithm - 流式免费游戏随机关卡创建用什么?

android - 用于 iOS 和 Android 开发的 Corona vs Titanium

coronasdk - 避免在 Corona SDK 中发生碰撞

ios - 应用程序加载器 : No Eligible Software

lua - 另一个类的方法调用Lua

lua - 图像显示在 Corona Simulator 的左上角