from retail
This commit is contained in:
parent
23c7da5ea6
commit
674ea9fe1e
10 changed files with 137 additions and 38 deletions
|
|
@ -242,7 +242,12 @@ local function createOptions(id, data)
|
|||
width = 0.15,
|
||||
order = 44.1,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "sparkTexture",
|
||||
color = "sparkColor",
|
||||
rotation = "sparkRotation",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,12 @@ local function createOptions(id, data)
|
|||
width = 0.15,
|
||||
order = 2,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "foregroundTexture",
|
||||
color = "foregroundColor",
|
||||
rotation = "rotation",
|
||||
|
|
@ -46,7 +51,12 @@ local function createOptions(id, data)
|
|||
width = 0.15,
|
||||
order = 6,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "backgroundTexture",
|
||||
color = "backgroundColor",
|
||||
rotation = "rotation",
|
||||
|
|
|
|||
|
|
@ -115,7 +115,12 @@ local function createOptions(id, data)
|
|||
name = L["Choose"],
|
||||
order = 2,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "foregroundTexture",
|
||||
color = "foregroundColor",
|
||||
rotation = "rotation",
|
||||
|
|
@ -355,13 +360,17 @@ local function createOptions(id, data)
|
|||
name = L["Choose"],
|
||||
order = 20,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
texture = "backgroundTexture",
|
||||
color = "backgroundColor",
|
||||
rotation = "rotation",
|
||||
mirror = "mirror",
|
||||
blendMode = "blendMode"
|
||||
}, texture_types, setTextureFunc);
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "backgroundTexture",
|
||||
color = "backgroundColor",
|
||||
mirror = "mirror",
|
||||
blendMode = "blendMode"
|
||||
}, texture_types, setTextureFunc, true);
|
||||
end,
|
||||
disabled = function() return data.sameTexture or data.hideBackground; end,
|
||||
hidden = function() return data.hideBackground end,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,12 @@ local function createOptions(id, data)
|
|||
width = 0.15,
|
||||
order = 1.1,
|
||||
func = function()
|
||||
OptionsPrivate.OpenTexturePicker(data, {}, {
|
||||
local path = {}
|
||||
local paths = {}
|
||||
for child in OptionsPrivate.Private.TraverseLeafsOrAura(data) do
|
||||
paths[child.id] = path
|
||||
end
|
||||
OptionsPrivate.OpenTexturePicker(data, paths, {
|
||||
texture = "texture",
|
||||
color = "color",
|
||||
rotate = "rotate",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue