You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localfilePath="/basalt.lua" --here you can change the file path default: basaltifnot(fs.exists(filePath))thenshell.run("pastebin run ESs1mg7P packed true "..filePath:gsub(".lua", "")) -- this is an alternative to the wget commandendlocalbasalt=require(filePath:gsub(".lua", ""))
localmain=basalt.createFrame("mainFrame")
localfunctionvisual_button(btn)
btn:onClick(function(self) btn:setBackground(colors.black) btn:setForeground(colors.lightGray) end)
btn:onClickUp(function(self) btn:setBackground(colors.gray) btn:setForeground(colors.black) end)
btn:onLoseFocus(function(self) btn:setBackground(colors.gray) btn:setForeground(colors.black) end)
endlocalworking_frame=main:addFrame("working_frame")
:setPosition(2, 2)
:setSize(20, 10)
:setBackground(colors.black)
-- This will work fine (notice that it's done before adding the children).
:setZIndex(1000)
localworking_input=working_frame:addInput("input")
:setPosition(2, 2)
:setSize(18, 1)
:setDefaultText("Search Text")
localworking_button=working_frame:addButton("button")
:setPosition(2, 4)
:setSize(18, 1)
:setValue("Search")
visual_button(working_button)
localnot_working_frame=main:addFrame("not_working_frame")
:setPosition(23, 2)
:setSize(20, 10)
:setBackground(colors.black)
localnot_working_input=not_working_frame:addInput("input")
:setPosition(2, 2)
:setSize(18, 1)
:setDefaultText("Search Text")
localnot_working_button=not_working_frame:addButton("button")
:setPosition(2, 4)
:setSize(18, 1)
:setValue("Search")
visual_button(not_working_button)
-- This will effectively disable the children (notice that it's done after adding the children).not_working_frame:setZIndex(1000)
main:show()
basalt.autoUpdate()
Expected behavior
Children being interactable after changing the ZIndex of parent.
Checklist
[X] I am running the latest version.
The text was updated successfully, but these errors were encountered:
Hello - thank you for the bug report! The bug got fixed in 37dde88 i guess. Maybe you can also test it. I tested it and the "not_working_frame" works fine after the fix. You need to redownload basalt. The fix got added to the master branch.
Minimal Working Example
Minecraft_.1.16.5.-.Singleplayer.2022-11-22.04-31-52.mp4
Expected behavior
Children being interactable after changing the ZIndex of parent.
Checklist
[X] I am running the latest version.
The text was updated successfully, but these errors were encountered: