无尽副本迷雾显示问题修改,无尽副本界面步数显示问题修复

dev_chengFeng
ZhangBiao 2020-08-27 10:49:44 +08:00
parent 08a37d89d0
commit 1e4f936810
3 changed files with 6 additions and 4 deletions

View File

@ -396,6 +396,7 @@ function this.BtnClick(id)
end
elseif id == FUNCTION_OPEN_TYPE.ENDLESS then
MapManager.curCarbonType = CarBonTypeId.ENDLESS
MapManager.SetViewSize(3)--设置视野范围(明雷形式)
UIManager.OpenPanel(UIName.EndLessCarbonPanel)
end

View File

@ -127,11 +127,11 @@ end
function this.InitActPowerShow()
local total = EndLessMapManager.GetTotalEnergy()
local curEnergy = 0
if MapManager.isInMap then
curEnergy = EndLessMapManager.leftEnergy
else
-- if MapManager.isInMap then
-- curEnergy = EndLessMapManager.leftEnergy
-- else
curEnergy = BagManager.GetItemCountById(1)
end
-- end
local color = curEnergy <= 5 and "FF0014FF" or "A0B2B2FF"
local str = string.format("<color=#%s>%s</color>", color, tostring(curEnergy))

View File

@ -179,6 +179,7 @@ function this:GetMapData(u, v)
end
function this:UpdateFogArea(u, v, rad)
Log("位置和迷雾范围: "..u.."|"..v.."|"..rad)
for i = math.max(u-rad, 1), math.min(u+rad, self.uLen) do
for j = math.max(v-rad, 1), math.min(v+rad, self.vLen) do
if math.abs(i-u) + math.abs(j-v) <= rad then