Update - 1.12.0.120
EN: 1.12.0.120 CN: 1.12.0.120 JP: 1.12.0.124 KR: 1.12.0.124
This commit is contained in:
@@ -633,14 +633,21 @@ function AvgEditorMultiLanTool:_Export_Text(tbLuaData)
|
||||
})
|
||||
for j = 2, 4 do
|
||||
local sContent = v.param[j]
|
||||
if type(sContent) == "string" and sContent ~= "" then
|
||||
local sContent_ = v.param[j + 3]
|
||||
if type(sContent) == "string" and sContent ~= "" or type(sContent_) == "string" and sContent_ ~= "" then
|
||||
if type(sContent) ~= "string" then
|
||||
sContent = ""
|
||||
end
|
||||
if type(sContent_) ~= "string" then
|
||||
sContent = ""
|
||||
end
|
||||
if self.nFromLanIdx == 1 then
|
||||
table.insert(tbExportData, {
|
||||
"【id:" .. tostring(i) .. "】" .. string.format("[手机选项] 组:%s 选项:%d", sGroupId, j - 1),
|
||||
"",
|
||||
self:_ProcText(sContent, true),
|
||||
"",
|
||||
"",
|
||||
self:_ProcText(sContent_, true),
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
@@ -657,7 +664,7 @@ function AvgEditorMultiLanTool:_Export_Text(tbLuaData)
|
||||
"",
|
||||
self:_ProcText(sContent, true),
|
||||
"",
|
||||
"",
|
||||
self:_ProcText(sContent_, true),
|
||||
""
|
||||
})
|
||||
end
|
||||
@@ -1428,10 +1435,16 @@ function AvgEditorMultiLanTool:_Import_Text(tbTranslatedData, tbLuaData)
|
||||
nTranslatedDataIndex = nTranslatedDataIndex + 1
|
||||
return tbTranslatedData[nTranslatedDataIndex]
|
||||
end
|
||||
local func_GetColumn_H_D = function(rowData)
|
||||
local sText = rowData[7]
|
||||
local func_GetColumn_H_D = function(rowData, target, backup)
|
||||
if target == nil then
|
||||
target = 7
|
||||
end
|
||||
if backup == nil then
|
||||
backup = 3
|
||||
end
|
||||
local sText = rowData[target]
|
||||
if sText == nil or sText == "" then
|
||||
sText = rowData[3]
|
||||
sText = rowData[backup]
|
||||
end
|
||||
return sText
|
||||
end
|
||||
@@ -1467,9 +1480,11 @@ function AvgEditorMultiLanTool:_Import_Text(tbTranslatedData, tbLuaData)
|
||||
nTranslatedDataIndex = nTranslatedDataIndex + 1
|
||||
for j = 2, 4 do
|
||||
local sContent = v.param[j]
|
||||
if type(sContent) == "string" and sContent ~= "" then
|
||||
local sContent_ = v.param[j + 3]
|
||||
if type(sContent) == "string" and sContent ~= "" or type(sContent_) == "string" and sContent_ ~= "" then
|
||||
local rowData = func_GetTranslatedData()
|
||||
v.param[j] = self:_ProcText(func_GetColumn_H_D(rowData), false)
|
||||
v.param[j + 3] = self:_ProcText(func_GetColumn_H_D(rowData, 9, 5), false)
|
||||
end
|
||||
end
|
||||
elseif sCmdName == "SetPhoneMsgChoiceJumpTo" then
|
||||
|
||||
@@ -1291,8 +1291,15 @@ function CmdInfo.VisualizedCmd_SetPhoneMsgChoiceBegin(ctrl, tr, param)
|
||||
NovaAPI.SetInputFieldText(tr:Find("groupId_mask/input_GroupId"):GetComponent("InputField"), param[1])
|
||||
ctrl:SetAvgCharId(tr, param[8])
|
||||
local nOffset = 0
|
||||
for i = 1, 3 do
|
||||
NovaAPI.SetInputFieldText(tr:Find("content/input_Content_" .. tostring(i)):GetComponent("InputField"), param[i + 1 + nOffset])
|
||||
local bIsMale = PlayerBaseData:GetPlayerSex() == true
|
||||
for i = 1, 6 do
|
||||
local trInputContent = tr:Find("content/input_Content_" .. tostring(i))
|
||||
NovaAPI.SetInputFieldText(trInputContent:GetComponent("InputField"), param[i + 1])
|
||||
if i <= 3 then
|
||||
trInputContent.gameObject:SetActive(bIsMale == false)
|
||||
else
|
||||
trInputContent.gameObject:SetActive(bIsMale == true)
|
||||
end
|
||||
end
|
||||
end
|
||||
function CmdInfo.TbDataToCfgStr_SetPhoneMsgChoiceBegin(ctrl, tbParam)
|
||||
@@ -1300,11 +1307,14 @@ function CmdInfo.TbDataToCfgStr_SetPhoneMsgChoiceBegin(ctrl, tbParam)
|
||||
local txt2 = Avg_ProcEnquotes(tbParam[2] or "")
|
||||
local txt3 = Avg_ProcEnquotes(tbParam[3] or "")
|
||||
local txt4 = Avg_ProcEnquotes(tbParam[4] or "")
|
||||
return string.format(sCmd, tbParam[1], txt2, txt3, txt4, tbParam[5], tbParam[6], tbParam[7], tbParam[8])
|
||||
local txt5 = Avg_ProcEnquotes(tbParam[5] or "")
|
||||
local txt6 = Avg_ProcEnquotes(tbParam[6] or "")
|
||||
local txt7 = Avg_ProcEnquotes(tbParam[7] or "")
|
||||
return string.format(sCmd, tbParam[1], txt2, txt3, txt4, txt5, txt6, txt7, tbParam[8])
|
||||
end
|
||||
function CmdInfo.ParseParam_SetPhoneMsgChoiceBegin(ctrl, tr, tbParam)
|
||||
tbParam[1] = NovaAPI.GetInputFieldText(tr:Find("groupId_mask/input_GroupId"):GetComponent("InputField"))
|
||||
for i = 1, 3 do
|
||||
for i = 1, 6 do
|
||||
tbParam[i + 1] = ctrl:GetInputTalkContent(tr, "content/input_Content_" .. tostring(i))
|
||||
end
|
||||
tbParam[8] = ctrl:GetAvgCharId(tr)
|
||||
|
||||
Reference in New Issue
Block a user