UI example question

I may be missing something but here goes.

In the UI example you have the following line of code.

local ui = require(“ui”)

Where are the docs for ui?
[import]uid: 28709 topic_id: 9354 reply_id: 309354[/import]

I haven’t been able to find great documentation on ui. The only useful thing I’ve stumbled across is this sample code for a button.

  
local myButton = ui.newButton {  
 defaultSrc = "button.png" , defaultX = "50" , defaultY = "30",  
 overSrc = "buttonOver.png" , overX = "50" , overY = "30",  
 onEvent = myButtonHandler,  
 id = "myButton"  
}  
  

It seems as though the x and y parameters with stretch the image just like xScale or yScale would.

Hope this helps! [import]uid: 49205 topic_id: 9354 reply_id: 34212[/import]

I found the file ui.lua and understand now.
[import]uid: 28709 topic_id: 9354 reply_id: 34258[/import]

This file is outdated. Only Corona subscribers are able to access the new “Corona UI” library. [import]uid: 51516 topic_id: 9354 reply_id: 34262[/import]

Thanks for the heads up.

How do I find out what it supports and how complete or incomplete it is?
[import]uid: 28709 topic_id: 9354 reply_id: 34267[/import]

Don’t throw ui away just yet.

I believe Corona_ui is an enhancement, not a replacement.

Could be a replacement in future, but not yet.
I still use ui for buttons and some text stuff.

Non-gaming user/builder. [import]uid: 6547 topic_id: 9354 reply_id: 34328[/import]

Do you have some apps published that I can look at to see what’s possible as far as business ui?

Thanks [import]uid: 28709 topic_id: 9354 reply_id: 34427[/import]

None published yet.
Getting closer to take a crack at publishing as a free app though.

Basically a Parts Lookup based on entering year, make, mode, etc.

The Corona_UI gave me some of the pieces I was missing, I.e. pickwheel, tablelist, etc.

I hope to have it ready for submission to Apple next week, barring unforeseen hurdles in that scenario :slight_smile:

[import]uid: 6547 topic_id: 9354 reply_id: 34429[/import]

Cool, let us know when it’s ready.
[import]uid: 28709 topic_id: 9354 reply_id: 34436[/import]