TXT和LUA前端的交互
SENDCUSTMSG 1000 {[{"屠龙"},{"裁决"}]}SENDCUSTMSG 9999 {"GUI_ID":"Npc界面","exportID":"npc1"}
local function networkCB(msgID, msgData)
SL:Print(msgID)
SL:Print(msgData)
end
SL:RegisterNetMsg(1000, networkCB)
这个传过来的数据怎么在客户端接收他?显示到面板上!!!
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAp4AAAA9CAYAAAAEYWn6AAATJklEQVR4Ae1aW3Lsxg7LArL/VWU3WUBuMVXwRVBgN6WRxhobHyqSIPhoDexpn+SPP//88588eQfRQDQQDUQD0UA0EA1EA3dr4I8a8Ndff/3nuXvoT+mf95Yf0J+i5ZwjWo4GooFoIBp4hwa+Lp7vGPaTZ9Ql9CefL2fLL6RoIBqIBqKBaCAaeFUD7cWT/zXPDXF5h1Xtd17KsJM7w5XYq2dc1e/O8Gr+yveQXvmlFA1EA9FANBANRAOdBtqLZxWsLkNd3tU4rFvoanx3Kbtq3tkzYr+unnH2sTdj7E/z4MXml0Q0EA1EA9FANBAN3K2Bt1083aXo7sNd1X+y+4Sz2sfV77BX86t9kssvn2ggGogGooFoIBq4WgO3XzxxOYK9+gDv6DfZfcJZ7erqd9ir+dU+yeWXTTQQDUQD0UA0EA1crYHHXjzrUoWLFft4AcCUg7h4ykEt59jnWsXRi3uwr7Wcm/iufoe9mp/sFU5+6UQD0UA0EA1EA9HAVRp428WzFtaLUsXuweGQ4xg+7JQDPlutrVxhzOmwMxyt4Xg6l3nsoxdj7Ls8sNj8QokGooFoIBqIBqKBd2jgLRfPugDhOXKoycXJcXRGx3H4FJvOUF4XT+cyj330ZYx9lwcWm1820UA0EA1EA9FANPAODdx68dSLj8a7Azq+Yhq7nh3H4VNM57g65axiV7/DXs2v9kkuv4CigWggGogGooFo4GoNvPXiWcu7y1J3KMdVTGPXq+M4fIrpHFennFXs6nfYq/nVPsnll000EA1EA9FANBANXK2BwxdPvuywj8UYY9/lgXW26rkH+6hxGHKwHcfhO8zla06H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A9FANBANRAPRwFs0kItnhPYWoeUvxmv/Ysz7zPuMBqKBaCAa+EQN5OKZi2cuntFANBANRAPRQDQQDbxFA7l4RmhvEdon/lWWnfOvCdFANBANRAPRwLUayMUzF89cPKOBaCAaiAaigWggGniLBnLxjNDeIrT8xXjtX4x5n3mf0UA0EA1EA5+ogVw8c/HMxTMaiAaigWggGogGooG3aOCPv//++x/3fOItOjvnr79oIBqIBqKBaCAaiAaeq4H/ARLAgMckJKr8AAAAAElFTkSuQmCC
好像是需要初始化某个网络模块,这个方法才能接收到**端发来的消息。
网络模块的初始化是引擎执行的,好像跟客户端的某些功能模块有关,需要打开相关面板才能初始化。
你可以分别多试试几个文件。 local function networkCB(msgID, msgData)
data = SL:JsonDecode(msgData) --data就是你接收到的**端数据
main() --这个是客户端的界面创建函数,在这里就可以调用data里的数据显示到面板里了
end
SL:RegisterNetMsg(1000, networkCB)
页:
[1]