- Added four more abbreviation types.
- Abbreviations now are applied on all numbers in the bar. - Minimum amount of instances was lowered to 3. - Fixed issue where the instance menu wasn't respecting the amount limit of instances. - Added options for cutomize the right text of a row. - Added a option to be able to chance the framestrata of an window. - Added shift, ctrl, alt interaction for rows which shows all spells, targets or pets when pressed. - Fixed a issue where changing the alpha of a window makes it disappear on the next logon. - Added a option for auto transparency to ignore rows. - Added option to be able to set shadow on the attribute text. - Fixed a issue with window snap where disabled statusbar makes a gap between the windows. - Fixed issue where mini displayes wasn't saved and back to default values on every logon. - Mini display 'instance segment' now have a option to show the encounter name instead the number of the segment. - Added a new experimental library called hotcorners, this library create a menu hidden on the top left corner. - New API: instance:GetId() return the id of the instance.
This commit is contained in:
@@ -74,7 +74,57 @@
|
||||
end
|
||||
return _string_format ("%.0f", numero)
|
||||
end
|
||||
|
||||
function _detalhes:ToKMin (numero)
|
||||
if (numero > 1000000) then
|
||||
return _string_format ("%.2f", numero/1000000) .."m"
|
||||
elseif (numero > 1000) then
|
||||
return _string_format ("%.1f", numero/1000) .."k"
|
||||
end
|
||||
return _string_format ("%.1f", numero)
|
||||
end
|
||||
function _detalhes:ToK2Min (numero)
|
||||
if (numero > 999999) then
|
||||
return _string_format ("%.2f", numero/1000000) .. "m"
|
||||
elseif (numero > 99999) then
|
||||
return _math_floor (numero/1000) .. "k"
|
||||
elseif (numero > 999) then
|
||||
return _string_format ("%.1f", (numero/1000)) .. "k"
|
||||
end
|
||||
return _string_format ("%.1f", numero)
|
||||
end
|
||||
--> short numbers no numbers after comma
|
||||
function _detalhes:ToK0Min (numero)
|
||||
if (numero > 1000000) then
|
||||
return _string_format ("%.0f", numero/1000000) .."m"
|
||||
elseif (numero > 1000) then
|
||||
return _string_format ("%.0f", numero/1000) .."k"
|
||||
end
|
||||
return _string_format ("%.0f", numero)
|
||||
end
|
||||
--> no changes
|
||||
function _detalhes:NoToK (numero)
|
||||
return numero
|
||||
end
|
||||
|
||||
_detalhes.ToKFunctions = {_detalhes.NoToK, _detalhes.ToK, _detalhes.ToK2, _detalhes.ToK0, _detalhes.ToKMin, _detalhes.ToK2Min, _detalhes.ToK0Min}
|
||||
|
||||
function string:ReplaceData (...)
|
||||
local args = {...}
|
||||
local function getarg (i)
|
||||
local n = tonumber (i)
|
||||
if (n) then
|
||||
return args [tonumber(i)]
|
||||
else
|
||||
return loadstring (i)()
|
||||
end
|
||||
end
|
||||
return (self:gsub('{data(%d+)}', getarg):gsub ('{func(.-)}', getarg))
|
||||
end
|
||||
|
||||
--local usertext = "i got the time: {data2}, {data3}% of {data1} minutes"
|
||||
--local expanded = usertext:expand(50000, 1000, 20)
|
||||
|
||||
--> remove a index from a hash table
|
||||
function _detalhes:tableRemove (tabela, indexName)
|
||||
local newtable = {}
|
||||
|
||||
Reference in New Issue
Block a user