Currently im creating my own module, I was successful doing it but, I want to more flexibility in it
right now all I can do is this in the main.lua
local comboB = comboBox.newComboBox(whateverIsInside) comboBox:setBorderColor(whateverIsInside)
my Module is like this :
local M = {} function M.newComboBox(params) --Whatever is inside end function M:setBorderColor(params) --Whatever is Inside end return M
What I want to do is like this in the main.lua
local comboB = comboBox.newComboBox(whateverIsInside) comboB:setBorderColor(whateverisinside) comboB.x = infinity
just like in the display API which looks like this
local text = display.newText("asdasd",100,100,native.font,32) text.x = infinity text:setFillColor(1,0,0)
and I can do this:
print(text.text)
thanks