|
|
@ -631,8 +631,17 @@ function render_savedlists_editor() |
|
|
|
if (imgui.Selectable(name, imgui.GetVarValue(variables['var_SelectedSavedList'][1]) == x)) then |
|
|
|
if (imgui.Selectable(name, imgui.GetVarValue(variables['var_SelectedSavedList'][1]) == x)) then |
|
|
|
imgui.SetVarValue(variables['var_SelectedSavedList'][1], x); |
|
|
|
imgui.SetVarValue(variables['var_SelectedSavedList'][1], x); |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Handle saved list item double click.. |
|
|
|
|
|
|
|
if (imgui.IsItemHovered() and imgui.IsMouseDoubleClicked(0)) then |
|
|
|
|
|
|
|
if (imgui.GetVarValue(variables['var_SelectedSavedList'][1]) >= 0) then |
|
|
|
|
|
|
|
local index = imgui.GetVarValue(variables['var_SelectedSavedList'][1]); |
|
|
|
|
|
|
|
lists.load_list(index); |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if (#lists.saved_lists <= 0) then |
|
|
|
if (#lists.saved_lists <= 0) then |
|
|
|
imgui.PushTextWrapPos(0); |
|
|
|
imgui.PushTextWrapPos(0); |
|
|
|
imgui.TextColored(1.0, 0.4, 0.4, 1.0, 'There are currently no saved lists to display here!'); |
|
|
|
imgui.TextColored(1.0, 0.4, 0.4, 1.0, 'There are currently no saved lists to display here!'); |
|
|
|