热血江湖Lua
热血江湖Lua
热血江湖Lua
-- 设置武器位(位置1)的第一个分组名称 changecustomitemtext(actor, 0, 0, "[color=#FF0000][b]武器属性[/b][/color]") -- 清空武器位第一个分组名称 changecustomitemtext(actor, 0, 0, -1) 怎么获取这个自定义属性
热血江湖Lua
我要在道具里面 增加一句话 ! 让tips可以显示出来! 后端的接口是什么
热血江湖Lua
前端怎么获取U变量的值
热血江湖Lua
自定义属性获取
热血江湖Lua
self.itemobj = ItemUtil:ItemShow_Create(itemData, itemRoot, extData) GUI:onClick(ui.n0,function () local itemData = SL:GetValue("EQUIP_DATA_BY_POS",0) SL:dump(itemData) ItemUtil:RefreshItemUIByData(self.
热血江湖Lua
不对 没有任何反应
热血江湖Lua
local itemobj = ItemUtil:ItemShow_Create(itemData, itemRoot, extData) GUI:onClick(ui.n0,function () local itemData = SL:GetValue("EQUIP_DATA_BY_POS",0) ItemUtil:RefreshItemUIByData(itemobj,itemData) end) 这里我为
热血江湖Lua
local item = ItemUtil:ItemShow_CreateEX(itemdata, ui["n11"]) 这个是显示装备的 如果身上的武器呢 要有特殊属性
热血江湖Lua
装备位置 武器是什么位置
热血江湖Lua
通过物品的名字 转为ID
热血江湖Lua
function NpcUi.cc:Create() ui = FGUI:ui_delegate( self.component) -- path = ItemUtil:GetIconResPathByItemID(1) -- FGUI:GLoader_setUrl(ui.n2, path) local bagData = SL:GetValue("BAG_DATA") local csindex = 0
热血江湖Lua
怎么创建手里的武器 在界面
热血江湖Lua
local ItemUtil = {} -- 服务器道具属性变更,在这里变更服务器属性为前端需要的属性 local cjson = require("cjson") local itemconfig0 = {} SL:print('加载itemUtil') function ItemUtil:FixItemDataByServerRawData(item, onEquip) if not item or not next(item) then print("=======
热血江湖Lua