前端Lua
前端Lua
前端Lua
现在我需要你设计一个功能,首充礼包的购买根据U21变量纪律,U21=0未购买,U21=1以购买,现在根据U21的值不同展示不同界面
前端Lua
local used_attr_str = SL:GetMetaValue("SERVER_VALUE", "T13") or "" SL:Print("used_attr_str=========",tostring(used_attr_str)) local used_attr_list = {} 为什么我获取不到T13的值,服务端是有值的
前端Lua
前端如何获取U变量
前端Lua
什么是U变量
前端Lua
local used_attr_str = SL:GetMetaValue("SERVER_VALUE", "T13") or "" SL:Print("used_attr_str=========",tostring(used_attr_str)) 我打印used_attr_str是对的吗
前端Lua
local used_attr_str = SL:GetMetaValue("SERVER_VALUE", "T13") or "" SL:Print("used_attr_str=========",tostring(used_attr_str))
前端Lua
local fentian = {} -- 属性映射配置(1-8) local attr_mapping = { [2] = { id = 36, name = "防御加成" }, [3] = { id = 60, name = "生命加成" }, [4] = { id = 200, name = "攻击力" }, [5] = { id = 207, name = "防御值" }, [6] = { id = 1, name = "生命值" },
前端Lua
local attr_images = { [2] = ui.cur_attr_2, [3] = ui.cur_attr_3, [4] = ui.cur_attr_4, [5] = ui.cur_attr_5, [6] = ui.cur_attr_6, [7] = ui.cur_attr_7, [8] = ui.cur_attr_8, [9] = ui.cur_attr_9, } -- 第一步:全部隐藏 for i = 2, 9
前端Lua
GUI:addOnClickEvent(PlayerSuperEquip._ui.Button_1, function() SL:Print("打开传承NPC界面") local parent = GUI:Node_Create(tttt, "chuancheng",SL:GetMetaValue("SCREEN_WIDTH") ,SL:GetMetaValue("SCREEN_HEIGHT")) local path = "NP
前端Lua
GUI:addOnClickEvent(PlayerSuperEquip._ui.Button_1, function() SL:Print("打开传承NPC界面") local parent = GUI:Node_Create(tttt, "chuancheng",SL:GetMetaValue("SCREEN_WIDTH") ,SL:GetMetaValue("SCREEN_HEIGHT")) local path = "NP
前端Lua
GUI:addOnClickEvent(PlayerSuperEquip._ui.Button_1, function() SL:Print("界面11=====================================================") local parent = GUI:getParent(PlayerSuperEquip._ui.Node) -- 正确调用方式 local success = SL:R
前端Lua
GUI:addOnClickEvent(PlayerSuperEquip._ui.Button_1, function() SL:Print("界面11=====================================================") SL:Require("GUIExport/NPC/chuancheng", true) end) 有什么问题
前端Lua
GUI:Timeline_RotateTo GUI:Timeline_RotateBy 这两个动画有什么区别
前端Lua