IgorTimofeev/MineOS

Combo box buttons don't pass themselves when pressed

cadergator10 opened this issue · 3 comments

Basically a repeat of this one #529

Posting because this returned again

Smok1e commented

All seems fine to me with this example

local GUI = require("GUI")
local system = require("System")

local workspace, window, menu = system.addWindow(GUI.filledWindow(1, 1, 60, 20, 0x242424))

local layout = window:addChild(GUI.layout(1, 1, window.width, window.height, 1, 1))

local comboBox = layout:addChild(GUI.comboBox(1, 1, 36, 3, 0xE1E1E1, 0x696969, 0xD2D2D2, 0xA5A5A5))
comboBox:addItem("test").onTouch = function(workspace, button)
	button.text = "pressed"
	workspace:draw()
end

workspace:draw()

Make sure of using the latest MineOS version

Yeah scrap what I said. It works now, but idk what had even happened I didn't even update it. It just randomly decided to stop then start working lol

Intermittent failures are never fun to debug