SetCommitDelegate() public method

Sets the delegate to be called when the content of the field is "committed" (when the return key is pressed on a single-line field, or when the "Done" button is pressed on an iOS keyboard). NOTE: This will unset any previously assigned commit delegate.
public SetCommitDelegate ( EZKeyboardCommitDelegate del ) : void
del EZKeyboardCommitDelegate The delegate to be called.
return void
Ejemplo n.º 1
0
    void Awake()
    {
        txtField.SetCommitDelegate(MyCommitDelegate);
        UISystem.Instance.AddHollowWindow(list.gameObject);
        list.AddInputDelegate(scrollListInputDelegate);
        listSlider.AddInputDelegate(scrollListInputDelegate);
        for (int i = 0; i < talkChannelMenu.Count; i++)
        {
            mChannelMenuPos.Add(talkChannelMenu[i].gameObject.transform.localPosition);
        }

        channelMenus.SetActiveRecursively(false);

        CEventSystem.Instance.RegisterEventHandle(GAME_EVENT_ID.GE_UI_INFOS, HandelUIInfos);
        CEventSystem.Instance.RegisterEventHandle(GAME_EVENT_ID.GE_CHAT_MESSAGE, OnEvent);
        CEventSystem.Instance.RegisterEventHandle(GAME_EVENT_ID.GE_PLAYER_ENTER_WORLD, OnEvent);
    }