Skip to content

Commit

Permalink
Always call End of the Layouter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Jun 22, 2024
1 parent 5bd048c commit e1f2606
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/ui/game/cursor/Adjacency.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ UnitAdjacencyLabel = ClassUI(Group) {
LayoutHelpers.LayoutFor(self.UnitIcon)
:Over(self, 1)
:Fill(self)
:End()

LayoutHelpers.LayoutFor(self.UnitBackground)
:Under(self.UnitIcon, 1)
:Fill(self)
:End()

LayoutHelpers.LayoutFor(self.UnitStrategicIcon)
:Over(self.UnitIcon, 1)
:Fill(self)
:End()
end,

---@param self UIUnitAdjacencyLabel
Expand Down Expand Up @@ -138,6 +141,7 @@ UnitAdjacencyLabel = ClassUI(Group) {
LayoutHelpers.LayoutFor(self)
:Width(ratio * standardPixels)
:Height(ratio * standardPixels)
:End()
end,

--- Positions the label on top of a unit.
Expand Down

0 comments on commit e1f2606

Please sign in to comment.