竞技场宝箱奖励位置可配
parent
4b946aa324
commit
99f885ac22
|
@ -568,10 +568,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 70.51857, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -425.1864, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &422259127
|
||||
CanvasRenderer:
|
||||
|
@ -741,7 +741,7 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 778723006}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -405508275, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
|
@ -873,10 +873,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 941.41003, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 445.70508, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &849504933
|
||||
CanvasRenderer:
|
||||
|
@ -1064,10 +1064,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 796.2614, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 300.55646, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &996626933
|
||||
CanvasRenderer:
|
||||
|
@ -1330,10 +1330,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 360.81573, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -134.88925, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1294817241
|
||||
CanvasRenderer:
|
||||
|
@ -1442,10 +1442,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 505.9643, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 10.259323, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1311195236
|
||||
CanvasRenderer:
|
||||
|
@ -1630,10 +1630,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 651.11285, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 155.40788, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1863541597
|
||||
CanvasRenderer:
|
||||
|
@ -1742,10 +1742,10 @@ RectTransform:
|
|||
m_Father: {fileID: 778723007}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 215.66714, y: -27.75}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -280.03784, y: 0}
|
||||
m_SizeDelta: {x: 99.99997, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1977301508
|
||||
CanvasRenderer:
|
||||
|
|
|
@ -133,7 +133,6 @@ function this.OnTabChange(index, lastIndex)
|
|||
if lastIndex then
|
||||
this.CloseView(lastIndex)
|
||||
end
|
||||
LogPink("index "..index)
|
||||
this.OpenView(index)
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
local ArenaView = {}
|
||||
local this = ArenaView
|
||||
local rewardBoxBtn = {}
|
||||
|
||||
local arenaBattleReward = ConfigManager.GetConfig(ConfigName.ArenaBattleReward)
|
||||
--初始化组件(用于子类重写)
|
||||
function ArenaView:InitComponent()
|
||||
this.ArenaName = Util.GetGameObject(self.gameObject, "name")
|
||||
|
@ -47,6 +47,7 @@ function ArenaView:InitComponent()
|
|||
rewardBoxBtn = {}
|
||||
for i = 1, 7 do
|
||||
rewardBoxBtn[i] = Util.GetGameObject(self.gameObject, "finalTarget/rewardProgress/rewardBoxBtn (" .. i .. ")")
|
||||
rewardBoxBtn[i].transform.localPosition = Vector3.New(arenaBattleReward[i].Position[1], arenaBattleReward[i].Position[2] ,0)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -323,7 +324,6 @@ function this.ShowRewardBoxProgressData()
|
|||
maxNum = configInfo.BattleTimes
|
||||
end
|
||||
end
|
||||
local arenaBattleReward = ConfigManager.GetConfig(ConfigName.ArenaBattleReward)
|
||||
for i = 1, #rewardBoxBtn do
|
||||
if arenaBattleReward[i] then
|
||||
local state = 1--1 未完成 2 未领取 3 已完成allNums >= arenaBattleReward[i].BattleTimes and false
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue