Add methods to the states/allstates table that helps with creating,
updating or remove states in an optimized way

## Advantage of using this function instead of doing a states[key] = {
... }

- If already created, update existing state, and return true if any
value was changed, this can help reduce amount of resources an aura use

- Automatically `return true` when using these functions and any change
was made

## Examples

```Lua
function(states, event, ...)
    if event == "PLAYER_TARGET_CHANGED" then
        if UnitExists("target") then
            -- if state exists it's updated, not replaced
            -- show & changed fields can be skipped
            states:Update("", {
                    name = UnitName("target"),
                    duration = 5,
                    expirationTime = GetTime() + 5,
                    progressType = "timed",
                    autoHide = true
            })
        else
            -- wipe
            states:RemoveAll()
        end
    end
    -- no need to return true
end
```

with clones

```Lua
function(states, event, ...)
    local currentEssence = UnitPower("player", Enum.PowerType.Essence)
    local maxEssence = UnitPowerMax("player", Enum.PowerType.Essence)
    for i = 1, 6 do
        if i > maxEssence then
            states:Remove(i) -- wipe allstates[6]
        else
            local value = currentEssence >= i and 1 or 0
            local newState = {
                progressType = "static",
                value = value,
                total = 1
            }
            states:Update(i, newState)
        end
    end
    -- no need to return true
end
```
This commit is contained in:
NoM0Re
2025-02-24 22:10:45 +01:00
committed by GitHub
parent 0e0c49ec70
commit 7c7869494e
22 changed files with 140 additions and 1689 deletions
+1 -137
View File
@@ -121,10 +121,8 @@ local L = WeakAuras.L
Enable this setting if you want this timer to be hidden, or when using a WeakAuras text to display the timer]=] ] = "冷却文本会根据原生界面设置(可能被某些插件改动)自动显示。当你想隐藏冷却文本时,或者使用WeakAuras文本替代冷却文本时,启用此设置。"
L["A Unit ID (e.g., party1)."] = "单位 ID(如 party1)。"
L["Ace: Funkeh, Nevcairiel"] = "Ace: Funkeh, Nevcairiel"
L["Actions"] = "动作"
L["Active Aura Filters and Info"] = "活跃光环过滤器与信息"
L["Actual Spec"] = "实际专精"
L["Add"] = "添加"
L["Add %s"] = "添加 %s"
L["Add a new display"] = "添加一个新的图示"
L["Add Condition"] = "添加条件"
@@ -147,7 +145,6 @@ Enable this setting if you want this timer to be hidden, or when using a WeakAur
L["All maintainers of the libraries we use, especially:"] = "我们使用的库的所有维护者,特别是:"
L["All of"] = "全部"
L["Allow Full Rotation"] = "允许完全旋转"
L["Alpha"] = "透明度"
L["Anchor"] = "锚点"
L["Anchor Mode"] = "定位模式"
L["Anchor Point"] = "锚点指向"
@@ -175,7 +172,6 @@ Enable this setting if you want this timer to be hidden, or when using a WeakAur
如果动画的持续时间设定为 |cFF00CC0010%|r,然后触发的增益没有持续时间,将不会播放开始动画.]=]
L["Animation Sequence"] = "动画序列"
L["Animation Start"] = "动画开始"
L["Animations"] = "动画"
L["Any of"] = "任意的"
L["Apply Template"] = "应用模板"
L["Arcane Orb"] = "奥术宝珠"
@@ -184,38 +180,27 @@ Enable this setting if you want this timer to be hidden, or when using a WeakAur
L["At a position a bit left of Right HUD position"] = "在右侧HUD偏左一点的位置。"
L["At the same position as Blizzard's spell alert"] = "与暴雪的法术警报在同一位置"
L["Attach to Foreground"] = "依附到前景"
L["Aura"] = "光环"
L[ [=[Aura is
Off Screen]=] ] = "光环在屏幕外"
L["Aura Name"] = "光环名称"
L["Aura Name Pattern"] = "光环名称规则匹配"
L["Aura Order"] = "光环顺序"
L["Aura received from: %s"] = "从%s处接收光环"
L["Aura Type"] = "光环类型"
L["Aura: '%s'"] = "光环:'%s'"
L["Author Options"] = "作者选项"
L["Auto-Clone (Show All Matches)"] = "自动克隆(显示所有符合项)"
L["Automatic"] = "自动"
L["Automatic length"] = "自动长度"
L["Available Voices are system specific"] = "可用的声音由系统决定"
L["Backdrop Color"] = "背景颜色"
L["Backdrop in Front"] = "背景在前"
L["Backdrop Style"] = "背景图案类型 "
L["Background"] = "背景"
L["Background Color"] = "背景色"
L["Background Inner"] = "背景内部"
L["Background Offset"] = "背景偏移"
L["Background Texture"] = "背景材质"
L["Bar Alpha"] = "进度条透明度"
L["Bar Color Settings"] = "进度条颜色设置"
L["Bar Color/Gradient Start"] = "进度条颜色/渐变开始颜色"
L["Bar Texture"] = "进度条材质"
L["Big Icon"] = "大图标"
L["Blend Mode"] = "混合模式"
L["Blizzard Cooldown Reduction"] = "原生冷却速度提高"
L["Blue Rune"] = "蓝色符文"
L["Blue Sparkle Orb"] = "蓝色闪光宝珠"
L["Border"] = "边框"
L["Border %s"] = "边框 %s"
L["Border Anchor"] = "边框锚点"
L["Border Color"] = "边框颜色"
@@ -225,34 +210,26 @@ Off Screen]=] ] = "光环在屏幕外"
L["Border Settings"] = "边框设置"
L["Border Size"] = "边框大小 "
L["Border Style"] = "边框风格"
L["Bottom"] = "底部"
L["Bottom Left"] = "左下"
L["Bottom Right"] = "右下"
L["Bracket Matching"] = "括号自动匹配"
L["Browse Wago, the largest collection of auras."] = "浏览Wago,最大的光环集合网站。"
L["By default this shows the information from the trigger selected via dynamic information. The information from a specific trigger can be shown via e.g. %2.p."] = "默认情况下,这会显示通过动态信息选择的触发器的信息。来自特定触发器的信息可以通过例如 %2.p 来显示。"
L["Can be a UID (e.g., party1)."] = "可以是单位 ID(例如:party1)。"
L["Can set to 0 if Columns * Width equal File Width"] = "如果列x宽度=文件宽度,可以设为0"
L["Can set to 0 if Rows * Height equal File Height"] = "如果行x高度=文件高度,可以设为0"
L["Cancel"] = "取消"
L["Case Insensitive"] = "大小写不敏感"
L["Cast by a Player Character"] = "玩家角色施放"
L["Categories to Update"] = "即将更新的类"
L["Center"] = "中间"
L["Changelog"] = "更新日志"
L["Chat Message"] = "聊天信息"
L["Chat with WeakAuras experts on our Discord server."] = "在我们的Discord服务器上与WeakAuras专家聊天。"
L["Check On..."] = "检查..."
L["Check out our wiki for a large collection of examples and snippets."] = "查看我们的Wiki,获取大量的例子与代码片段。"
L["Children:"] = "子项目:"
L["Choose"] = "选择"
L["Circular Texture %s"] = "圆形材质%s"
L["Class"] = "职业"
L["Clear Debug Logs"] = "清除调试日志"
L["Clear Saved Data"] = "清空已储存数据"
L["Clip Overlays"] = "裁剪覆盖层"
L["Clipped by Foreground"] = "被前景裁切"
L["Clockwise"] = "顺时针"
L["Close"] = "关闭"
L["Code Editor"] = "代码编辑器"
L["Collapse"] = "折叠"
@@ -260,7 +237,6 @@ Off Screen]=] ] = "光环在屏幕外"
L["Collapse all non-loaded displays"] = "折叠所有未载入的图示"
L["Collapse all pending Import"] = "折叠所有待定的导入"
L["Collapsible Group"] = "可折叠的组"
L["Color"] = "颜色"
L["color"] = "颜色"
L["Column Height"] = "行高度"
L["Column Space"] = "行空间"
@@ -272,39 +248,26 @@ Off Screen]=] ] = "光环在屏幕外"
L["Compare against the number of units affected."] = "比较受影响的单位数量"
L["Compatibility Options"] = "兼容性选项"
L["Compress"] = "压缩"
L["Conditions"] = "条件"
L["Configure what options appear on this panel."] = "配置哪些选项出现在此面板中"
L["Constant Factor"] = "常数因子"
L["Control-click to select multiple displays"] = "按住 Control 并点击来选择多个图示"
L["Controls the positioning and configuration of multiple displays at the same time"] = "同时控制多个图示的位置和设定"
L["Convert to..."] = "转换为..."
L["Cooldown Numbers might be added by WoW. You can configure these in the game settings."] = "冷却文本可能会被WoW添加。你可以在游戏设置中调整。"
L["Cooldown Reduction changes the duration of seconds instead of showing the real time seconds."] = "冷却速度提高将改变每秒的持续时间,而并非显示真实的冷却时间。"
L["Copy"] = "拷贝"
L["Copy settings..."] = "拷贝设置"
L["Copy to all auras"] = "拷贝至所有的光环"
L["Could not parse '%s'. Expected a table."] = "无法解析'%s',需要 table。"
L["Count"] = "计数 "
L["Counts the number of matches over all units."] = "计算所有单位上匹配的数量。"
L["Counts the number of matches per unit."] = "计算每个单位上匹配的数量。"
L["Create a Copy"] = "创建副本"
L["Creating buttons: "] = "创建按钮:"
L["Creating options: "] = "创建配置:"
L["Crop X"] = "裁剪X"
L["Crop Y"] = "裁剪Y"
L["Custom"] = "自定义"
L["Custom - Allows you to define a custom Lua function that returns a list of string values. %c1 will be replaced by the first value returned, %c2 by the second, etc."] = "自定义 - 允许您定义一个返回字符串值列表的自定义 Lua 函数。%c1 将被返回的第一个值替换,%c2 将被返回的第二个值替换,以此类推。"
L["Custom Anchor"] = "自定义锚点"
L["Custom Check"] = "自定义检查"
L["Custom Code"] = "自定义代码"
L["Custom Code Viewer"] = "自定义代码查看器"
L["Custom Color"] = "自定义颜色"
L["Custom Configuration"] = "自定义设置"
L["Custom Frames"] = "自定义框架"
L["Custom Function"] = "自定义函数"
L["Custom Grow"] = "自定义生长"
L["Custom Options"] = "自定义选项"
L["Custom Sort"] = "自定义排序"
L["Custom Trigger"] = "自定义触发器"
L["Custom trigger event tooltip"] = [=[选择用于检查自定义触发器的事件。
如果有多个事件,可以用逗号或空白分隔。
@@ -320,8 +283,6 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Custom Trigger: Ignore Lua Errors on OPTIONS event"] = "自定义触发器:忽略OPTIONS事件的Lua错误"
L["Custom Trigger: Send fake events instead of STATUS event"] = "自定义触发器:发送虚假事件而不是STATUS事件"
L["Custom Untrigger"] = "自定义取消触发器"
L["Custom Variables"] = "自定义变量"
L["Debuff Type"] = "减益类型"
L["Debug Log"] = "调试日志"
L["Debug Log:"] = "调试日志:"
L["Default"] = "默认"
@@ -332,14 +293,10 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Delete children and group"] = "删除子项目和组"
L["Delete Entry"] = "删除条目"
L["Deleting auras: "] = "正在删除光环:"
L["Desaturate"] = "褪色"
L["Description"] = "描述"
L["Description Text"] = "描述文本"
L["Determines how many entries can be in the table."] = "决定表格中可以有多少条目"
L["Differences"] = "差异"
L["Disabled"] = "禁用"
L["Disallow Entry Reordering"] = "不允许重新排列条目"
L["Display"] = "图示"
L["Display Name"] = "图示名称"
L["Display Text"] = "图示文本"
L["Displays a text, works best in combination with other displays"] = "显示一条文本,最好与其他显示效果结合运用"
@@ -353,7 +310,6 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Drag to move"] = "拖拽来移动"
L["Duplicate"] = "复制"
L["Duplicate All"] = "复制所有"
L["Duration"] = "持续时间"
L["Duration (s)"] = "持续时间"
L["Duration Info"] = "持续时间讯息"
L["Dynamic Duration"] = "动态时长"
@@ -365,7 +321,6 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Dynamic Text Replacements"] = "动态文本替换"
L["Ease Strength"] = "缓动强度"
L["Ease type"] = "缓动类型"
L["Edge"] = "边缘"
L["eliding"] = "省略"
L["Else If"] = "否则如果"
L["Else If %s"] = "否则如果 %s"
@@ -392,10 +347,8 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Entry limit"] = "条目限制"
L["Entry Name Source"] = "条目名称来源"
L["Event Type"] = "事件类型"
L["Event(s)"] = "事件(复数)"
L["Everything"] = "全部"
L["Exact Item Match"] = "严格物品匹配"
L["Exact Spell ID(s)"] = "精确法术 ID"
L["Exact Spell Match"] = "精确法术匹配"
L["Expand"] = "展开"
L["Expand all loaded displays"] = "展开所有已载入的图示"
@@ -409,11 +362,8 @@ UNIT_POWER, UNIT_AURA PLAYER_TARGET_CHANGED]=]
L["Extra Height"] = "额外高度"
L["Extra Width"] = "额外宽度"
L["Fade"] = "淡化"
L["Fade In"] = "淡入"
L["Fade Out"] = "淡出"
L["Fadeout Sound"] = "淡出声音"
L["Fadeout Time (seconds)"] = "淡出声音(秒)"
L["False"] = ""
L["Fetch Affected/Unaffected Names and Units"] = "获取受影响/未受影响的单位名称与单位"
L["Fetch Raid Mark Information"] = "获取团队标记信息"
L["Fetch Role Information"] = "获取职责信息"
@@ -443,12 +393,7 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Finishing..."] = "即将完成"
L["Fire Orb"] = "火焰宝珠"
L["Flat Framelevels"] = "共享框体层级"
L["Font"] = "字体"
L["Font Size"] = "字体大小"
L["Foreground"] = "前景"
L["Foreground Color"] = "前景色"
L["Foreground Texture"] = "前景材质"
L["Format"] = "格式"
L["Format for %s"] = "%s 的格式"
L["Found a Bug?"] = "发现了故障?"
L["Frame"] = "框体"
@@ -457,7 +402,6 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Frame Rate"] = "帧率"
L["Frame Strata"] = "框架层级"
L["Frame Width"] = "帧宽度"
L["Frequency"] = "频率"
L["Full Bar"] = "完整进度条"
L["Full Circle"] = "完整圆形"
L["Global Conditions"] = "全局条件"
@@ -465,14 +409,10 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Glow Action"] = "发光动作"
L["Glow Anchor"] = "发光锚点"
L["Glow Color"] = "发光颜色"
L["Glow External Element"] = "发光外部元素"
L["Glow Frame Type"] = "发光框体类型"
L["Glow Type"] = "发光类型"
L["Gradient End"] = "渐变结束颜色"
L["Gradient Orientation"] = "渐变方向"
L["Green Rune"] = "绿色符文"
L["Grid direction"] = "盒方向"
L["Group"] = ""
L["Group (verb)"] = "加入组"
L["Group Alpha"] = "组透明度"
L[ [=[Group and anchor each auras by frame.
@@ -503,25 +443,18 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Group Role"] = "团队职责"
L["Group Scale"] = "组缩放"
L["Group Settings"] = "组设置"
L["Group Type"] = "组类型"
L["Grow"] = "生长"
L["Hawk"] = ""
L["Height"] = "高度"
L["Help"] = "帮助"
L["Hide"] = "隐藏"
L["Hide Background"] = "隐藏背景"
L["Hide Glows applied by this aura"] = "隐藏由此光环应用的发光"
L["Hide on"] = "隐藏于"
L["Hide this group's children"] = "隐藏此组的子项目"
L["Hide Timer Text"] = "隐藏冷却文本"
L["Highlights"] = "高亮"
L["Horizontal Align"] = "水平对齐"
L["Horizontal Bar"] = "水平条"
L["Hostility"] = "敌对"
L["Huge Icon"] = "巨型图标"
L["Hybrid Position"] = "混合定位"
L["Hybrid Sort Mode"] = "混合排序模式"
L["Icon"] = "图标"
L["Icon - The icon associated with the display"] = "图标 - 与显示相关的图标"
L["Icon Info"] = "图标信息"
L["Icon Inset"] = "图标内嵌"
@@ -540,11 +473,8 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["If checked, then this space will span across multiple lines."] = "勾选后,此空白区域将横跨多行。"
L["If unchecked, then a default color will be used (usually yellow)"] = "如果不勾选,则使用默认颜色(通常是黄色)"
L["If unchecked, then this space will fill the entire line it is on in User Mode."] = "如果不勾选,则在用户模式下此空白区域将填充一整行。"
L["Ignore Dead"] = "忽略已死亡"
L["Ignore Disconnected"] = "忽略已离线"
L["Ignore out of casting range"] = "忽略超出施法范围"
L["Ignore out of checking range"] = "忽略超出检查范围"
L["Ignore Self"] = "忽略自身"
L["Ignore Wago updates"] = "忽略Wago更新"
L["Ignored"] = "被忽略"
L["Ignored Aura Name"] = "忽略光环名称"
@@ -561,11 +491,9 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Importing a group with %s child auras."] = "正在导入一个有%s个子光环的群组。"
L["Importing a stand-alone aura."] = "正在导入一个单独的光环。"
L["Importing...."] = "正在导入...."
L["Include Pets"] = "包括宠物"
L["Incompatible changes to group region types detected"] = "发现组类型修改导致的不兼容的改动"
L["Incompatible changes to group structure detected"] = "发现组结构修改导致的不兼容的改动"
L["Indent Size"] = "缩进"
L["Information"] = "信息"
L["Inner"] = "内部"
L["Insert text replacement codes to make text dynamic."] = "插入文本替换代码以使文本动态化。"
L["Invalid Item ID"] = "无效的物品 ID"
@@ -575,7 +503,6 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Invalid target aura"] = "无效目标光环"
L["Invalid type for '%s'. Expected 'bool', 'number', 'select', 'string', 'timer' or 'elapsedTimer'."] = "'%s'的类型无效,需要'bool'、'number'、'select'、'string'、'timer'或'elapsedTimer'。"
L["Invalid type for property '%s' in '%s'. Expected '%s'"] = "'%2$s'的属性'%1$s'类型非法,需要'%3$s'"
L["Inverse"] = "反向"
L["Inverse Slant"] = "反向倾斜"
L["Invert the direction of progress"] = "颠倒刷旋转方向"
L["Is Boss Debuff"] = "首领施放的减益效果"
@@ -587,47 +514,34 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Keep your Wago imports up to date with the Companion App."] = "利用Companion应用程序保持你的Wago导入最新。"
L["Large Input"] = "大输入框"
L["Leaf"] = "叶子"
L["Left"] = ""
L["Left 2 HUD position"] = "左侧第二 HUD 位置"
L["Left HUD position"] = "左侧 HUD 位置"
L["Length"] = "长度"
L["Length of |cFFFF0000%s|r"] = "长度|cFFFF0000%s|r"
L["LibCompress: Galmok"] = "LibCompress: Galmok"
L["LibCustomGlow: Dooez"] = "LibCustomGlow: Dooez"
L["LibDeflate: Yoursafety"] = "LibDeflate: Yoursafety"
L["LibDispel: Simpy"] = "LibDispel: Simpy"
L["LibSerialize: Sanjo"] = "LibSerialize: Sanjo"
L["LibSharedMedia"] = "LibSharedMedia"
L["Limit"] = "限制"
L["Line"] = ""
L["Linear Texture %s"] = "线性材质%s"
L["Lines & Particles"] = "线条和粒子"
L["Linked aura: "] = "关联光环:"
L["Load"] = "载入"
L["Loaded"] = "已载入"
L["Loaded/Standby"] = "已载入/已就绪"
L["Lock Positions"] = "锁定位置"
L["Loop"] = "循环"
L["Low Mana"] = "低法力值"
L["Magnetically Align"] = "磁力对齐"
L["Main"] = "主要的"
L["Manual"] = "手动"
L["Manual Icon"] = "手动图标"
L["Manual with %i/%i"] = "手动:%i/%i"
L["Match Count"] = "匹配计数"
L["Match Count per Unit"] = "每单位匹配计数"
L["Matches the height setting of a horizontal bar or width for a vertical bar."] = "符合水平进度条的高度设置,或者垂直进度条的宽度设置。"
L["Max"] = "最大"
L["Max Length"] = "最大长度"
L["Maximum"] = "最大值"
L["Media Type"] = "媒体类型"
L["Medium Icon"] = "中等图标"
L["Message"] = "信息"
L["Message Type"] = "信息类型"
L["Min"] = "最小"
L["Minimum"] = "最小值"
L["Mirror"] = "镜像"
L["Model"] = "模型"
L["Model %s"] = "模型 %s"
L["Model Picker"] = "模型选择器"
L["Model Settings"] = "模型设置"
@@ -654,22 +568,18 @@ Bleed classification via LibDispel]=] ] = "仅过滤给定类型的可驱散的
L["Name - The name of the display (usually an aura name), or the display's ID if there is no dynamic name"] = "名称 - 显示的名称(通常是光环名称),如果没有动态名称则为显示的 ID"
L["Name Info"] = "名称讯息"
L["Name Pattern Match"] = "名称规则匹配"
L["Name(s)"] = "名称"
L["Name:"] = "名称:"
L["Nameplates"] = "姓名板"
L["Negator"] = ""
L["New Aura"] = "新建"
L["New Template"] = "新模版"
L["New Value"] = "新值"
L["No Children"] = "没有子项目"
L["No Logs saved."] = "没有已保存的调试日志。"
L["None"] = ""
L["Not a table"] = "不是 table"
L["Not all children have the same value for this option"] = "并非所有子项目的此选项的值都一致"
L["Not Loaded"] = "未载入"
L["Note: Automated Messages to SAY and YELL are blocked outside of Instances."] = "注意:无法在副本外自动发送“说”与“大喊”信息。"
L["Note: This progress source does not provide a total value/duration. A total value/duration must be set via \"Set Maximum Progress\""] = "注意:此进度来源并未提供总进度/持续时间,所以必须通过“设置最大进度”提供。"
L["Npc ID"] = "NPC ID"
L["Number of Entries"] = "条目数"
L[ [=[Occurrence of the event, reset when aura is unloaded
Can be a range of values
@@ -710,10 +620,8 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["or"] = ""
L["or %s"] = "或者 %s"
L["Orange Rune"] = "橙色符文"
L["Orientation"] = "方向"
L["Our translators (too many to name)"] = "我们的翻译(太多了,无法一一列举)"
L["Outer"] = "外部"
L["Outline"] = "轮廓"
L["Overflow"] = "溢出"
L["Overlay %s Info"] = "覆盖层 %s 信息"
L["Overlays"] = "覆盖层"
@@ -737,7 +645,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Premade Auras"] = "预制光环"
L["Premade Snippets"] = "预设片段"
L["Preparing auras: "] = "正在准备光环:"
L["Preset"] = "预设"
L["Press Ctrl+C to copy"] = "按 Ctrl+C 复制"
L["Press Ctrl+C to copy the URL"] = "按 Ctrl+C 复制 URL"
L["Prevent Merging"] = "阻止合并"
@@ -745,13 +652,10 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Progress Bar"] = "进度条"
L["Progress Bar Settings"] = "进度条设置"
L["Progress Settings"] = "进度设置"
L["Progress Source"] = "进度来源"
L["Progress Texture"] = "进度条材质"
L["Progress Texture Settings"] = "进度条材质设置"
L["Purple Rune"] = "紫色符文"
L["Put this display in a group"] = "将此图示放到组中"
L["Radius"] = "半径"
L["Raid Role"] = "团队职责"
L["Range in yards"] = "距离码数"
L["Ready for Install"] = "准备安装"
L["Ready for Update"] = "准备更新"
@@ -759,7 +663,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Re-center Y"] = "到中心 Y 偏移"
L["Reciprocal TRIGGER:# requests will be ignored!"] = "相互的TRIGGER:#请求将被忽略!"
L["Regions of type \"%s\" are not supported."] = "%s 区域类型不被支持。"
L["Remaining Time"] = "剩余时间"
L["Remove"] = "移除"
L["Remove All Sounds"] = "移除所有音效"
L["Remove All Text To Speech"] = "移除所有文本转语音"
@@ -776,7 +679,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Reset all options to their default values."] = "重置所有选项为默认值"
L["Reset Entry"] = "重置条目"
L["Reset to Defaults"] = "重置为默认"
L["Right"] = ""
L["Right 2 HUD position"] = "右侧第二 HUD 位置"
L["Right HUD position"] = "右侧 HUD 位置"
L["Right-click for more options"] = "右键点击获得更多选项"
@@ -784,7 +686,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Rotate In"] = "旋转进入"
L["Rotate Out"] = "旋转退出"
L["Rotate Text"] = "旋转文字"
L["Rotation"] = "旋转"
L["Rotation Mode"] = "旋转模式"
L["Row Space"] = "列空间"
L["Row Width"] = "列宽度"
@@ -793,7 +694,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Same"] = "相同"
L["Same texture as Foreground"] = "与前景材质相同"
L["Saved Data"] = "已储存数据"
L["Scale"] = "缩放"
L["Scale Factor"] = "缩放因子"
L["Search API"] = "搜索API"
L["Select Talent"] = "选择天赋"
@@ -826,7 +726,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Show Matches for Units"] = "为单位显示匹配项"
L["Show Model"] = "显示模型"
L["Show model of unit "] = "显示该单位的模型"
L["Show On"] = "显示于"
L["Show Sound Setting"] = "显示声音设置"
L["Show Spark"] = "显示闪光效果"
L["Show Stop Motion"] = "显示定格动画"
@@ -850,7 +749,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Shows a texture that changes based on duration"] = "显示一个随持续时间而变的材质"
L["Shows nothing, except sub elements"] = "除子元素外,不显示任何内容"
L["Shows one or more lines of text, which can include dynamic information such as progress or stacks"] = "显示一行或多行文字, 它们包换动态信息, 如进度和叠加层数"
L["Simple"] = "简单"
L["Size"] = "大小"
L["Slant Amount"] = "倾斜程度"
L["Slant Mode"] = "倾斜模式"
@@ -865,24 +763,15 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Soft Max"] = "软上限"
L["Soft Min"] = "软下限"
L["Sort"] = "排序"
L["Sound"] = "声音"
L["Sound by Kit ID"] = "根据 ID 选择音效"
L["Sound Channel"] = "声音频道"
L["Sound File Path"] = "声音文件路径"
L["Sound Kit ID"] = "音效 ID"
L["Source"] = "来源"
L["Space"] = "间隙"
L["Space Horizontally"] = "横向间隙"
L["Space Vertically"] = "纵向间隙"
L["Spark"] = "闪光"
L["Spark Settings"] = "闪光设置"
L["Spark Texture"] = "闪光材质"
L["Specialization"] = "专精"
L["Specific Currency ID"] = "特定货币ID"
L["Specific Unit"] = "指定单位"
L["Spell ID"] = "法术ID"
L["Spell Selection Filters"] = "法术选择过滤器"
L["Stack Count"] = "层数"
L["Stack Info"] = "层数信息"
L["Stacks - The number of stacks of an aura (usually)"] = "堆叠 - 光环的堆叠层数(通常是)"
L["Stagger"] = "交错"
@@ -890,11 +779,9 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Star"] = "星星"
L["Start"] = "开始"
L["Start Angle"] = "起始角度"
L["Start Animation"] = "开始动画"
L["Start Collapsed"] = "打开时折叠"
L["Start of %s"] = "%s 的开始"
L["Step Size"] = "步进尺寸"
L["Stop Motion"] = "定格动画"
L["Stop Motion %s"] = "定格动画%s"
L["Stop Motion Settings"] = "定格动画设置"
L["Stop Sound"] = "停止播放声音"
@@ -902,19 +789,14 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["Sub Option %i"] = "子选项 %i"
L["Subevent"] = "子事件"
L["Subevent Suffix"] = "子事件后缀"
L["Supports multiple entries, separated by commas"] = "支持多个条目,由英文逗号分隔。"
L["Swipe Overlay Settings"] = "冷却刷覆盖层设置"
L["Templates could not be loaded, the addon is %s"] = "无法载入Templates%s"
L["Temporary Group"] = "临时组"
L["Text"] = "文字"
L["Text %s"] = "文本 %s"
L["Text Color"] = "文字颜色"
L["Text Settings"] = "文本设置"
L["Texture"] = "材质"
L["Texture %s"] = "材质%s"
L["Texture Info"] = "材质信息"
L["Texture Picker"] = "材质选择器"
L["Texture Rotation"] = "材质旋转"
L["Texture Selection Mode"] = "材质选择模式"
L["Texture Settings"] = "材质设置"
L["Texture Wrap"] = "材质折叠"
@@ -931,7 +813,6 @@ every 3 events starting from 2nd and ending at 11th: 2-11/3]=] ] = [=[事件发
L["The WeakAuras Options Addon version %s doesn't match the WeakAuras version %s. If you updated the addon while the game was running, try restarting World of Warcraft. Otherwise try reinstalling WeakAuras"] = "WeakAuras 选项插件版本 %s 与 WeakAuras 本体版本 %s 不匹配。如果您在游戏运行时更新了插件,请尝试重新启动《魔兽世界》。否则请尝试重新安装 WeakAuras"
L["Then "] = "然后"
L["There are several special codes available to make this text dynamic. Click to view a list with all dynamic text codes."] = "有几种特殊代码可用于使此文本动态化。点击查看包含所有动态文本代码的列表。"
L["Thickness"] = "粗细"
L["This adds %raidMark as text replacements."] = "这将添加 %raidMark 作为文本替换。"
L["This adds %role, %roleIcon as text replacements. Does nothing if the unit is not a group member."] = "这将添加 %role, %roleIcon 作为文本替换。如果单位不是队伍成员,则不产生效果。"
L["This adds %tooltip, %tooltip1, %tooltip2, %tooltip3 and %tooltip4 as text replacements and also allows filtering based on the tooltip content/values."] = "这将添加 %tooltip, %tooltip1, %tooltip2, %tooltip3, %tooltip4 作为文本替换,同时允许根据这些内容/值进行过滤。"
@@ -969,33 +850,23 @@ Upgrade your version of WeakAuras or wait for next release before installing thi
L["Toggle the visibility of all loaded displays"] = "切换当前已载入图示的可见状态"
L["Toggle the visibility of all non-loaded displays"] = "切换当前未载入图示的可见状态"
L["Toggle the visibility of this display"] = "切换此图示的可见性"
L["Tooltip"] = "鼠标提示"
L["Tooltip Content"] = "鼠标提示内容"
L["Tooltip on Mouseover"] = "鼠标提示"
L["Tooltip Pattern Match"] = "鼠标提示规则匹配"
L["Tooltip Text"] = "鼠标提示文本"
L["Tooltip Value"] = "鼠标提示值"
L["Tooltip Value #"] = "鼠标提示值 #"
L["Top"] = "上方"
L["Top HUD position"] = "顶部 HUD 位置"
L["Top Left"] = "左上"
L["Top Right"] = "右上"
L["Total"] = "总计"
L["Total - The maximum duration of a timer, or a maximum non-timer value"] = "总计 - 计时器的最大持续时间,或最大非计时器值"
L["Total Angle"] = "最大角度"
L["Total Time"] = "总计时间"
L["Trigger"] = "触发"
L["Trigger %i"] = "触发器%i"
L["Trigger %i: %s"] = "触发器%i%s"
L["Trigger Combination"] = "触发器组合"
L["True"] = ""
L["Type"] = "类型"
L["Type 'select' for '%s' requires a values member'"] = "'%s'的类型'select'需要至少一个'values'成员。"
L["Ungroup"] = "不分组"
L["Unit"] = "单位"
L["Unit %s is not a valid unit for RegisterUnitEvent"] = "单位 %s 并不是 RegisterUnitEvent 的有效单位"
L["Unit Count"] = "单位计数"
L["Unit Frames"] = "单位框架"
L["Unknown"] = "未知"
L["Unknown Encounter's Spell Id"] = "未知的首领战斗法术Id"
L["Unknown property '%s' found in '%s'"] = "发现'%2$s'的未知属性'%1$s'"
@@ -1006,14 +877,11 @@ Upgrade your version of WeakAuras or wait for next release before installing thi
L["Update Custom Text On..."] = "更新自定义文字于"
L["URL"] = "URL"
L["Url: %s"] = "URL%s"
L["Use Custom Color"] = "使用自定义颜色"
L["Use Display Info Id"] = "使用显示信息 ID"
L["Use SetTransform"] = "使用 SetTransform 方法"
L["Use Texture"] = "使用材质"
L["Used in auras:"] = "在下列光环中被使用:"
L["Used in Auras:"] = "在下列光环中被使用:"
L["Used in auras:"] = "在下列光环中被使用:"
L["Uses Texture Coordinates to rotate the texture."] = "使用材质坐标以旋转材质"
L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."] = "使用UnitInRange()检查是否在范围内。根据你的职业和专精决定范围为25或40码,与默认团队框架的在或不在范围表现一致。"
L["Uses UnitIsVisible() to check if game client has loaded a object for this unit. This distance is around 100 yards. This is polled every second."] = "使用UnitIsVisible()检查游戏客户端是否加载此单位的对象。此距离大概为100码。每秒检查一次。"
L["Value"] = ""
L["Value %i"] = "值 %i"
@@ -1032,18 +900,15 @@ Upgrade your version of WeakAuras or wait for next release before installing thi
L["WeakAuras %s on WoW %s"] = "WeakAuras %s + WoW %s"
L["What do you want to do?"] = "你想要做什么?"
L["Whole Area"] = "整个区域"
L["Width"] = "宽度"
L["wrapping"] = "折叠"
L["X Offset"] = "X 偏移"
L["X Rotation"] = "X轴旋转"
L["X Scale"] = "宽度比例"
L["X-Offset"] = "X 偏移"
L["x-Offset"] = "X偏移"
L["Y Offset"] = "Y 偏移"
L["Y Rotation"] = "Y轴旋转"
L["Y Scale"] = "长度比例"
L["Yellow Rune"] = "黄色符文"
L["Y-Offset"] = "Y 偏移"
L["y-Offset"] = "Y偏移"
L["You already have this group/aura. Importing will create a duplicate."] = "此组/光环已经存在,继续导入将会创建副本。"
L["You are about to delete %d aura(s). |cFFFF0000This cannot be undone!|r Would you like to continue?"] = "正在删除 %d 个光环,|cFFFF0000此操作无法被撤销!|r真的要删除吗?"
@@ -1064,7 +929,6 @@ WeakAuras总是在状态被标记为已改变,或者一个框体被添加、
L["Your Saved Snippets"] = "已保存片段"
L["Z Offset"] = "Z 偏移"
L["Z Rotation"] = "Z轴旋转"
L["Zoom"] = "缩放"
L["Zoom In"] = "放大"
L["Zoom Out"] = "缩小"