前端Lua
全部技术档案
前端Lua
GUI:ListView_pushBackCustomItem
前端Lua
local Npc = {} local Dress_data = nil local Key = {"ZJ","SZ","CH"} function Npc.main(p1, p2, p3, str) Cogin.w = SL:GetMetaValue("SCREEN_WIDTH") or 0 -- 客户端宽度,添加默认值 Cogin.h = SL:GetMetaValue("SCREEN_HEIGHT") or 0 -- 客户端高度,添加默认值 if p2 == 1
后端Lua
local slth = {128,328,648} function kfqd_slth_lq_directly_simple(actor, pageStr, iStr) pageStr = pageStr or "1" iStr = iStr or "1" local page = tonumber(pageStr) local i = tonumber(iStr) if not page or not i then
前端Lua
LUA ERROR: [string "scripts/util/util.lua"]:863: attempt to call field 'addTouchEventListener' (a nil value)解析错误
前端Lua
初始化行会自定义变量
前端Lua
stack traceback: [C]: in function 'purgeCachedData' [string "scripts/game/command/gamestates/RestartGameCo..."]:82: in function 'execute' [string "scripts/framework/core/Controller.lua"]:123: in function 'notify' [string "scripts/framework/patterns/o
前端Lua
addEventListener被废弃了,新的用什么接口代替?
前端Lua
addEventListener用什么代替?
后端Lua
--新加 local zglb = {12,30,68,98,198} function rechargewnd_pre_zhigou(actor, index) if index == nil then return end index = tonumber(index) local reward = _getRewardTbl() if not reward[index] then return end local rewardIt
前端Lua
[LUA-print] stack traceback: [string "scripts/main.lua"]:14: in function 'ListView_setInnerContainerSize' [string "GUILayout/LUA_NPC/101.lua"]:110: in function 'Derss_ListView' [string "GUILayout/LUA_NPC/101.lua"]:140: in func
前端Lua
local Dress_ListView = GUI:ListView_Create(Dress_bg, "Dress_ListView", 100, 200, 630, 160, 2) -- 设置列表容器大小 GUI:setContentSize(Dress_ListView, 630, 160) -- 设置列表对齐方式为左对齐 GUI:ListView_setGravity(Dress_List
前端Lua
local function wearlink(pos,data) local data_info = data[pos] -- 通过ID获取列表容器控件 local item_ID = GUI:getChildByName(Dress_bg, "dress_item") if not GUI:Win_IsNull(item_ID) then local newItem
前端Lua
动态修改物品控件参数
前端Lua