from retail
This commit is contained in:
@@ -1472,6 +1472,8 @@ local function up(data, options, index)
|
||||
local dereferencedParent = parent.references[id].options[parent.references[id].index]
|
||||
if dereferencedParent.nameSource == optionID then
|
||||
dereferencedParent.nameSource = optionID - 1
|
||||
elseif dereferencedParent.nameSource == optionID - 1 then
|
||||
dereferencedParent.nameSource = optionID
|
||||
end
|
||||
end
|
||||
OptionsPrivate.MoveCollapseDataUp(id, "author", path)
|
||||
@@ -1501,6 +1503,8 @@ local function down(data, options, index)
|
||||
local dereferencedParent = parent.references[id].options[parent.references[id].index]
|
||||
if dereferencedParent.nameSource == optionID then
|
||||
dereferencedParent.nameSource = optionID + 1
|
||||
elseif dereferencedParent.nameSource == optionID + 1 then
|
||||
dereferencedParent.nameSource = optionID
|
||||
end
|
||||
end
|
||||
local childOptions = optionData.options
|
||||
|
||||
@@ -50,6 +50,8 @@ local AddonName, OptionsPrivate = ...
|
||||
local WeakAuras = WeakAuras;
|
||||
local L = WeakAuras.L;
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
local function addSpace(args, order)
|
||||
args["space" .. order] = {
|
||||
type = "description",
|
||||
@@ -613,12 +615,21 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
|
||||
set = setValueColor
|
||||
}
|
||||
order = order + 1;
|
||||
elseif (propertyType == "list" or property == "progressSource") then
|
||||
elseif (propertyType == "list" or propertyType == "progressSource" or propertyType == "textureLSM") then
|
||||
local values = property and allProperties.propertyMap[property] and allProperties.propertyMap[property].values;
|
||||
local dialogControl
|
||||
|
||||
if propertyType == "textureLSM" then
|
||||
dialogControl = "WA_LSM30_StatusbarAtlas"
|
||||
local statusbarList = {}
|
||||
WeakAuras.Mixin(statusbarList, SharedMedia:HashTable("statusbar"))
|
||||
values = statusbarList
|
||||
end
|
||||
args["condition" .. i .. "value" .. j] = {
|
||||
type = "select",
|
||||
width = WeakAuras.normalWidth,
|
||||
values = values,
|
||||
dialogControl = dialogControl,
|
||||
name = blueIfNoValue(data, conditions[i].changes[j], "value", L["Differences"], ""),
|
||||
desc = descIfNoValue(data, conditions[i].changes[j], "value", propertyType, values),
|
||||
order = order,
|
||||
@@ -663,7 +674,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
|
||||
return true
|
||||
end
|
||||
|
||||
args["condition" .. i .. "progressSoruceManualValue" .. j] = {
|
||||
args["condition" .. i .. "progressSourceManualValue" .. j] = {
|
||||
type = "range",
|
||||
control = "WeakAurasSpinBox",
|
||||
width = WeakAuras.normalWidth,
|
||||
@@ -681,7 +692,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
|
||||
}
|
||||
order = order + 1
|
||||
|
||||
args["condition" .. i .. "progressSoruceManualTotal" .. j] = {
|
||||
args["condition" .. i .. "progressSourceManualTotal" .. j] = {
|
||||
type = "range",
|
||||
control = "WeakAurasSpinBox",
|
||||
width = WeakAuras.normalWidth,
|
||||
|
||||
@@ -454,7 +454,7 @@ local function GetGenericTriggerOptions(data, triggernum)
|
||||
{
|
||||
subeventPrefix = {
|
||||
type = "select",
|
||||
name = L["Message Prefix"],
|
||||
name = L["Subevent"],
|
||||
width = WeakAuras.normalWidth,
|
||||
order = 8,
|
||||
values = OptionsPrivate.Private.subevent_prefix_types,
|
||||
@@ -471,7 +471,7 @@ local function GetGenericTriggerOptions(data, triggernum)
|
||||
subeventSuffix = {
|
||||
type = "select",
|
||||
width = WeakAuras.normalWidth,
|
||||
name = L["Message Suffix"],
|
||||
name = L["Subevent Suffix"],
|
||||
order = 9,
|
||||
values = OptionsPrivate.Private.subevent_suffix_types,
|
||||
sorting = OptionsPrivate.Private.SortOrderForValues(OptionsPrivate.Private.subevent_suffix_types),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## Interface: 30300
|
||||
## Title: WeakAuras Options
|
||||
## Author: The WeakAuras Team
|
||||
## Version: 5.4.0
|
||||
## Version: 5.13.2
|
||||
## Notes: Options for WeakAuras
|
||||
## Notes-esES: Opciones para WeakAuras
|
||||
## Notes-deDE: Optionen für WeakAuras
|
||||
|
||||
Reference in New Issue
Block a user