public ElementDataChangedArgs(string key, LuaValue newValue, LuaValue?oldValue = null, DataSyncType syncType = DataSyncType.Local)
 {
     this.Key      = key;
     this.NewValue = newValue;
     this.OldValue = oldValue;
     this.SyncType = syncType;
 }
Exemple #2
0
        public void Detect()
        {
            // 启动探测类型
            Type = DetectType(gameObject);

            if (!CheckName(Name))
            {
                Type = WidgetType.Unknown;
                Debug.LogError(string.Format("UIBinder: 对象名包含非法字符(不能以数字开头), 生成代码会导致错误, {0} ", gameObject.name));
            }

            SyncType = Framework.DataSyncType.PresenterToView;
        }
 public ElementData(string key, LuaValue value, DataSyncType syncType)
 {
     this.Key      = key;
     this.Value    = value;
     this.SyncType = syncType;
 }