y3-editor / y3-lualib

MIT License
146 stars 43 forks source link

物品判断标签出问题? #536

Closed 2360871791 closed 1 week ago

2360871791 commented 1 week ago
---@type Item?
local item = data.item
if item then
    if item:has_tag('等级装备') then
        tag:set_visible(true)
        tag:get_child('tab_btn'):set_text(('%d级装备'):format(item:get_level()))
    end
end

103703f6f5f9192fca781c66e8e04490