Skip to content

Commit

Permalink
show attached menu on hover (#4196)
Browse files Browse the repository at this point in the history
* show attLabels on Hover

* hide custom menu if no menu items
  • Loading branch information
Edru2 committed Oct 23, 2020
1 parent c0d3faf commit 286a48b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mudlet-lua/lua/geyser/GeyserAdjustableContainer.lua
Expand Up @@ -111,10 +111,10 @@ function Adjustable.Container:onClick(label, event)
label:showMenuLabel("attLabel")
end

if table.index_of(self.rCLabel.nestedLabels, self.customItemsLabel) and not self.customItemsLabel.nestedLabels then
if not self.customItemsLabel.nestedLabels then
label:hideMenuLabel("customItemsLabel")
else
label:showMenuLabel("customItemsLabel")
label:showMenuLabel("customItemsLabel")
end
end
label:onRightClick(event)
Expand Down Expand Up @@ -612,6 +612,7 @@ function Adjustable.Container:onEnterAtt()
self.att[i]:setClickCallback("Adjustable.Container.attachToBorder", self, attm[i])
self.attLabel.nestedLabels[#self.attLabel.nestedLabels+1] = self.att[i]
end
doNestShow(self.attLabel)
end
-- internal function to create the Minimize/Close and the right click Menu Labels
Expand Down

0 comments on commit 286a48b

Please sign in to comment.