【主界面】右上伸缩条首充引导调整,修行调整
parent
f38620058c
commit
f3cf294f42
|
@ -20484,9 +20484,9 @@ RectTransform:
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 2025930671981306296}
|
m_GameObject: {fileID: 2025930671981306296}
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 100}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 0.7529412, y: 0.7529412, z: 0.7529412}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 791836871433561562}
|
- {fileID: 791836871433561562}
|
||||||
- {fileID: 934965601362156588}
|
- {fileID: 934965601362156588}
|
||||||
|
@ -20495,9 +20495,9 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 1}
|
m_AnchorMin: {x: 1, y: 1}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: -65}
|
m_AnchoredPosition: {x: -42, y: -136}
|
||||||
m_SizeDelta: {x: 160, y: 400}
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
m_Pivot: {x: 1, y: 1}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1214399939458572418
|
--- !u!222 &1214399939458572418
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -21942,8 +21942,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
m_AnchorMin: {x: 0.5, y: 1}
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
m_AnchorMax: {x: 0.5, y: 1}
|
||||||
m_AnchoredPosition: {x: 80, y: 0}
|
m_AnchoredPosition: {x: 48, y: 72}
|
||||||
m_SizeDelta: {x: 160, y: 709.92}
|
m_SizeDelta: {x: 170, y: 709.92}
|
||||||
m_Pivot: {x: 1, y: 1}
|
m_Pivot: {x: 1, y: 1}
|
||||||
--- !u!222 &6392692323906310469
|
--- !u!222 &6392692323906310469
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -64128,7 +64128,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
m_AnchorMin: {x: 0.5, y: 1}
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
m_AnchorMax: {x: 0.5, y: 1}
|
||||||
m_AnchoredPosition: {x: 80, y: 0}
|
m_AnchoredPosition: {x: 48, y: 72}
|
||||||
m_SizeDelta: {x: 160, y: 709.92}
|
m_SizeDelta: {x: 160, y: 709.92}
|
||||||
m_Pivot: {x: 1, y: 1}
|
m_Pivot: {x: 1, y: 1}
|
||||||
--- !u!114 &6888282265971651260
|
--- !u!114 &6888282265971651260
|
||||||
|
@ -67487,10 +67487,10 @@ MonoBehaviour:
|
||||||
m_Padding:
|
m_Padding:
|
||||||
m_Left: 0
|
m_Left: 0
|
||||||
m_Right: 0
|
m_Right: 0
|
||||||
m_Top: 50
|
m_Top: 85
|
||||||
m_Bottom: 50
|
m_Bottom: 50
|
||||||
m_ChildAlignment: 1
|
m_ChildAlignment: 1
|
||||||
m_Spacing: 20
|
m_Spacing: 25
|
||||||
m_ChildForceExpandWidth: 0
|
m_ChildForceExpandWidth: 0
|
||||||
m_ChildForceExpandHeight: 0
|
m_ChildForceExpandHeight: 0
|
||||||
m_ChildControlWidth: 0
|
m_ChildControlWidth: 0
|
||||||
|
|
|
@ -109,11 +109,11 @@ function this.InitData(guideData)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 测试功能引导用
|
-- 测试功能引导用
|
||||||
-- Timer.New(function()
|
Timer.New(function()
|
||||||
-- this.OnFunctionOpen(86)
|
this.OnFunctionOpen(100200)
|
||||||
-- print("6666666")
|
print("6666666")
|
||||||
-- --this.HongMengGuideFun()
|
--this.HongMengGuideFun()
|
||||||
-- end, 1):Start()
|
end, 1):Start()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -764,6 +764,7 @@ end
|
||||||
|
|
||||||
--设置右侧条
|
--设置右侧条
|
||||||
function this.SetRightBarSize()
|
function this.SetRightBarSize()
|
||||||
|
this.RightUp2:SetActive(PlayerManager.level >= 5)
|
||||||
local bgSize = Util.GetGameObject(this.RightUp2,"BG"):GetComponent("RectTransform")
|
local bgSize = Util.GetGameObject(this.RightUp2,"BG"):GetComponent("RectTransform")
|
||||||
local btn = Util.GetGameObject(this.RightUp2,"BG/Button")
|
local btn = Util.GetGameObject(this.RightUp2,"BG/Button")
|
||||||
local btnImg = Util.GetGameObject(this.RightUp2,"BG/Button"):GetComponent("RectTransform")
|
local btnImg = Util.GetGameObject(this.RightUp2,"BG/Button"):GetComponent("RectTransform")
|
||||||
|
@ -772,8 +773,8 @@ function this.SetRightBarSize()
|
||||||
|
|
||||||
local str = PlayerPrefs.GetInt(PlayerManager.uid.."MainRightBarSetting")
|
local str = PlayerPrefs.GetInt(PlayerManager.uid.."MainRightBarSetting")
|
||||||
if not str or str == 0 then
|
if not str or str == 0 then
|
||||||
bgSize.sizeDelta = Vector3.New(160,276,0)
|
bgSize.sizeDelta = Vector3.New(160,320,0)
|
||||||
rectSize.sizeDelta = Vector3.New(160,176,0)
|
rectSize.sizeDelta = Vector3.New(160,220,0)
|
||||||
btnImg.rotation = Quaternion.Euler(Vector3.New(0,0,-90))
|
btnImg.rotation = Quaternion.Euler(Vector3.New(0,0,-90))
|
||||||
else
|
else
|
||||||
bgSize.sizeDelta = gridSize.sizeDelta + Vector3.New(0,100,0)
|
bgSize.sizeDelta = gridSize.sizeDelta + Vector3.New(0,100,0)
|
||||||
|
@ -790,7 +791,7 @@ function this.SetRightBarSize()
|
||||||
btnImg.rotation = Quaternion.Euler(Vector3.New(0,0,t))
|
btnImg.rotation = Quaternion.Euler(Vector3.New(0,0,t))
|
||||||
end), 90, 0.3):SetEase(Ease.Linear)
|
end), 90, 0.3):SetEase(Ease.Linear)
|
||||||
--底图拉伸
|
--底图拉伸
|
||||||
DoTween.To(DG.Tweening.Core.DOGetter_float( function () return 176 end),
|
DoTween.To(DG.Tweening.Core.DOGetter_float( function () return 220 end),
|
||||||
DG.Tweening.Core.DOSetter_float(function (t)
|
DG.Tweening.Core.DOSetter_float(function (t)
|
||||||
rectSize.sizeDelta = Vector3.New(160,t,0)
|
rectSize.sizeDelta = Vector3.New(160,t,0)
|
||||||
bgSize.sizeDelta = Vector3.New(160,t + 100,0)
|
bgSize.sizeDelta = Vector3.New(160,t + 100,0)
|
||||||
|
@ -807,7 +808,7 @@ function this.SetRightBarSize()
|
||||||
DG.Tweening.Core.DOSetter_float(function (t)
|
DG.Tweening.Core.DOSetter_float(function (t)
|
||||||
rectSize.sizeDelta = Vector3.New(160,t,0)
|
rectSize.sizeDelta = Vector3.New(160,t,0)
|
||||||
bgSize.sizeDelta = Vector3.New(160,t + 100,0)
|
bgSize.sizeDelta = Vector3.New(160,t + 100,0)
|
||||||
end), 176, 0.3):SetEase(Ease.Linear)
|
end), 220, 0.3):SetEase(Ease.Linear)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -84,7 +84,7 @@ function Practice:BindEvent()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnChangeName)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnChangeName)
|
||||||
if PracticeManager.PracticeBigLevel - oldBigLevel == 1 then
|
if PracticeManager.PracticeBigLevel - oldBigLevel == 1 then
|
||||||
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice,XinXianConfig[PracticeManager.PracticeLevel])
|
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice,XinXianConfig[PracticeManager.PracticeLevel])
|
||||||
if PracticeManager.PracticeBigLevel == 3 then
|
if PracticeManager.PracticeBigLevel == 2 then
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Practice.PracticeGuide)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Practice.PracticeGuide)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue