Mercurial > wow > ouroloot
comparison gui.lua @ 20:d89aeb6b9f9e
Put in slower but portable loot pattern matching, finally.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Thu, 01 Sep 2011 02:03:14 +0000 |
parents | f560cf82e7d3 |
children | 8664134bba4f |
comparison
equal
deleted
inserted
replaced
19:f560cf82e7d3 | 20:d89aeb6b9f9e |
---|---|
1402 w = mkbutton("GC", [[full GC cycle]]) | 1402 w = mkbutton("GC", [[full GC cycle]]) |
1403 w:SetRelativeWidth(0.1) | 1403 w:SetRelativeWidth(0.1) |
1404 w:SetCallback("OnClick", function() collectgarbage() end) | 1404 w:SetCallback("OnClick", function() collectgarbage() end) |
1405 grp:AddChild(w) | 1405 grp:AddChild(w) |
1406 | 1406 |
1407 --[==[ this has been well and truly debugged by now | |
1407 w = mkbutton("EditBox", nil, addon.loot_pattern:sub(17), [[]]) | 1408 w = mkbutton("EditBox", nil, addon.loot_pattern:sub(17), [[]]) |
1408 w:SetRelativeWidth(0.35) | 1409 w:SetRelativeWidth(0.35) |
1409 w:SetLabel("CML pattern suffix") | 1410 w:SetLabel("CML pattern suffix") |
1410 w:SetCallback("OnEnterPressed", function(_w,event,value) | 1411 w:SetCallback("OnEnterPressed", function(_w,event,value) |
1411 addon.loot_pattern = addon.loot_pattern:sub(1,16) .. value | 1412 addon.loot_pattern = addon.loot_pattern:sub(1,16) .. value |
1412 end) | 1413 end) |
1413 grp:AddChild(w) | 1414 grp:AddChild(w) ]==] |
1415 | |
1416 w = GUI:Create("Spacer") w:SetFullWidth(true) w:SetHeight(1) grp:AddChild(w) | |
1414 | 1417 |
1415 local simple = GUI:Create("SimpleGroup") | 1418 local simple = GUI:Create("SimpleGroup") |
1416 simple:SetLayout("List") | 1419 simple:SetLayout("List") |
1417 simple:SetRelativeWidth(0.3) | 1420 simple:SetRelativeWidth(0.3) |
1418 w = GUI:Create("CheckBoxSmallLabel") | 1421 w = GUI:Create("CheckBoxSmallLabel") |