【称号坐骑时装】提交

dev_chengFeng
zhangqiang 2021-03-29 17:53:40 +08:00
parent cbdfb75576
commit db6f2d0b32
9 changed files with 15 additions and 12 deletions

View File

@ -73,7 +73,7 @@ function ExpeditionMainPanel:InitComponent()
self.liveNode:OnClose()
end
self.liveNode = PlayerLiveView:New(Util.GetTransform(self.parent, "playerLive"),1)
self.liveNode:OnOpen(25,nil,WALK_DIR.IDLE_FRONT)
self.liveNode:OnOpen(18,nil,WALK_DIR.IDLE_FRONT)
self.singlePre = Util.GetGameObject(self.transform, "singlePre")
self.grid = Util.GetGameObject(self.transform, "rect/grid")

View File

@ -791,7 +791,7 @@ function this.RefreshLittleMap()
this.liveNode:OnClose()
end
this.liveNode = PlayerLiveView:New(this.btnMap.transform,1)
this.liveNode:OnOpen(10,Vector3.New(0,-40,0))
this.liveNode:OnOpen(6,Vector3.New(0,-40,0))
if FightPointPassManager.GetRoleDirection()==1 then
this.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT)
else

View File

@ -42,7 +42,7 @@ function FightSmallChoosePanel:InitComponent()
-- end
if self.liveNode == nil then
self.liveNode = PlayerLiveView:New(Util.GetTransform(self.selectMap, "pos"),1)
self.liveNode:OnOpen(60,Vector3.New(0,40,0))
self.liveNode:OnOpen(40,Vector3.New(0,40,0))
if FightPointPassManager.GetRoleDirection()==1 then
self.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT)
else
@ -113,7 +113,7 @@ function FightSmallChoosePanel:OnShowPanelData()
-- end
if self.liveNode == nil then
self.liveNode = PlayerLiveView:New(Util.GetTransform(self.selectMap, "pos"),1)
self.liveNode:OnOpen(60,Vector3.New(0,40,0))
self.liveNode:OnOpen(40,Vector3.New(0,40,0))
if FightPointPassManager.GetRoleDirection()==1 then
self.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT)
else

View File

@ -44,7 +44,7 @@ function this:InitComponent(root)
this.liveNode:OnClose()
end
this.liveNode = PlayerLiveView:New(Util.GetTransform(root, "mapParent/selectMap/Image (1)/roleRoot"),1)
this.liveNode:OnOpen(170,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
this.liveNode:OnOpen(140,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
end
local IsPlayAni = false
local curSmallFightId = 0
@ -101,7 +101,7 @@ function this:LoadMapData()
-- end
if this.liveNode == nil then
this.liveNode = PlayerLiveView:New(Util.GetTransform(root, "mapParent/selectMap/Image (1)/roleRoot"),1)
this.liveNode:OnOpen(170,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
this.liveNode:OnOpen(140,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
end
this._BuildFlag = {}
this._BuildFlagClick = {}

View File

@ -297,9 +297,8 @@ function this.LoadRole(u, v)
this.NpcGO = nil
end
this.NpcGO = PlayerLiveView:New(Util.GetTransform(this.role, "root/ui/roleRoot"),1, nil)
this.NpcGO:OnOpen()
this.NpcGO:OnOpen(75)
this.NpcGO.name = "npc"
this.NpcGO.leader.transform.localScale = Vector3.New(100,100,100)
this.roleCurPos = TileMapView.GetMapData():GetMapData(u, v)
this.roleRoot = Util.GetGameObject(this.role, "root/ui/roleRoot")

View File

@ -143,7 +143,7 @@ function this.InitRolePre(u, v)
this.NpcGO:OnClose()
end
this.NpcGO = PlayerLiveView:New(Util.GetTransform(this.leader, "root/ui/roleRoot"),1)
this.NpcGO:OnOpen(100,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
this.NpcGO:OnOpen(75,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
end
function this.RefreshOption()

View File

@ -568,6 +568,10 @@ function this.CalculatePlayerDcorateProAddVal()
end
return addAllProVal
end
function this.GetPlayerRideRedPoint()
PlayerPrefs.GetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."PlayerRide", 0)
end
-----------------------------------玩家坐骑 皮肤 称号结束
function this.GetHeroDataByStar(star,staticid)
if PlayerManager.heroHandBook and PlayerManager.heroHandBook[staticid] and PlayerManager.heroHandBook[staticid].maxStar >= star then

View File

@ -226,7 +226,7 @@ function this.SetHeadsInfo(data,root,index,name,level)
designation = data.userTitle
}
npc = PlayerLiveView:New(this.livePrefab.transform,2, curPlayerLiveViewData)
npc:OnOpen(25,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
npc:OnOpen(20,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
Util.AddOnceClick(this.firstheadClick,function()
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid)

View File

@ -150,12 +150,12 @@ function this.SingleRideClickShowInfo(data)
ride = curPlayerHeadIconConfig.Id,
}
live2dRoot = PlayerLiveView:New(this.live2dRootParent,2, curPlayerLiveViewData)
live2dRoot:OnOpen(25,nil,WALK_DIR.IDLE_LEFT)
live2dRoot:OnOpen(15,nil,WALK_DIR.IDLE_LEFT)
local ridePlayerLiveViewData = {
ride = curPlayerHeadIconConfig.Id,
}
live2dRoot2 = PlayerLiveView:New(this.live2dRootParent2,2, ridePlayerLiveViewData)
live2dRoot2:OnOpen(80,nil,WALK_DIR.IDLE_LEFT)
live2dRoot2:OnOpen(50,nil,WALK_DIR.IDLE_LEFT)
Util.AddOnceClick(this.goToBtn, function()
if not isGet and not isUser then