(feat/TTS) Add Text-to-speech via awesome_wotlk
This commit is contained in:
@@ -110,7 +110,7 @@ local function formatValueForAssignment(vType, value, pathToCustomFunction, path
|
||||
return "{1, 1, 1, 1}";
|
||||
elseif(vType == "chat") then
|
||||
if (value and type(value) == "table") then
|
||||
local serialized = string.format("{message_type = %s, message = %s, message_dest = %s, message_dest_isunit = %s, r = %s, g = %s, b = %s, message_custom = %s, message_formaters = %s}",
|
||||
local serialized = string.format("{message_type = %s, message = %s, message_dest = %s, message_dest_isunit = %s, r = %s, g = %s, b = %s, message_custom = %s, message_formaters = %s, message_voice = %s}",
|
||||
Private.QuotedString(tostring(value.message_type)), Private.QuotedString(tostring(value.message or "")),
|
||||
Private.QuotedString(tostring(value.message_dest)),
|
||||
tostring(value.message_dest_isunit),
|
||||
@@ -118,16 +118,20 @@ local function formatValueForAssignment(vType, value, pathToCustomFunction, path
|
||||
type(value.message_color) == "table" and tostring(value.message_color[2] or "1") or "1",
|
||||
type(value.message_color) == "table" and tostring(value.message_color[3] or "1") or "1",
|
||||
pathToCustomFunction,
|
||||
pathToFormatters)
|
||||
pathToFormatters,
|
||||
tostring(value.message_voice))
|
||||
return serialized
|
||||
end
|
||||
elseif(vType == "sound") then
|
||||
if (value and type(value) == "table") then
|
||||
return string.format("{ sound = %s, sound_channel = %s, sound_path = %s, sound_kit_id = %s, sound_type = %s, %s}",
|
||||
Private.QuotedString(tostring(value.sound or "")), Private.QuotedString(tostring(value.sound_channel or "")),
|
||||
Private.QuotedString(tostring(value.sound_path or "")), Private.QuotedString(tostring(value.sound_kit_id or "")),
|
||||
return string.format("{ sound = %s, sound_channel = %s, sound_path = %s, sound_kit_id = %s, sound_type = %s, %s, %s}",
|
||||
Private.QuotedString(tostring(value.sound or "")),
|
||||
Private.QuotedString(tostring(value.sound_channel or "")),
|
||||
Private.QuotedString(tostring(value.sound_path or "")),
|
||||
Private.QuotedString(tostring(value.sound_kit_id or "")),
|
||||
Private.QuotedString(tostring(value.sound_type or "")),
|
||||
value.sound_repeat and "sound_repeat = " .. tostring(value.sound_repeat) or "nil");
|
||||
value.sound_repeat and "sound_repeat = " .. tostring(value.sound_repeat) or "nil",
|
||||
value.sound_fade and "sound_fade = " .. tostring(value.sound_fade) or "nil");
|
||||
end
|
||||
elseif(vType == "customcode") then
|
||||
return string.format("%s", pathToCustomFunction);
|
||||
|
||||
Reference in New Issue
Block a user