local formats = {"100/100", "100%", "100/100 (100%)"} |
|
local defaults = { |
profile = { |
alpha = 1, |
scale = 1, |
font = "Friz Quadrata TT", |
bg = "brushed", |
bgColor = {r=.09, g=.09, b=.19}, --TOOLTIP_DEFAULT_BACKGROUND_COLOR |
border = "Seerah Solid", |
borderWidth = 2.5, |
inset = 0, |
classColor = true, |
itemColor = true, |
borderColor = {r=.6, g=.6, b=.6, a=1}, |
healthBar = "TipTop Default", |
sbarbg = "TipTop Default", |
sbarbgcolor = {r=0, g=0, b=0, a=.4}, |
topBar = false, |
raidIconSize = 16, |
raidIconPosition = "TOP", |
raidIconX = "0", |
raidIconY = "0", |
onCursor = false, |
anchor = "BOTTOMRIGHT", |
offsetX = "-2", |
offsetY = "109", |
showTargetText = true, |
you = true, |
showTalentText = true, |
healthText = true, |
textformat = "100%", |
}, |
alpha = 1, |
scale = 1, |
font = "Friz Quadrata TT", |
bg = "brushed", |
bgColor = {r=.09, g=.09, b=.19}, --TOOLTIP_DEFAULT_BACKGROUND_COLOR |
border = "Seerah Solid", |
borderWidth = 2.5, |
inset = 0, |
classColor = true, |
itemColor = true, |
borderColor = {r=.6, g=.6, b=.6, a=1}, |
healthBar = "TipTop Default", |
sbarbg = "TipTop Default", |
sbarbgcolor = {r=0, g=0, b=0, a=.4}, |
topBar = false, |
raidIconSize = 16, |
raidIconPosition = "TOP", |
raidIconX = "0", |
raidIconY = "0", |
onCursor = false, |
anchor = "BOTTOMRIGHT", |
offsetX = "-2", |
offsetY = "109", |
showTargetText = true, |
you = true, |
showTalentText = true, |
healthText = true, |
textformat = "100%", |
} |
|
|
local function SetUpDB() |
if TipTopPCDB.charSpec then |
--set defaults if new charSpec DB |
for k,v in pairs(defaults) do |
if type(TipTopPCDB[k]) == "nil" then |
TipTopPCDB[k] = v |
end |
end |
db = TipTopPCDB |
else |
db = TipTopDB |
end |
end |
|
local function ConfirmProfilePopup() |
if not StaticPopupDialogs["TIPTOP_PROFILE"] then |
StaticPopupDialogs["TIPTOP_PROFILE"] = { |
text = "Are you sure you want to change your profile and reload your UI?", |
button1 = "Yes", |
button2 = "No", |
OnAccept = function() ReloadUI() end, |
OnCancel = function() |
TipTopPCDB.charSpec = not TipTopPCDB.charSpec |
LibStub("AceConfigRegistry-3.0"):NotifyChange("TipTop") |
print("Your profile switch has been cancelled.") |
end, |
timeout = 0, |
whileDead = 1, |
hideOnEscape = 1 |
} |
end |
StaticPopup_Show("TIPTOP_PROFILE") |
end |
|
|
local options = { |
name = "TipTop Options", |
type = "group", |