奥义卡星级和灵兽星级

onepiece_demo_arena
xiejun 2024-02-01 18:53:03 +08:00
parent c8522accb7
commit 4e9f83e014
6 changed files with 13846 additions and 13850 deletions

View File

@ -2455,8 +2455,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &6083657408964777308
CanvasRenderer:
@ -3704,7 +3704,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
@ -4132,8 +4132,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &9109627051392914472
CanvasRenderer:
@ -4281,8 +4281,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &1992813912029494038
CanvasRenderer:
@ -4961,7 +4961,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
@ -5297,7 +5297,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
@ -5994,8 +5994,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &4199610758643036072
CanvasRenderer:
@ -6427,8 +6427,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &8979110509183202135
CanvasRenderer:
@ -13143,7 +13143,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
@ -13592,8 +13592,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -188, y: -78.3}
m_SizeDelta: {x: 439.78, y: 50}
m_AnchoredPosition: {x: -86.3, y: -78.3}
m_SizeDelta: {x: 326.8, y: 50}
m_Pivot: {x: 0, y: 0}
--- !u!222 &6454764976949739421
CanvasRenderer:
@ -15117,7 +15117,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
@ -15689,7 +15689,7 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 0
m_MaxSize: 74
m_MaxSize: 42
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1

View File

@ -884,8 +884,8 @@ local star2index = {
[4] = {1, 2, 4, 5},
[5] = {1, 2, 3, 4, 5}
}
function SetCardStars(starGrid, star,starType)
local starScale = 8
function SetCardStars(starGrid, star,starType,lstarScale)
local starScale = lstarScale and lstarScale or 8
if star==0 then
starGrid.gameObject:SetActive(false)
return

View File

@ -149,11 +149,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss,enemyId)
self.RoleLiveGO2 = poolManager:LoadLive(self.livePath2, go.transform.parent, Vector3.one, Vector3.zero)
self.RoleLiveGOGraphic2 = self.RoleLiveGO2:GetComponent("SkeletonGraphic")
self.RoleLiveGOTran2 = self.RoleLiveGO2:GetComponent("RectTransform")
if role.roleData.roleId==10016 or role.roleData.roleId== 21063 then
self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true)
else
self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true)
end
self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true)
self.RoleLiveGOTran2.sizeDelta = Vector2.New(1000, 1000)
self.RoleLiveGO2.transform:SetParent(self.RootPanel.enemySkillCastRoot.transform)
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2] + 400)

View File

@ -268,7 +268,7 @@ function IncarnationPanel:RefreshSingleCardPre(cardPre,data,isJump,index)
--UIManager.OpenPanel(UIName.RewardTailsmanChipShowPopup, data.itemId)
end)
end
SetCardStars(self.cardList[cardPre].StarGrid,data.star,1)
SetCardStars(self.cardList[cardPre].StarGrid,data.star,1,0)
self.cardList[cardPre].starBg:SetActive(data.star~=0)
for i = 0, 8 do
if i<data.star then

View File

@ -264,7 +264,7 @@ function this.ShowSinglePokemonList(go,singleData,liveIndex)
-- local SkeletonGraphic = live2d:GetComponent("SkeletonGraphic")
-- local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
-- SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
local starSize = Vector2.New(65,65)
local starSize = Vector2.New(40,40)
local type=1
local starScale=1
local star=curData.star
@ -278,7 +278,7 @@ function this.ShowSinglePokemonList(go,singleData,liveIndex)
end
LogError("star==="..star)
--PokemonManager.SetHeroStars(this.spLoader, Util.GetGameObject(go, "upZhenInfo/starGrid/starGrid(Clone)"), star,type,starSize,starScale)
SetHeroStars(this.spLoader, Util.GetGameObject(go, "upZhenInfo/starGrid"), star,starType,starSize,starScale)
SetHeroStars(this.spLoader, Util.GetGameObject(go, "upZhenInfo/starGrid"), star,starType,starSize,starScale,nil,Vector3.New(0,0,15))
Util.SetParticleSortLayer(Util.GetGameObject(go, "upZhenInfo/starGrid/starGrid(Clone)"), this.sortingOrder + 3)
-- Util.AddOnceClick( Util.GetGameObject(go, "upZhenInfo/upZhenClick"), function()
-- UIManager.OpenPanel(UIName.PokemonInfoPanel,curData,PokemonManager.GetPokemonUpZhenDatas())