Exemplo n.º 1
0
    // Use this for initialization
    private void Awake()
    {
        mkernelModule  = NFPluginManager.Instance().FindModule <NFIKernelModule>();
        mClassModule   = NFPluginManager.Instance().FindModule <NFIClassModule>();
        mLoginModule   = NFPluginManager.Instance().FindModule <NFLoginModule>();
        mElementModule = NFPluginManager.Instance().FindModule <NFIElementModule>();

        int       iNum    = 0;
        Transform tParent = this.transform.parent;

        while (tParent)
        {
            rowView = tParent.GetComponent <NFRecordRowView> ();
            if (rowView != null)
            {
                rowView.AddColView(col, this);
                break;
            }

            iNum++;
            if (iNum > 3)
            {
                break;
            }

            tParent = tParent.parent;
        }
    }
Exemplo n.º 2
0
 public void UpdateEvent(NFGUID self, string recordName, int nRow, NFRecordRowView view)
 {
     for (int i = 0; i < updateEventHandler.Count; ++i)
     {
         NFRecordRowView.RowViewUpdateEventHandler handler = updateEventHandler [i];
         handler(self, recordName, nRow, view);
     }
 }
Exemplo n.º 3
0
    private IEnumerator CreateObject(NFGUID self, NFRecordRowView go, NFRecordRowData rowData)
    {
        NFRecordRowView rowObject = GameObject.Instantiate(rowViewItem);

        if (rowObject)
        {
            rowObject.transform.parent = this.transform;
            rowObject.SetData(self, recordName, this, rowData);
        }

        yield return(0);
    }
Exemplo n.º 4
0
    private IEnumerator CreateObject(NFGUID self, NFRecordRowView go, NFRecordRowData rowData)
    {
        yield return(0);

        NFRecordRowView rowObject = GameObject.Instantiate(go);

        if (rowObject)
        {
            rowObject.transform.SetParent(this.transform);
            rowObject.transform.localScale = Vector3.one;
            rowObject.SetData(self, recordName, this, rowData);
        }
    }