前端Lua
全部技术档案
前端Lua
SL:print("打开沙城捐献界面") local npc = {} local function networkCB(msgID, p1, p2, p3, msgData) SL:print("===== 收到后端消息 =====") SL:print("消息ID: " .. tostring(msgID)) SL:print("参数1: " .. tostring(p1)) SL:print("参数2: " .. tostring(p2))
前端Lua
我现在用的PC模拟手机端 怎么才能判断是手机端
前端Lua
[LUA-print] ---------------------------------------- Warning: cc.Node:runAction argument 2 is invalid native object(nullptr) [LUA-print] ---------------------------------------- [LUA-print] LUA ERROR: ASSERT FAILED ON LUA EXECUTE: Argument must be no
后端Lua
-- 人物攻击前触发 function attackdamage(actor, target, hiter, skillid, damage, model, value) -- release_print("技能id:",skillid,type(skillid),damage) printusetime(actor,1) -- 通用攻击行为检测 (巡航 禁止触发类怪物等) damage = ATTACK_func.check_attack(actor, target,
前端Lua
怎么获取客户端是手机端还是PC端
前端Lua
local action = GUI:ActionSpawn(GUI:ActionScaleTo(0.2, 80), GUI:ActionMoveTo(0.2, 32, 127)) GUI:addOnClickEvent(npc.ui.Button_3, function() GUI:runAction(npc.ui.Effect_2, action) end)
前端Lua
GUI:Timeline_ScaleTo(npc.ui.Effect_2, 1, 0.5, function() GUI:Timeline_MoveTo(npc.ui.Effect_2, {x = 32, y = 127}, 0.2, function() end) end)我想让这两个动画同时进行
前端Lua
local rotate_view = GUI:RotateView_Create(npc.ui.bg, "rotate_view", 370, 265, 400, 400, 9999999, { [1] = {scale = 0.6, img = "res/player_show/player_show_0/004486.png"}, [2] = {scale = 1.4, img = "res/player_show/player_show_0
前端Lua
[17:47:02-188] --------------------error----------------------- [LUA-print] [17:47:02-188] --------------------error----------------------- [LUA-print] [17:47:02-188] --------------------error----------------------- [LUA-print] [17:47:02-188] [string
前端Lua
local rotate_view = GUI:RotateView_Create(npc.ui.bg, "rotate_view", 370, 265, 400, 400, 9999999, { [1] = {scale = 0.6, img = "res/player_show/player_show_0/004486.png"}, [2] = {scale = 1.4, img = "res/player_show/player_show_0
前端Lua
DengJiTiSheng = Class("DengJiTiSheng", BaseLogic) function DengJiTiSheng:init() self._cfg = Util:requireCfg(self.mCfg.clientObjPath) end function DengJiTiSheng:main(npcData) self.npcData = npcData or {} self.npcID = self.npcD
前端Lua
local level = SL:Get_LEVEL() -- if data then -- level = data -- print(level) -- print(7777) -- end怎么合理加
前端Lua
function DengjiTiSheng:syncData(actor, showUI) local curLevel = GetInt(0, actor, self.varName) print(curLevel) if showUI then self:initUI(actor,curLevel) end end后端的当前等级传到前端DengJiTiSheng = Class("DengJiTiSheng", BaseLogic)
后端Lua