前端Lua
前端Lua
前端Lua
if string.find(clickedItemsStr, itemIdStr .. "#") then SL:print("1") string.gsub(clickedItemsStr, itemIdStr .. "#", "") else SL:print("2",clickedItemsStr)
前端Lua
string字符串拼接怎么写
前端Lua
if string.find(clickedItemsStr, itemIdStr .. "#") then 我需要在这里加上删除这个存在的内容应该用什么函数 end
前端Lua
删除字符串找到的内容
前端Lua
-- 设置容器默认图片(第一张图片) local defaultImage = nil -- 默认背景图片 local clickedImage = "res/public/1900000678_2.png" -- 点击后切换的图片 local laot_x = SL:GetMetaValue("CURRENT_OPERMODE") == 1 and -13 or 3
前端Lua
-- 设置容器默认图片(第一张图片) local defaultImage = nil -- 默认背景图片 local clickedImage = "res/public/1900000678_2.png" -- 点击后切换的图片 local laot_x = SL:GetMetaValue("CURRENT_OPERMODE") == 1 and -13 or 3
前端Lua
设置容器大小
前端Lua
local itemWidget = GUI:ItemShow_Create(item_bj, "fj_item" .. posInPage, x, y, itemDataTable) -- 在物品控件上创建一个容器 local container = GUI:Widget_Create(itemWidget, "click_container", 0, 0, 50, 50) -- 调整尺寸覆盖物品区域
前端Lua
GUI:setVisible(JM_show, true) local item_Panel_1 = GUI:getChildByName(JM_show, "item_Panel_1") local ListView_fj = GUI:getChildByName(JM_show, "ListView_fj") GUI:removeAllChildren(ListView_fj) local bagItems = SL:GetMe
前端Lua
GUI:setVisible(JM_show, true) local item_Panel_1 = GUI:getChildByName(JM_show, "item_Panel_1") local ListView_fj = GUI:getChildByName(JM_show, "ListView_fj") GUI:removeAllChildren(ListView_fj) local bagItems = SL:GetMe
前端Lua
GUI:setVisible(JM_show, true) local item_Panel_1 = GUI:getChildByName(JM_show, "item_Panel_1") local ListView_fj = GUI:getChildByName(JM_show, "ListView_fj") GUI:removeAllChildren(ListView_fj) local bagItems = SL:GetMe
前端Lua
GUI:setVisible(JM_show, true) local item_Panel_1 = GUI:getChildByName(JM_show, "item_Panel_1") local ListView_fj = GUI:getChildByName(JM_show, "ListView_fj") GUI:removeAllChildren(ListView_fj) local bagItems = SL:GetMe
前端Lua
LUA-print] [GUI ERROR] GUI:ItemShow_Create can't find parent fj_item6_27是什么意思
前端Lua