示例#1
0
 public void ResetDepth()
 {
     if (Application.get_isPlaying())
     {
         DepthManager.SetDepth(base.get_gameObject(), this.SortingOrder);
     }
 }
示例#2
0
 public void PauseGuideSystem(bool isPause)
 {
     if (isPause)
     {
         DepthManager.SetDepth(base.get_gameObject(), 0);
     }
     else
     {
         DepthManager.SetDepth(base.get_gameObject(), 10002);
     }
 }
示例#3
0
    public void GuideOn()
    {
        this.m_isGuideOn = true;
        LayerSystem.SetGameObjectLayer(base.get_gameObject(), "UI", 1);
        DepthManager.SetGraphicRaycaster(base.get_gameObject());
        DepthManager.SetDepth(base.get_gameObject(), 10002);
        Canvas component = base.GetComponent <Canvas>();

        if (component != null)
        {
            component.set_overrideSorting(true);
            component.set_enabled(true);
        }
    }
示例#4
0
 protected override void InitUI()
 {
     base.InitUI();
     DepthManager.SetDepth(base.FindTransform("Layer1").get_gameObject(), 10001);
     DepthManager.SetGraphicRaycaster(base.FindTransform("Layer1").get_gameObject());
     DepthManager.SetDepth(base.FindTransform("Layer2").get_gameObject(), 10003);
     this.Pause                      = base.FindTransform("Pause");
     this.m_goButtonSkip             = base.FindTransform("ButtonSkip").get_gameObject();
     this.MaskScreen                 = base.FindTransform("MaskScreen");
     this.m_spMaskScreen             = base.FindTransform("MaskScreen").GetComponent <Image>();
     this.JumpContinueUI             = base.FindTransform("JumpContinueUI");
     this.m_spContinueIcon           = base.FindTransform("ContinueIcon").GetComponent <Image>();
     this.m_spContinueIconName       = base.FindTransform("ContinueIconName").GetComponent <Image>();
     this.m_spContinueIconBg         = base.FindTransform("ContinueIconBg").GetComponent <Image>();
     this.m_lblContinueTip           = base.FindTransform("ContinueTip").GetComponent <Text>();
     this.ContinueFX                 = base.FindTransform("ContinueFX");
     this.JumpDriftUI                = (base.FindTransform("JumpDriftUI") as RectTransform);
     this.JumpDriftUIPos             = (base.FindTransform("JumpDriftUIPos") as RectTransform);
     this.m_spJumpDriftUIIcon        = base.FindTransform("JumpDriftUIIcon").GetComponent <Image>();
     this.m_spJumpDriftUIIconBg      = base.FindTransform("JumpDriftUIIconBg").GetComponent <Image>();
     this.FingerUI                   = (base.FindTransform("FingerUI") as RectTransform);
     this.FingerUIPos                = (base.FindTransform("FingerUIPos") as RectTransform);
     this.InstructionBubbleUI        = (base.FindTransform("InstructionBubbleUI") as RectTransform);
     this.InstructionBubbleBg1       = (base.FindTransform("InstructionBubbleBg1") as RectTransform);
     this.InstructionBubbleBg2       = (base.FindTransform("InstructionBubbleBg2") as RectTransform);
     this.m_lblInstructionBubbleDesc = base.FindTransform("InstructionBubbleDesc").GetComponent <Text>();
     this.InstructionRoleUI          = (base.FindTransform("InstructionRoleUI") as RectTransform);
     this.InstructionRoleBg          = (base.FindTransform("InstructionRoleBg") as RectTransform);
     this.InstructionRoleIcon        = base.FindTransform("InstructionRoleIcon");
     this.m_lblInstructionRoleDesc   = base.FindTransform("InstructionRoleDesc").GetComponent <Text>();
     this.ImageShowUI                = (base.FindTransform("ImageShowUI") as RectTransform);
     this.m_src                      = base.FindTransform("ISUIImageSR").GetComponent <ScrollRectCustom>();
     this.m_src.movePage             = true;
     this.m_src.Arrow2First          = base.FindTransform("ISUIArrowL");
     this.m_src.Arrow2Last           = base.FindTransform("ISUIArrowR");
     this.m_src.OnPageChanged        = delegate(int pageIndex)
     {
         PageUIView.Instance.SetPage(this.m_src.GetPageNum(), pageIndex);
     };
     this.m_listPool = base.FindTransform("ISUIImageList").GetComponent <ListPool>();
     this.m_listPool.SetItem("GuideUIImageShowItem");
     this.m_listPool.isAnimation = false;
     this.ResetGuideUI();
     EventTriggerListener.Get(base.FindTransform("ButtonSkip").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnButtonSkip);
     EventTriggerListener.Get(base.FindTransform("MaskScreen").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnMaskScreen);
     EventTriggerListener.Get(base.FindTransform("ButtonContinue").get_gameObject()).onClick  = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonContinue);
     EventTriggerListener.Get(base.FindTransform("ISUIButtonClose").get_gameObject()).onClick = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonClose);
     EventTriggerListener.Get(base.FindTransform("ISUIArrowL").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonArrowL);
     EventTriggerListener.Get(base.FindTransform("ISUIArrowR").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonArrowR);
 }
 public void RefreshDepth(int sortingOrder)
 {
     this.SortingOrder = sortingOrder;
     DepthManager.SetDepth(base.get_gameObject(), this.SortingOrder);
 }