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)
local upperText = strupper(which)
local lowerText = strlower(which)
for _, holder in pairs(E.CreatedMovers) do
if show then
if (holder.mover.name == which) or strlower(holder.mover.textString) == lowerText then
holder.mover:Show()
break -- we just are doing one
elseif holder.types[upperText] then
holder.mover:Show() -- we are showing a group
end
local single = (holder.mover.name == which) or strlower(holder.mover.textString) == lowerText
local group = holder.types[upperText]
if show and (single or group) then
holder.mover:Show()
else
holder.mover:Hide()
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