【主界面】左上角按钮自动排列

dev_chengFeng
gaoxin 2021-05-27 18:20:32 +08:00
parent 8ebd47a087
commit 9f8858b4f7
2 changed files with 5 additions and 5 deletions

View File

@ -67806,10 +67806,10 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
tweenSequeue: tweenSequeue:
- initV3: {x: -146, y: 202.7, z: 0} - initV3: {x: -146, y: -64, z: 0}
initFloat: 0 initFloat: 0
isInit: 1 isInit: 1
changeV3: {x: 117, y: 202.7, z: 0} changeV3: {x: 117, y: -64, z: 0}
changeFloat: 0 changeFloat: 0
duration: 0.2 duration: 0.2
delay: 0 delay: 0
@ -78029,7 +78029,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -102, y: -118} m_AnchoredPosition: {x: -102, y: 0}
m_SizeDelta: {x: 100, y: 100} m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &6454860829896586398 --- !u!114 &6454860829896586398
@ -89685,7 +89685,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 117, y: -62} m_AnchoredPosition: {x: 117, y: -64}
m_SizeDelta: {x: 234, y: 112} m_SizeDelta: {x: 234, y: 112}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4556295833810989776 --- !u!222 &4556295833810989776

View File

@ -75,7 +75,7 @@ function this:InitComponent()
---------------topLeftPart---------------- ---------------topLeftPart----------------
-- 七日登陆奖励预览入口 -- 七日登陆奖励预览入口
this.sgBtn=Util.GetGameObject(self.gameObject,"LeftUp/seven") this.sgBtn=Util.GetGameObject(self.gameObject,"LeftUp/GameObject/seven")
this.sgRoot=Util.GetGameObject(this.sgBtn,"sevenGift/root") this.sgRoot=Util.GetGameObject(this.sgBtn,"sevenGift/root")
this.sgItemView = SubUIManager.Open(SubUIConfig.ItemView,this.sgRoot.transform) this.sgItemView = SubUIManager.Open(SubUIConfig.ItemView,this.sgRoot.transform)
this.sgType=Util.GetGameObject(this.sgBtn,"sevenGift/type"):GetComponent("Text") this.sgType=Util.GetGameObject(this.sgBtn,"sevenGift/type"):GetComponent("Text")