Will there ever be docking support for Window widgets?
I know this will probably be a complicated feature to add but it would be amazing to dock a settings panel to the right while messing with settings. I know this is already possible by well moving the window and resizing it but still I think it could be a great addition.
Not in the near future. Iāve had less time recently to devote to it, but as we get most of the widgets out and finished, Iām interested in pursuing this line.
I donāt quite understand your use case here. If you want two checkboxes to have the same state, then you can just use one. If they are going to be linked, then why do they each need their own state?
i cannot seem to wrap my head around in what order widgets are added.
What iām trying to do is have as many text widgets in each tree as there are trees.
for example when i press the button once there will be 1 tree with 1 text widget inside.
if i press it a second time there should be 2 trees with each tree having 2 text widgets inside and so on. However when i press it a third time the order seems to mess up and it gets worse the more i press it.
Code
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Iris = require(ReplicatedStorage.Iris).Init()
local trees = 0
Iris:Connect(function()
Iris.Window({"Window"}, { size = Vector2.new(250, 300) })
do
if Iris.Button("Add tree").clicked() then
trees += 1
end
for i = 1, trees do
Iris.Tree("Tree_" .. i)
do
for i2 = 1, trees do
Iris.Indent()
do
Iris.Text("Text_" .. i2)
end
Iris.End()
end
end
Iris.End()
end
end
Iris.End()
end)
expected behaviour when pressing the button twice:
however when i press it a third time it results in this
it should be
If anyone could tell me what iām doing wrong i would really appreciate it.
I wonder how heād think if he looks back at this two years later.
Outputting is quite inconvenient⦠and a rookie thing. I was a rookie that did not discover that Watch panels exists just to watch the variables real-time and see where things get messed up.
This could just make it easier to watch variables in-game on the Roblox client outside of Studio.
turns out i use Iris quite often, so this time iāve decided to get into themes. i donāt really like the separation of colors to options, but i had to deal with it ig.
iāve simplified the work anyway to generate the theme from 2 simple colors: background and accent. the colors i used are my⦠iād say brand ones.
feel free to use the generator function, just credit me!
iris is generating an id depending on stack of the lines from traceback whereās action is made.
iāve just found it easier to override it with the one i find more unique depending on a context.