예제 #1
0
 public override void Init()
 {
     base.Init();
     this.backpackGrid = base.GetChildByType <XUiC_Backpack>();
     this.txtInput     = (XUiC_TextInput)this.windowGroup.Controller.GetChildById("searchInput");
     if (this.txtInput != null)
     {
         this.txtInput.OnChangeHandler += this.HandleOnChangeHandler;
         this.txtInput.OnSubmitHandler += this.HandleOnSubmitHandler;
     }
 }
예제 #2
0
    public override void Init()
    {
        base.Init();
        XUiV_Button viewComponent = (XUiV_Button)GetChildById("clickable").ViewComponent;

        _boxLabelTextService = new BoxLabelTextService();

        textInput = GetChildByType <XUiC_TextInput>();
        textInput.OnChangeHandler        += new XUiEvent_InputOnChangedEventHandler(TextInput_OnChangeHandler);
        textInput.OnSubmitHandler        += new XUiEvent_InputOnSubmitEventHandler(TextInput_OnSubmitHandler);
        textInput.OnInputAbortedHandler  += new XUiEvent_InputOnAbortedEventHandler(TextInput_OnInputAbortedHandler);
        viewComponent.Controller.OnPress += new XUiEvent_OnPressEventHandler(closeButton_OnPress);
    }