如何在Lua的电晕中制作自定义按钮 [英] How to make custom buttons in corona, Lua
问题描述
我正在尝试制作一个具有如下所示屏幕的移动应用程序:
I'm trying to make a mobile application with a screen that looks like this:
我正在使用Corona制作,它是用Lua语言编写的
I'm making this using Corona, it's written in the Lua language
这是按钮的可滚动列表,我对滚动方面有些了解.我现在遇到的问题是制作一个可以包含多行文本和图像的按钮.我一直在搜索小时,但是什么也没找到(我可能找不到东西).我想我必须创建一个自定义按钮,但是我不知道该怎么做.我很乐意为此提供帮助,无论是链接还是解释它的一些文本行,非常感谢!
It's a scrollable list of buttons, I somewhat understand the scroll aspect. What I'm having problems now is making a button that can have more than one line of text and also an image. I've literally been searching for hour but haven't found anything (I'm probably bad at finding things). I think I'd have to create a custom button but I have no idea how to do this. I would appreciate some help with this be it a link or just some lines of text explaining it, thank you so much!
推荐答案
找到了一个解决方案,widget.newTable完美地做到了
Found a solution, widget.newTable does this perfectly
这篇关于如何在Lua的电晕中制作自定义按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!