搜索
查看: 1583|回复: 8

[求助] 哪位大神给指导一下迷津,斗笠和头盔同时显示属性重叠。

[复制链接]
发表于 2020-5-30 19:07:39 | 显示全部楼层 |阅读模式
请各路大神提醒一下迷津,斗笠和头盔显示重叠问题,弄了半天没弄好,谢谢了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2020-5-30 19:26:09 | 显示全部楼层
LUA设置的问题
 楼主| 发表于 2020-5-30 20:07:39 | 显示全部楼层

ItemInfo这个排版我没找到,能提示一下我不
发表于 2020-5-31 00:01:58 | 显示全部楼层
我也想知道
发表于 2020-5-31 10:05:15 | 显示全部楼层
修改BindEvent.lua:
                        --获取斗笠或面巾
                        local _ZLItem = nil
                        if itemFrom == const.ift_state then
                                _ZLItem = c.item.getMyEquipPos(_nowItemPos)
                        elseif itemFrom == const.ift_herostate then
                                _ZLItem = c.item.getHeroEquipPos(_nowItemPos)
                        elseif  itemFrom == const.ift_user1state then
                                _ZLItem = c.item.getUser1EquipPos(_nowItemPos)
                        end
                               
                        if _ZLItem ~= nil then
                                dbitem = c.item.getDBItem(_ZLItem:getIndex())
                                if dbitem ~= nil then
                                        _temp = itemInfo.getItemInfo(_ZLItem, dbitem, actor, itemFrom, _nowItemPos)
                                        if _temp ~= "" then
                                                if _mainItemInfo ~= "" then
                                                        _temp = _temp.."\\ \\".._mainItemInfo
                                                end
                                                _mainItemInfo = _temp
                                               
                                                --获取钢纹属性
                                                if _steelInfo == "" then
                                                        _steelInfo = itemInfo.getItemSteelInfo(_ZLItem, dbitem)
                                                end
                                               
上面的,
_temp = _temp.."\\ \\".._mainItemInfo
修改为,
_temp = hintHelper.addParent().._mainItemInfo..hintHelper.addSubParent().. _temp

保存,重读LUA,测试效果。


评分

参与人数 2金钱 +30 热心值 +1 收起 理由
法海到底爱谁? + 30 谢谢大神~!!!!
上线发呆 + 1

查看全部评分

发表于 2020-5-31 15:20:03 | 显示全部楼层
 楼主| 发表于 2020-6-1 00:20:00 | 显示全部楼层
参谋长 发表于 2020-5-31 10:05
修改BindEvent.lua:
                        --获取斗笠或面巾
                        local _ZLItem = nil

非常感谢。
发表于 2020-6-1 10:49:22 | 显示全部楼层
参谋长 发表于 2020-5-31 10:05
修改BindEvent.lua:
                        --获取斗笠或面巾
                        local _ZLItem = nil

厉害
发表于 2020-6-5 23:05:52 | 显示全部楼层
参谋长 发表于 2020-5-31 10:05
修改BindEvent.lua:
                        --获取斗笠或面巾
                        local _ZLItem = nil

为啥我的BindEvent.lua,没有这个获取斗笠或者面巾的这个代码.......
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|HGEM2论坛

GMT+8, 2024-9-20 06:00 , Processed in 0.527889 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表