/trunk/RDX/RosterMgr/Sets/SetClass
}); |
end |
table.sort(qq, function(x1,x2) return tostring(x1.text) < tostring(x2.text); end); |
VFL.poptree:Begin(150, 12, frame, point, dx, dy); |
VFL.poptree:Begin(250, 12, frame, point, dx, dy); |
VFL.poptree:Expand(nil, qq, 20); |
end |
name = "cd_avail", |
title = VFLI.i18n("Cooldown Available"), |
GetUI = function(parent, desc) |
local ui = VFLUI.LabeledEdit:new(parent, 150); |
local ui = VFLUI.LabeledEdit:new(parent, 250); |
ui:SetText(VFLI.i18n("Cooldown Name")); ui:Show(); |
if desc and desc.cd then |
local cdinfo = RDXCD.GetCooldownInfoBySpellid(desc.cd); |
btn:SetHeight(25); btn:SetWidth(25); btn:SetText("..."); |
btn:SetPoint("RIGHT", ui.editBox, "LEFT"); btn:Show(); |
btn:SetScript("OnClick", function() |
RDXDAL.CooldownCachePopup(RDXCD.GetCDC(), function(x) |
RDXDAL.CooldownCachePopup(RDXCD.GetCDCs(), function(x) |
if x then ui.editBox:SetText(x.text); end |
end, btn, "CENTER"); |
end); |
name = "cd_used", |
title = VFLI.i18n("Cooldown Used"), |
GetUI = function(parent, desc) |
local ui = VFLUI.LabeledEdit:new(parent, 150); |
local ui = VFLUI.LabeledEdit:new(parent, 250); |
ui:SetText(VFLI.i18n("Cooldown Name")); ui:Show(); |
if desc and desc.cd then |
local cdinfo = RDXCD.GetCooldownInfoBySpellid(desc.cd); |
btn:SetHeight(25); btn:SetWidth(25); btn:SetText("..."); |
btn:SetPoint("RIGHT", ui.editBox, "LEFT"); btn:Show(); |
btn:SetScript("OnClick", function() |
RDXDAL.CooldownCachePopup(RDXCD.GetCDC(), function(x) |
RDXDAL.CooldownCachePopup(RDXCD.GetCDCs(), function(x) |
if x then ui.editBox:SetText(x.text); end |
end, btn, "CENTER"); |
end); |