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
    public void Show(Action hideAction = null)
    {
        if (m_Show)
        {
            return;
        }
        m_Show = true;

        m_HideAction = hideAction;

        m_Window.SetPositionAjustStatusBar(new Vector2(0, 0));
        m_Window.transform.localScale = new Vector3(1, 0, 1);

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

        m_Window.transform.DOScaleY(1, AnimationTime).OnComplete(() =>
        {
            setup();
            StartCoroutine(WaitScrollContent(() =>
            {
                m_ScrollRect.transform.localScale = new Vector3(1, 1, 1);
                m_Ready = true;
            }));
        });
    }
Exemplo n.º 3
0
    public void Show(System.Action _hideAction = null)
    {
        if (m_Show)
        {
            return;
        }
        m_Show = true;

        hideAction = _hideAction;

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

        WindowRoot.SetPositionAjustStatusBar(new Vector2(0.0f, 0.0f), new Vector2(0.0f, 0.0f));

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

        setScrollTop();

        Window.transform.DOScaleY(WindowShowScale, AnimationTime)
        .OnUpdate(() =>
        {
            setScrollTop();
        })
        .OnComplete(() =>
        {
            setScrollTop();
            m_Ready = true;
        });
    }
Exemplo n.º 4
0
 public void setPanelSize(GLOBALMENU_SEQ _seq)
 {
     if (_seq == GLOBALMENU_SEQ.TOP_MENU)
     {
         m_Context.IsActiveTopMenu = true;
     }
     else
     {
         m_Context.IsActiveTopMenu = false;
         m_Panel.SetPositionAjustStatusBar(new Vector2(-8, -106), new Vector2(-16, -226));
     }
 }
Exemplo n.º 5
0
    void Awake()
    {
        GetComponent <M4uContextRoot>().Context = this;
        isShow = false;
        m_PanelRoot.transform.localScale = new Vector3(1, 0, 1);
        ScrollRect scroll = m_RecordPanel.GetComponentInChildren <ScrollRect>();

        scroll.gameObject.transform.localScale = new Vector3(1, 0, 1);
        m_Window.SetPositionAjustStatusBar(Vector2.zero);

        // 表示の一瞬アニメーションしていない間があるので、ここで設定
        m_CharaImage.gameObject.SetActive(false);
        m_TextBG.gameObject.SetActive(false);
        m_TextRoot.gameObject.SetActive(false);
    }
Exemplo n.º 6
0
    public void setting()
    {
        CharaImage.ImageScale = 1.25f;
        BGWindow.SetPositionAjustStatusBar(new Vector2(0, -67), new Vector2(-8, -134));
        CharaImageParts.SetTopAndBottomAjustStatusBar(new Vector2(-53, -444));
        ShadowImageParts.SetTopAndBottomAjustStatusBar(new Vector2(-53, -444));

        //
        m_UnitNamePanel.SetPositionAjustStatusBar(new Vector2(-16, -135));

        //
        m_UnitParamPanel.SetPositionAjustStatusBar(new Vector2(0, -236));
        m_UnitParamPanel.IsActiveBG = true;

        //
        m_UnitStoryPanel.SetPosition(new Vector2(0, -8));

        //
        m_UnitSkillPanel.SetPositionAjustStatusBar(new Vector2(0, -29), new Vector2(-40, -413));

        //
        m_UnitLinkPanel.SetPositionAjustStatusBar(new Vector2(0, -29), new Vector2(-40, -413));

        //
        m_UnitEvolvePanel.SetPositionAjustStatusBar(new Vector2(0, -120.75f), new Vector2(-16, -238.5f));

        //
        m_UnitDetailPanel.SetPositionAjustStatusBar(new Vector2(0, -117.75f), new Vector2(-16, -235.5f));

        //
        IsViewEvolveNone = false;
        EvolveNoneText   = GameTextUtil.GetText("unit_evolution1");

        UnityUtil.SetObjectEnabledOnce(m_UnitParamPanel.gameObject, false);
        UnityUtil.SetObjectEnabledOnce(m_UnitStoryPanel.gameObject, false);
        UnityUtil.SetObjectEnabledOnce(m_UnitSkillPanel.gameObject, false);
        UnityUtil.SetObjectEnabledOnce(m_UnitLinkPanel.gameObject, false);
        UnityUtil.SetObjectEnabledOnce(m_UnitEvolvePanel.gameObject, false);
        UnityUtil.SetObjectEnabledOnce(m_UnitDetailPanel.gameObject, false);

        for (int i = 0; i < (int)ToggleType.Max; i++)
        {
            m_Setup[i] = false;
        }

        m_bSetting = true;
    }
Exemplo n.º 7
0
    private void Awake()
    {
        IsViewDialog = false;

        GetComponent <M4uContextRoot>().Context = this;

        if (SceneObjReferMainMenu.HasInstance)
        {
            m_UnitLinkPanel = UnityUtil.SetupPrefab <UnitLinkPanel>(SceneObjReferMainMenu.Instance.m_UnitLinkPanel, PanelRoot);
        }
        else
        {
            m_UnitLinkPanel = UnityUtil.SetupPrefab <UnitLinkPanel>("Prefab/UnitLinkPanel/UnitLinkPanel", PanelRoot);
        }

        Window.SetPositionAjustStatusBar(new Vector2(0, -17), new Vector2(-40, -446));


        m_UnitLinkPanel.SetPosition(new Vector2(0, -2), new Vector2(-20, -60), true);

        //m_UnitLinkPanel.transform.Find("Viewport/Content").localScale = new Vector3(0.75f, 0.75f, 1.0f);
    }
Exemplo n.º 8
0
    public void Show(Action hideAction = null)
    {
        if (m_Show)
        {
            return;
        }
        m_Show = true;

        m_HideAction = hideAction;

        m_Window.SetPositionAjustStatusBar(new Vector2(0, m_WindowRect.anchoredPosition.y));
        m_Window.transform.localScale = new Vector3(1, 0, 1);

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

        m_Window.transform.DOScaleY(1f, AnimationTime).OnComplete(() =>
        {
            SetIndex(0);
            m_Ready = true;
        });

        return;
    }