Exemplo n.º 1
0
    public void Show(System.Action _hideAction = null)
    {
        if (m_Show)
        {
            return;
        }
        m_Show    = true;
        IsViewTab = true;

        hideAction = _hideAction;

        if (AndroidBackKeyManager.HasInstance)
        {
            //バックキーが押された時のアクションを登録
            AndroidBackKeyManager.Instance.StackPush(gameObject, OnClose);
        }

        Window.SetPositionAjustStatusBar(new Vector2(604.5f, 0.0f), new Vector2(-71.0f, -400.0f));

        ShadowPanel.GetComponent <Image>().DOFade(FadeShowAlpha, AnimationTime);

        //Window.transform.DOScaleY(WindowShowScale, AnimationTime).OnComplete(() =>
        Window.GetComponent <RectTransform>().DOAnchorPosX(32, AnimationTime).OnComplete(() =>
        {
            m_Ready = true;
        });
    }
Exemplo n.º 2
0
    private void Awake()
    {
        GetComponent <M4uContextRoot>().Context = this;
        RegionList = new List <RegionContext>();

        if (AndroidBackKeyManager.HasInstance)
        {
            //バックキーが押された時のアクションを登録
            AndroidBackKeyManager.Instance.StackPush(gameObject, OnClose);
        }

        m_WindowRect = Window.GetComponent <RectTransform>();
        Window.SetPosition(new Vector2(m_WindowRect.rect.width, m_WindowRect.anchoredPosition.y));
        Window.transform.localScale = new Vector3(0, 0, 0);
    }
Exemplo n.º 3
0
    void Awake()
    {
        GetComponent <M4uContextRoot>().Context = this;

        if (AndroidBackKeyManager.HasInstance)
        {
            //バックキーが押された時のアクションを登録
            AndroidBackKeyManager.Instance.StackPush(gameObject, OnSelectReturn);
        }

        GameObject charParent = null;

        if (m_CharaImageRoot.Length > 0)
        {
            charParent = m_CharaImageRoot[0];
        }
        m_Character = GeneralWindowCharacterView.Attach(charParent);

        for (int i = 0; i < (int)ButtonEventType.MAX; ++i)
        {
            m_ButtunActionList[i] = null;
        }

        SetUpButtons();

        m_WindowRect = m_Window.GetComponent <RectTransform>();
        m_Window.SetPosition(new Vector2(m_WindowRect.rect.width, m_WindowRect.anchoredPosition.y));
        m_Window.transform.localScale = new Vector3(0, 0, 0);
    }