Esempio n. 1
0
        static public Cell Get(HS_UIListViewCell cell)
        {
            Transform t   = cell.transform;
            Cell      obj = new Cell();

            obj._image = HS_Base.FindProperty <UnityEngine.UI.Image>(t, "Image");
            obj._index = HS_Base.FindProperty <UnityEngine.UI.Text>(t, "Index");
            obj._data  = HS_Base.FindProperty <UnityEngine.UI.Text>(t, "Data");
            return(obj);
        }
Esempio n. 2
0
    protected override void OnCreated()
    {
        base.OnCreated();

        Transform transform = this.transform;

        if (transform == HS_ViewManager.root.transform)
        {
            return;
        }

        this._image = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "Image");
    }
Esempio n. 3
0
    protected override void OnCreated()
    {
        base.OnCreated();

        Transform transform = this.transform;

        if (transform == HS_ViewManager.root.transform)
        {
            return;
        }

        this._goldInfo = HS_Base.FindProperty <UnityEngine.RectTransform>(transform, "GoldInfo");

        this._gold      = HS_Base.FindProperty <UnityEngine.UI.Text>(transform, "GoldInfo/Gold");
        this._gold.text = "1234567890";

        this._diamondInfo = HS_Base.FindProperty <UnityEngine.RectTransform>(transform, "DiamondInfo");

        this._diamond      = HS_Base.FindProperty <UnityEngine.UI.Text>(transform, "DiamondInfo/Diamond");
        this._diamond.text = "1234567890";

        this._watering = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "HomeView/Watering");
        this.RegisterButtonClickEvent(this._watering);

        this._home = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "HomeView/Home");
        this.RegisterButtonClickEvent(this._home);

        this._strengthen = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "HomeView/Strengthen");
        this.RegisterButtonClickEvent(this._strengthen);

        this._illustrations = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "HomeView/Illustrations");
        this.RegisterButtonClickEvent(this._illustrations);

        this._weather = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "HomeView/Weather");

        this._humidity = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "HomeView/Humidity");

        this._stars1 = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "StrengthenView/Top/Stars/Stars1");

        this._stars2 = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "StrengthenView/Top/Stars/Stars2");

        this._stars3 = HS_Base.FindProperty <UnityEngine.UI.Image>(transform, "StrengthenView/Top/Stars/Stars3");

        this._sceneName      = HS_Base.FindProperty <UnityEngine.UI.Text>(transform, "StrengthenView/Top/Image (2)/SceneName");
        this._sceneName.text = "名字名字";

        this._strengthenViewClose = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "StrengthenView/StrengthenViewClose");
        this.RegisterButtonClickEvent(this._strengthenViewClose);
    }
Esempio n. 4
0
    protected override void OnCreated()
    {
        base.OnCreated();

        Transform transform = this.transform;

        if (transform == HS_ViewManager.root.transform)
        {
            return;
        }

        this._uIScrollRect                = HS_Base.FindProperty <HS.UI.HS_UIListView>(transform, "UIScrollRect");
        this._uIScrollRect.onInit        += OnListViewInit;
        this._uIScrollRect.onCellCreated += OnCellCreated;
        this._uIScrollRect.onClick       += OnListViewClick;
        this._uIScrollRect.onSelected    += OnListViewSelected;
        this._uIScrollRect.onDeselected  += OnListViewDeselected;
    }
Esempio n. 5
0
    protected override void OnCreated()
    {
        base.OnCreated();

        Transform transform = this.transform;

        if (transform == HS_ViewManager.root.transform)
        {
            return;
        }

        this._start = HS_Base.FindProperty <UnityEngine.UI.Button>(transform, "Start");
        this.RegisterButtonClickEvent(this._start);

        this._inputFieldPName = HS_Base.FindProperty <UnityEngine.UI.InputField>(transform, "InputFieldPName");
        this.RegisterInputFieldEvent(this._inputFieldPName);

        this._inputName = HS_Base.FindProperty <UnityEngine.UI.InputField>(transform, "InputName");
        this.RegisterInputFieldEvent(this._inputName);
    }