예제 #1
0
    private void ShowChatLogFrame()
    {
        this.m_chatLogFrame = UnityEngine.Object.Instantiate <ChatLogFrame>(this.m_Prefabs.m_ChatLogFrame);
        bool flag = base.transform.localScale == BaseUI.Get().m_Bones.m_QuickChatVirtualKeyboard.localScale;

        if ((((UniversalInputManager.Get().IsTouchMode() && W8Touch.s_isWindows8OrGreater) || W8Touch.Get().IsVirtualKeyboardVisible()) && flag) || flag)
        {
            this.DefaultChatTransform();
        }
        this.m_chatLogFrame.transform.parent   = base.transform;
        this.m_chatLogFrame.transform.position = this.m_Bones.m_ChatLog.position;
        if ((((UniversalInputManager.Get().IsTouchMode() && W8Touch.s_isWindows8OrGreater) || W8Touch.Get().IsVirtualKeyboardVisible()) && flag) || flag)
        {
            this.TransformChatForKeyboard();
        }
        ChatMgr.Get().OnChatLogFrameShown();
    }
예제 #2
0
 private void HideChatLogFrame()
 {
     UnityEngine.Object.Destroy(this.m_chatLogFrame.gameObject);
     this.m_chatLogFrame = null;
     ChatMgr.Get().OnChatLogFrameHidden();
 }