Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Fixed encapsulation of two Item definitions #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NativeUI/NativeUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,7 @@ function UIMenu:Draw()
if #self.Items <= self.Pagination.Total + 1 then
local ItemOffset = self.Subtitle.ExtraY - 37 + WindowHeight
for index = 1, #self.Items do
Item = self.Items[index]
local Item = self.Items[index]
Item:Position(ItemOffset)
Item:Draw()
ItemOffset = ItemOffset + self:CalculateItemHeightOffset(Item)
Expand All @@ -3266,7 +3266,7 @@ function UIMenu:Draw()
local ItemOffset = self.Subtitle.ExtraY - 37 + WindowHeight
for index = self.Pagination.Min + 1, self.Pagination.Max, 1 do
if self.Items[index] then
Item = self.Items[index]
local Item = self.Items[index]
Item:Position(ItemOffset)
Item:Draw()
ItemOffset = ItemOffset + self:CalculateItemHeightOffset(Item)
Expand Down