Mercurial > wow > ouroloot
diff gui.lua @ 3:2753b9763882
Add bossmod selection UI to options. Widen the notes field a bit.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 22 Apr 2011 02:13:18 +0000 |
parents | fe437e761ef8 |
children | 05caaf17b3ca |
line wrap: on
line diff
--- a/gui.lua Fri Apr 22 01:34:47 2011 +0000 +++ b/gui.lua Fri Apr 22 02:13:18 2011 +0000 @@ -776,7 +776,7 @@ }, { -- col 3 name = "Notes", - width = 160, + width = 250, }, } @@ -870,6 +870,8 @@ st:OuroLoot_Refresh() st_widget:WrapST(st) + st_widget.head_offset = 15 + st_widget.tail_offset = 0 if OuroLootSV_opts.scroll_to_bottom then local scrollbar = _G[st.scrollframe:GetName().."ScrollBar"] @@ -997,7 +999,7 @@ }, { -- col 3 name = "When", - width = 160, + width = 250, DoCellUpdate = hist_st_col3_DoCellUpdate, }, } @@ -1375,6 +1377,31 @@ grp:AddChild(pair) end + -- boss mod selection + w = GUI:Create("Spacer") + w:SetFullWidth(true) + w:SetHeight(20) + grp:AddChild(w) + do + local list = {} + local current + for k,v in ipairs(addon.bossmods) do + list[k] = v.n + if v.n == OuroLootSV_opts.bossmod then + current = k + end + end + w = mkbutton("Dropdown", nil, "", [[Which 'boss mod' to use.]]) + w:SetRelativeWidth(0.2) + w:SetLabel("Boss Mod:") + w:SetList(list) + w:SetValue(current) + w:SetCallback("OnValueChanged", function(_w,event,choice) + OuroLootSV_opts.bossmod = list[choice] + end) + grp:AddChild(w) + end + -- item filter w = GUI:Create("Spacer") w:SetFullWidth(true)