from retail
This commit is contained in:
+77
-2
@@ -101,6 +101,9 @@ Private.big_number_types = {
|
||||
["AbbreviateLargeNumbers"] = L["AbbreviateLargeNumbers (Blizzard)"]
|
||||
}
|
||||
|
||||
Private.big_number_types_with_disable = CopyTable(Private.big_number_types)
|
||||
Private.big_number_types_with_disable["disable"] = L["Disabled"]
|
||||
|
||||
Private.round_types = {
|
||||
floor = L["Floor"],
|
||||
ceil = L["Ceil"],
|
||||
@@ -282,6 +285,58 @@ Private.format_types = {
|
||||
end
|
||||
},
|
||||
--[[
|
||||
Money = {
|
||||
display = L["Money"],
|
||||
AddOptions = function(symbol, hidden, addOption)
|
||||
addOption(symbol .. "_money_format", {
|
||||
type = "select",
|
||||
name = L["Format Gold"],
|
||||
width = WeakAuras.normalWidth,
|
||||
values = Private.big_number_types_with_disable,
|
||||
hidden = hidden
|
||||
})
|
||||
addOption(symbol .. "_money_precision", {
|
||||
type = "select",
|
||||
name = L["Coin Precision"],
|
||||
width = WeakAuras.normalWidth,
|
||||
values = Private.money_precision_types,
|
||||
hidden = hidden
|
||||
})
|
||||
end,
|
||||
CreateFormatter = function(symbol, get)
|
||||
local format = get(symbol .. "_money_format", "AbbreviateNumbers")
|
||||
local precision = get(symbol .. "_money_precision", 3)
|
||||
|
||||
return function(value)
|
||||
local gold = floor(value / 1e4)
|
||||
local silver = floor(value / 100 % 100)
|
||||
local copper = value % 100
|
||||
|
||||
if (format == "AbbreviateNumbers") then
|
||||
gold = simpleFormatters.AbbreviateNumbers(gold)
|
||||
elseif (format == "BreakUpLargeNumbers") then
|
||||
gold = simpleFormatters.BreakUpLargeNumbers(gold)
|
||||
elseif (format == "AbbreviateLargeNumbers") then
|
||||
gold = simpleFormatters.AbbreviateLargeNumbers(gold)
|
||||
end
|
||||
|
||||
local formatCode
|
||||
if precision == 1 then
|
||||
formatCode = "%s%s"
|
||||
elseif precision == 2 then
|
||||
formatCode = "%s%s %d%s"
|
||||
else
|
||||
formatCode = "%s%s %d%s %d%s"
|
||||
end
|
||||
|
||||
return string.format(formatCode,
|
||||
tostring(gold), Private.coin_icons.gold,
|
||||
silver, Private.coin_icons.silver,
|
||||
copper, Private.coin_icons.copper
|
||||
)
|
||||
end
|
||||
end
|
||||
},
|
||||
BigNumber = {
|
||||
display = L["Big Number"],
|
||||
AddOptions = function(symbol, hidden, addOption)
|
||||
@@ -1170,6 +1225,24 @@ for id, str in pairs(Private.combatlog_spell_school_types) do
|
||||
Private.combatlog_spell_school_types_for_ui[id] = ("%.3d - %s"):format(id, str)
|
||||
end
|
||||
|
||||
Private.money_icons = {
|
||||
["gold"] = "interface/moneyframe/ui-goldicon",
|
||||
["silver"] = "interface/moneyframe/ui-silvericon",
|
||||
["copper"] = "interface/moneyframe/ui-coppericon"
|
||||
}
|
||||
|
||||
Private.coin_icons = {
|
||||
["gold"] = "|Tinterface/moneyframe/ui-goldicon:0|t",
|
||||
["silver"] = "|Tinterface/moneyframe/ui-silvericon:0|t",
|
||||
["copper"] = "|Tinterface/moneyframe/ui-coppericon:0|t"
|
||||
}
|
||||
|
||||
Private.money_precision_types = {
|
||||
[1] = "123 " .. Private.coin_icons.gold,
|
||||
[2] = "123 " .. Private.coin_icons.gold .. " 45 " .. Private.coin_icons.silver,
|
||||
[3] = "123 " .. Private.coin_icons.gold .. " 45 " .. Private.coin_icons.silver .. " 67 " .. Private.coin_icons.copper
|
||||
}
|
||||
|
||||
Private.item_quality_types = {
|
||||
[0] = ITEM_QUALITY0_DESC,
|
||||
[1] = ITEM_QUALITY1_DESC,
|
||||
@@ -2222,6 +2295,7 @@ Private.cast_types = {
|
||||
}
|
||||
|
||||
-- register sounds
|
||||
LSM:Register("sound", "Heartbeat Single", "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\HeartbeatSingle.ogg")
|
||||
LSM:Register("sound", "Batman Punch", "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\BatmanPunch.ogg")
|
||||
LSM:Register("sound", "Bike Horn", "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\BikeHorn.ogg")
|
||||
LSM:Register("sound", "Boxing Arena Gong", "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\BoxingArenaSound.ogg")
|
||||
@@ -2441,7 +2515,9 @@ Private.bufftrigger_2_progress_behavior_types = {
|
||||
|
||||
Private.bufftrigger_2_preferred_match_types = {
|
||||
showLowest = L["Least remaining time"],
|
||||
showHighest = L["Most remaining time"]
|
||||
showHighest = L["Most remaining time"],
|
||||
showLowestSpellId = L["Lowest Spell Id"],
|
||||
showHighestSpellId = L["Highest Spell Id"],
|
||||
}
|
||||
|
||||
Private.bufftrigger_2_per_unit_mode = {
|
||||
@@ -2800,7 +2876,6 @@ Private.author_option_fields = {
|
||||
header = {
|
||||
useName = false,
|
||||
text = "",
|
||||
noMerge = false
|
||||
},
|
||||
group = {
|
||||
groupType = "simple",
|
||||
|
||||
Reference in New Issue
Block a user