/
end |
end |
if not scrollPanel.curSel then |
if not scrollPanel.curSel or not scrollPanel.profileMap[scrollPanel.curSel] then |
scrollPanel.curSel = curProfile |
end |
local curSel = scrollPanel.curSel |
edit:ClearFocus() |
if scrollPanel.curSel and NeedToKnowOptions.IsProfileNameAvailable(newName) then |
local keyNew = NeedToKnow.CreateProfile(CopyTable(scrollPanel.profileMap[curSel].ref), nil, newName) |
NeedToKnow.ChangeProfile(NeedToKnow_Globals[keyNew]) |
NeedToKnow.ChangeProfile(keyNew) |
NeedToKnowOptions.RebuildProfileList(panel) |
edit:SetText(""); |
print("NeedToKnow: Copied",curSel,"to",newName,"and made it the active profile") |
} |
-- NEEDTOKNOW = {} is defined in the localization file, which must be loaded before this file |
NEEDTOKNOW.VERSION = "4.0.06" |
NEEDTOKNOW.VERSION = "4.0.07" |
NEEDTOKNOW.UPDATE_INTERVAL = 0.05 |
NEEDTOKNOW.MAXBARS = 20 |
## Interface: 050001 |
## Title: NeedToKnow |
## Author: Kitjan, lieandswell |
## Version: 4.0.06 |
## Version: 4.0.07 |
## Notes: Timer bars for buffs, debuffs, cooldowns, etc. |
## X-Credits: Bilt, Fxfighter EU-Echsenkessel, metalchoir, sp00n, Vlakarados, wowui.cn |
## X-Category: Buffs, Combat |