Merge branch 'master_develop' of http://60.1.1.230/gaoxin/JL_Client into master_develop

jiaoyangna 2020-10-01 00:06:24 +08:00
commit 2833c3a269
6 changed files with 12 additions and 10 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

View File

@ -134,8 +134,8 @@ function this.SingleHeroDataShow(go,_heroData)
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ARENA_DEFEND then
JumpManager.GoJump(8001)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
JumpManager.GoJump(57001)
-- elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
-- JumpManager.GoJump(57001)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
-- JumpManager.GoJump(57001)
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)

View File

@ -215,8 +215,8 @@ function this.SingleHeroDataShow(go,_heroData)
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ARENA_DEFEND then
JumpManager.GoJump(8001)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
JumpManager.GoJump(57001)
-- elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
-- JumpManager.GoJump(57001)
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then

View File

@ -154,8 +154,8 @@ function this.SingleHeroDataShow(go,_heroData)
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ARENA_DEFEND then
JumpManager.GoJump(8001)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
JumpManager.GoJump(57001)
-- elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
-- JumpManager.GoJump(57001)
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then