0 Members and 1 Guest are viewing this topic.
function SceneUpdate() if wormhp == 0 then level() endend function level() xp = xp + 1end
if widgetNoFocus == false then if self.widgets[self.widgetFocus].typeBox == "NumberBox" then -- Concatenamos el nuevo caracter. self.widgets[self.widgetFocus].text = self.widgets[self.widgetFocus].text .. char
numberBoxj = NumberBox(70, "CENTER") numberBoxL = NumberBox(70, "CENTER") MASTERBOX:addWidget(numberBoxj) MASTERBOX:addWidget(numberBoxL)
var.store("qi",NumberBox[numberBoxQ].text)
attempt to index field '?' (a nil value)
var.store("qi",NumberBox_numberBoxQ.text)
attempt to index global 'NumberBox_numberBoxQ' (a nil value)
Heya and welcome here. I think I saw this software on Ticalc.org recently. It seemed pretty nice in general. There is also wzGUILib but I think that is for C programmers. Good luck!
-- Class definition systemclass = function(prototype) local derived = {} local derivedMT = { __index = prototype, __call = function(proto, ...) local instance = {} local instanceMT = { __index = derived, __call = function() return nil, "attempt to invoke an instance of a class" end, } setmetatable(instance, instanceMT) if instance.init then instance:init(...) end return instance end, } setmetatable(derived, derivedMT) return derivedend