Commit 0d1e3679 authored by Simpy's avatar Simpy 🐹
Browse files

fix dropdown when using moveui

parent 15ed20dc
...@@ -380,13 +380,10 @@ function E:ToggleMovers(show, which) ...@@ -380,13 +380,10 @@ function E:ToggleMovers(show, which)
local upperText = strupper(which) local upperText = strupper(which)
local lowerText = strlower(which) local lowerText = strlower(which)
for _, holder in pairs(E.CreatedMovers) do for _, holder in pairs(E.CreatedMovers) do
if show then local single = (holder.mover.name == which) or strlower(holder.mover.textString) == lowerText
if (holder.mover.name == which) or strlower(holder.mover.textString) == lowerText then local group = holder.types[upperText]
holder.mover:Show() if show and (single or group) then
break -- we just are doing one holder.mover:Show()
elseif holder.types[upperText] then
holder.mover:Show() -- we are showing a group
end
else else
holder.mover:Hide() holder.mover:Hide()
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment