【主界面】右上伸缩条红点
parent
8d4d1aa777
commit
9e6dc29cb9
|
@ -9058,6 +9058,80 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &1186197792003753557
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4669862694787853242}
|
||||
- component: {fileID: 2395626743625768328}
|
||||
- component: {fileID: 1854738444977226303}
|
||||
m_Layer: 5
|
||||
m_Name: redPoint
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4669862694787853242
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1186197792003753557}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 791836871433561562}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 32.1, y: 93.5}
|
||||
m_SizeDelta: {x: 30, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2395626743625768328
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1186197792003753557}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &1854738444977226303
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1186197792003753557}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: f9ea4c4aff328ff4abcc21aae0a4fa10, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &1203371376793423508
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -21862,6 +21936,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1956258183123164743}
|
||||
- {fileID: 4669862694787853242}
|
||||
m_Father: {fileID: 2763478119683056422}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -22108,6 +22183,7 @@ GameObject:
|
|||
- component: {fileID: 4196182477682311981}
|
||||
- component: {fileID: 3137880424192743195}
|
||||
- component: {fileID: 8771929481548081679}
|
||||
- component: {fileID: 2877061687933927916}
|
||||
m_Layer: 5
|
||||
m_Name: Image_1
|
||||
m_TagString: Untagged
|
||||
|
@ -22172,6 +22248,26 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &2877061687933927916
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2719273995663898841}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 1
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &2782524026362280290
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -49072,8 +49168,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: -144.00005, y: -77.999954}
|
||||
m_SizeDelta: {x: 148, y: 156}
|
||||
m_AnchoredPosition: {x: -124.00004, y: -77.999954}
|
||||
m_SizeDelta: {x: 148, y: 126}
|
||||
m_Pivot: {x: 0.49999973, y: 0.50000036}
|
||||
--- !u!222 &4883613866719607552
|
||||
CanvasRenderer:
|
||||
|
@ -67392,9 +67488,9 @@ MonoBehaviour:
|
|||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 50
|
||||
m_Bottom: 0
|
||||
m_Bottom: 50
|
||||
m_ChildAlignment: 1
|
||||
m_Spacing: 10
|
||||
m_Spacing: 20
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 0
|
||||
m_ChildControlWidth: 0
|
||||
|
|
|
@ -647,6 +647,7 @@ RedPointType = {
|
|||
TrialReward = 1211,--森罗任务
|
||||
-- 充值
|
||||
Recharge = 120,
|
||||
RightUp2 = 122,--主界面右上角伸缩条
|
||||
|
||||
----礼包相关------
|
||||
Operating = 201, --运营(主界面礼包)
|
||||
|
|
|
@ -242,6 +242,7 @@ function this:InitComponent()
|
|||
this.RightUp.transform.localScale = Vector3.one * UIManager.adapterScale
|
||||
this.RightUp2 = Util.GetGameObject(self.gameObject, "RightUp2")
|
||||
this.RightUp2.transform.localScale = Vector3.one * UIManager.adapterScale
|
||||
this.rpRightUp2 = Util.GetGameObject(this.RightUp2, "BG/redPoint")
|
||||
this.RightUp2Grid = Util.GetGameObject(self.gameObject, "RightUp2/Ract2D/Grid")
|
||||
this.jiantouObj=Util.GetGameObject(self.gameObject, "jiantouObj")
|
||||
end
|
||||
|
@ -606,6 +607,7 @@ function this.BindRedPoint()
|
|||
BindRedPointObject(RedPointType.TianShuMiJuan,this.rpbtnTianShuMiJuan)
|
||||
BindRedPointObject(RedPointType.FifteenDayGift,this.rpFifteenDayGift)
|
||||
BindRedPointObject(RedPointType.Huaxutan,this.rpCompoundHero)
|
||||
BindRedPointObject(RedPointType.RightUp2,this.rpRightUp2)
|
||||
end
|
||||
-- 绑定红点
|
||||
function this.ClearRedPoint()
|
||||
|
@ -625,6 +627,7 @@ function this.ClearRedPoint()
|
|||
ClearRedPointObject(RedPointType.TianShuMiJuan,this.rpbtnTianShuMiJuan)
|
||||
ClearRedPointObject(RedPointType.FifteenDayGift,this.rpFifteenDayGift)
|
||||
ClearRedPointObject(RedPointType.Huaxutan,this.rpCompoundHero)
|
||||
ClearRedPointObject(RedPointType.RightUp2,this.rpRightUp2)
|
||||
end
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
|
@ -756,6 +759,7 @@ function this.CreatActivity()
|
|||
end)
|
||||
end
|
||||
this.SetRightBarSize()
|
||||
-- CheckRedPointStatus(RedPointType.RightUp2)
|
||||
end
|
||||
|
||||
--设置右侧条
|
||||
|
|
|
@ -73,6 +73,7 @@ function this.SettDailyRedPackageTime(time)
|
|||
end
|
||||
|
||||
function this.ResetLocalData(var)--初始化所有本地的每日一刷--1是五点推送、2是登陆检测
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."MainRightBarSetting",0)
|
||||
local func1 = function ()
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten,0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.TimeLimitTen,0)
|
||||
|
|
|
@ -300,6 +300,9 @@ function this.InitRedPointAllRelate()
|
|||
--主角修行
|
||||
RPData:SetParent(RedPointType.Practice_upgrade,RedPointType.Practice)
|
||||
RPData:SetParent(RedPointType.Practice_imprint,RedPointType.Practice)
|
||||
--主界面右上角
|
||||
RPData:SetParent(RedPointType.FirstRecharge,RedPointType.RightUp2)
|
||||
RPData:SetParent(RedPointType.DailyRecharge,RedPointType.RightUp2)
|
||||
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityGroups)) do
|
||||
if v.RpType > 0 and v.RpTypeParent > 0 then
|
||||
RPData:SetParent(v.RpType,v.RpTypeParent)
|
||||
|
|
Loading…
Reference in New Issue