Mercurial > wow > ouroloot
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:fe437e761ef8 | 3:2753b9763882 |
---|---|
774 width = 130, | 774 width = 130, |
775 DoCellUpdate = eoi_st_col2_DoCellUpdate, | 775 DoCellUpdate = eoi_st_col2_DoCellUpdate, |
776 }, | 776 }, |
777 { -- col 3 | 777 { -- col 3 |
778 name = "Notes", | 778 name = "Notes", |
779 width = 160, | 779 width = 250, |
780 }, | 780 }, |
781 } | 781 } |
782 | 782 |
783 local rowfilter_all | 783 local rowfilter_all |
784 local rowfilter_by_name = function (st, e) | 784 local rowfilter_by_name = function (st, e) |
868 _d:SetUserData ("player filter clear", rowfilter_all) | 868 _d:SetUserData ("player filter clear", rowfilter_all) |
869 _d:SetUserData ("player filter by name", rowfilter_by_name) | 869 _d:SetUserData ("player filter by name", rowfilter_by_name) |
870 | 870 |
871 st:OuroLoot_Refresh() | 871 st:OuroLoot_Refresh() |
872 st_widget:WrapST(st) | 872 st_widget:WrapST(st) |
873 st_widget.head_offset = 15 | |
874 st_widget.tail_offset = 0 | |
873 | 875 |
874 if OuroLootSV_opts.scroll_to_bottom then | 876 if OuroLootSV_opts.scroll_to_bottom then |
875 local scrollbar = _G[st.scrollframe:GetName().."ScrollBar"] | 877 local scrollbar = _G[st.scrollframe:GetName().."ScrollBar"] |
876 if scrollbar then | 878 if scrollbar then |
877 local _,max = scrollbar:GetMinMaxValues() | 879 local _,max = scrollbar:GetMinMaxValues() |
995 width = 250, | 997 width = 250, |
996 DoCellUpdate = hist_st_col2_DoCellUpdate, | 998 DoCellUpdate = hist_st_col2_DoCellUpdate, |
997 }, | 999 }, |
998 { -- col 3 | 1000 { -- col 3 |
999 name = "When", | 1001 name = "When", |
1000 width = 160, | 1002 width = 250, |
1001 DoCellUpdate = hist_st_col3_DoCellUpdate, | 1003 DoCellUpdate = hist_st_col3_DoCellUpdate, |
1002 }, | 1004 }, |
1003 } | 1005 } |
1004 | 1006 |
1005 -- Loot column | 1007 -- Loot column |
1371 editbox:SetDisabled(not OuroLootSV_opts.keybinding) | 1373 editbox:SetDisabled(not OuroLootSV_opts.keybinding) |
1372 end) | 1374 end) |
1373 pair:AddChild(checkbox) | 1375 pair:AddChild(checkbox) |
1374 pair:AddChild(editbox) | 1376 pair:AddChild(editbox) |
1375 grp:AddChild(pair) | 1377 grp:AddChild(pair) |
1378 end | |
1379 | |
1380 -- boss mod selection | |
1381 w = GUI:Create("Spacer") | |
1382 w:SetFullWidth(true) | |
1383 w:SetHeight(20) | |
1384 grp:AddChild(w) | |
1385 do | |
1386 local list = {} | |
1387 local current | |
1388 for k,v in ipairs(addon.bossmods) do | |
1389 list[k] = v.n | |
1390 if v.n == OuroLootSV_opts.bossmod then | |
1391 current = k | |
1392 end | |
1393 end | |
1394 w = mkbutton("Dropdown", nil, "", [[Which 'boss mod' to use.]]) | |
1395 w:SetRelativeWidth(0.2) | |
1396 w:SetLabel("Boss Mod:") | |
1397 w:SetList(list) | |
1398 w:SetValue(current) | |
1399 w:SetCallback("OnValueChanged", function(_w,event,choice) | |
1400 OuroLootSV_opts.bossmod = list[choice] | |
1401 end) | |
1402 grp:AddChild(w) | |
1376 end | 1403 end |
1377 | 1404 |
1378 -- item filter | 1405 -- item filter |
1379 w = GUI:Create("Spacer") | 1406 w = GUI:Create("Spacer") |
1380 w:SetFullWidth(true) | 1407 w:SetFullWidth(true) |