- changed the 'update period' slider to represent number of updates per second instead of seconds between updates. now higher is more frequent and lower is less frequent which makes more sense to users

This commit is contained in:
Parnic
2010-11-05 00:52:39 +00:00
parent 1fb57acba1
commit 1766a587e1
2 changed files with 7 additions and 7 deletions

View File

@ -604,16 +604,16 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
updatePeriod = {
type = 'range',
name = L["Update Period"],
desc = L["Time between display updates in seconds"],
desc = L["Number of updates per second. The higher this number is, the smoother bars will animate. However, higher settings will also use more CPU, so balance it to your liking. 30 is the recommended setting."],
get = function()
return IceHUD.IceCore:UpdatePeriod()
return math.ceil(1/IceHUD.IceCore:UpdatePeriod())
end,
set = function(info, v)
IceHUD.IceCore:SetUpdatePeriod(v)
IceHUD.IceCore:SetUpdatePeriod(1/v)
end,
min = 0,
max = 1,
step = 0.001,
min = 5,
max = 60,
step = 1,
order = 97
},