Mercurial > wow > askmrrobot
diff ui/AmrUiDropDown.lua @ 61:cf2b6b9a8337 v23
6.2 update, shopping list bug fixes, ui scale option
author | yellowfive |
---|---|
date | Tue, 23 Jun 2015 00:27:21 -0700 |
parents | 01b63b8ed811 |
children | a892c863c86a |
line wrap: on
line diff
--- a/ui/AmrUiDropDown.lua Sun Jun 07 15:20:25 2015 -0700 +++ b/ui/AmrUiDropDown.lua Tue Jun 23 00:27:21 2015 -0700 @@ -51,6 +51,7 @@ self:SetWidth(200) self:SetDisabled(false) self:SetFont(Amr.CreateFont("Regular", 14, Amr.Colors.Text)) + self:SetItems() self:SelectItem() self.frame:ClearAllPoints() self.list:Hide() @@ -158,10 +159,11 @@ self.items[i] = item end + item:Show() item:SetNormalFontObject(Amr.CreateFont(obj.selected and "Bold" or "Regular", obj.selected and self.fontHeight + 2 or self.fontHeight, obj.color or Amr.Colors.White, 1)) item:SetText(obj.text) item.value = obj.value - + if prev then item:SetPoint("TOP", prev, "BOTTOM") else