BLARGH, frustratingly close but I've been trying to resist the urge to start rebuilding all of the hack/gui/widgets.lua chunks I need, recently I got the pieces to show up and act like they might want to work when I tried reversing the order they are displayed but it's still not wanting to pass the input-or-choice from one dialog to the other, which I feel like there is an obvious trick I'm missing for but even trying to steal an example of it from other scripts I've had no luck:
function GmEditorUi:find_type()
local list={}
for i in pairs(df) do
table.insert(list,{text=('%s'):format(tostring(df[i]), i), type=i})
end
guiScript.start(function()
dialog.showInputPrompt("Testing","Value to find:",COLOR_WHITE,"",
function()
dialog.showListPrompt("Select type to find:",nil,COLOR_WHITE,list,
function()
local key = self:currentTarget()
self:pushTarget(df.key.find("..input.."))
end)
end)
end)
end
Gone through a bunch of iterations incidentally, tried stripping it down to just the dialogs, tried having it call a "just select_type" function from a find_type one, tried copying bits of the various similar scripts in gm-editor itself, but I still can't get it to pass the values on properly, just gives the "attempt to index a nil value" for something I just assigned a value for in the prior steps.