前端Lua
前端Lua
前端Lua
function ItemTips.CreateEquipPanel(data, itemData, isWear, panelInsertIndex) if not data or not itemData then return end if SL:GetMetaValue("WINPLAYMODE") then isWear = false end ResetDescParam() ItemTips.item
前端Lua
获取父节点
前端Lua
local rich_att = GUI:RichTextFCOLOR_Create(ItemTips.contentPanel, string.format("rich_att_%s", rich_att_num), math.floor(v.x or 0), math.floor(v.y or 0), v.text, ItemTips._isItem and 420 or (_TotalWidth - 20), textSize, "#FFFFFF", vspace, nil, fontPa
前端Lua
local function pushDescItem(desc, descTag) if not desc or not ItemTips.contentPanel then return end local movePosY = 0 if desc and next(desc) then local contentSz = GUI:getContentSize(ItemTips.contentPanel) for
前端Lua
function ItemTips.CreateEquipPanel(data, itemData, isWear, panelInsertIndex) if not data or not itemData then return end if SL:GetMetaValue("WINPLAYMODE") then isWear = false end ResetDescParam() ItemTips.item
前端Lua
function ItemTips.CreateEquipPanel(data, itemData, isWear, panelInsertIndex) if not data or not itemData then return end if SL:GetMetaValue("WINPLAYMODE") then isWear = false end ResetDescParam() ItemTips.itemCount = 0 if not ItemTips._PList then
前端Lua
[LUA-print] LUA ERROR: [string "GUILayout/GUIUtil.lua"]:54: module 'GUILayout/A/n1_chuansong' not found: no field package.preload['GUILayout/A/n1_chuansong'] no file 'scripts/GUILayout/A/n1_chuansong.lua' no file './GUILayout/
前端Lua
function ItemTips.CreateEquipPanel(data, itemData, isWear, panelInsertIndex) if not data or not itemData then return end if SL:GetMetaValue("WINPLAYMODE") then isWear = false end ResetDescParam() ItemTips.item
前端Lua
[LUA-print] [GUI LOG] GUINetworkUtil:OnLuaMessage, Invaild handler, 100
前端Lua
local nameTextWidth = GUI:getContentSize(r_name).width local bgWidth = maxWidth + 30 local centerX = (bgWidth - nameTextWidth) / 2 GUI:setPositionX(r_name, centerX) 为什么这么写
前端Lua
[LUA-print] stack traceback: [string "scripts/main.lua"]:14: in function <[string "scripts/main.lua"]:12> [C]: in function 'Require' [string "GUILayout/GUIUtil.lua"]:54: in function 'pressedCB' [string "scripts/logic/U
前端Lua
local nameStr = string.format("<font color='%s' size='%s'>%s</font>", SL:GetHexColorByStyleId(color), 18, name) local r_name = GUI:RichText_Create(contentPanel, "r_name", 0, 0, nameStr, richWidth, _TextSize, SL:GetHexColorByStyleId(color), vspac
前端Lua
装备名称可以更换字体吗?
前端Lua