예제 #1
0
    private void changeChildButton()
    {
        ChatSelectBtns component = GameObject.Find("Main").GetComponent <ChatSelectBtns>();

        if (component != null)
        {
            message = string.Empty;
            GlobalVars.Instance.whisperNickTo = string.Empty;
            component.changeChildIdx(chatMode);
        }
    }
예제 #2
0
    private void Start()
    {
        GameObject gameObject = GameObject.Find("Main");

        if (null != gameObject)
        {
            ChatSelectBtns component = gameObject.GetComponent <ChatSelectBtns>();
            if (component != null)
            {
                component.chatModeBattle();
            }
        }
    }
예제 #3
0
    private void ApplyFocus()
    {
        string nameOfFocusedControl = GUI.GetNameOfFocusedControl();

        if (nameOfFocusedControl != "ChatInput")
        {
            GUI.FocusControl("ChatInput");
        }
        ChatSelectBtns component = GameObject.Find("Main").GetComponent <ChatSelectBtns>();

        if (component != null)
        {
            component.rcBox(offset.x + chatBtnSize, (float)Screen.height - offset.y + 2f);
        }
    }
예제 #4
0
    public void Start()
    {
        chatQ      = new Queue <ChatText>();
        chatMode   = ChatText.CHAT_TYPE.NORMAL;
        bBtnActive = true;
        GameObject gameObject = GameObject.Find("Main");

        if (null != gameObject)
        {
            ChatSelectBtns component = gameObject.GetComponent <ChatSelectBtns>();
            if (component != null)
            {
                component.chatModeLobby();
            }
        }
    }
예제 #5
0
    public void SetChatStyle(LOBBYCHAT_STYLE style)
    {
        switch (style)
        {
        case LOBBYCHAT_STYLE.HIGH:
            crdInputTxtFld = crdInputTxtFldLobby;
            crdClient      = crdChatClientHigh;
            crdChatRead    = crdChatClientHigh;
            break;

        case LOBBYCHAT_STYLE.MIDDLE:
            crdInputTxtFld = crdInputTxtFldGR;
            crdClient      = crdChatClientMid;
            crdChatRead    = crdChatClientMid;
            break;

        case LOBBYCHAT_STYLE.LOW:
            crdInputTxtFld = crdInputTxtFldLobby;
            crdClient      = crdChatClientLow;
            crdChatRead    = crdChatClientLow;
            break;

        case LOBBYCHAT_STYLE.CLANMATCH:
            crdInputTxtFld = crdInputTxtFldCM;
            crdClient      = crdChatClientCM;
            crdChatRead    = crdChatClientCM;
            break;
        }
        crdChatRead.y      += chatReadStartY;
        crdChatRead.height -= chatReadHeightSub;
        ChatSelectBtns component = GameObject.Find("Main").GetComponent <ChatSelectBtns>();

        if (component != null)
        {
            component.rcBox(crdInputTxtFld.x, crdInputTxtFld.y);
        }
    }