private void OnEnable() { table = new TableView(this, typeof(AssetCheckData)); table.AddColum("resourcePath", "Path", 0.5f, TextAnchor.MiddleLeft); table.AddColum("logMsg", "CheckFailMsg", 0.5f, TextAnchor.MiddleLeft); table.onSelected += TableOnSelected; OnTableRefresh(dataList); openCheck = AssetCheckTool.OwnCheckOpen(); }
public void OnEnable(Rect pos, EditorWindow parent) { if (view == null) { view = new TableView(parent, typeof(KeyPointData)); view.AddColum("functionName", "Action_Event", 0.3f); view.AddColum("floatParameter", "float", 0.2f); view.AddColum("intParameter", "int", 0.1f); view.AddColum("stringParameter", "string", 0.2f); view.AddColum("time", "time", 0.2f); view.onSelected += OnSelectChange; } }
public void OnEnable(Rect pos, EditorWindow parent) { m_Parent = parent; if (view == null) { view = new TableView(parent, typeof(Table_Client_Action_Res)); view.AddColum("id", "Id", 0.1f); view.AddColum("path", "Path", 0.5f); view.AddColum("remark", "Remark", 0.4f); view.onSelected += OnSelectChange; } //获取动作资源数据 UpdateActionRes(); }
private void OnEnable() { checkManager = new AssetCheckManager(); checkManager.OnEnable(); checkManager.onCheckEndCallBack = OnCheckEndCallBack; checkManager.onFormatEndCallBack = OnFormatEndCallBack; checkManager.SetFilePath(filePath); table = new TableView(this, typeof(AssetCheckData)); table.AddColum("resourcePath", "Path", 0.5f, TextAnchor.MiddleLeft); table.AddColum("logMsg", "CheckFailMsg", 0.5f, TextAnchor.MiddleLeft); table.onSelected += TableOnSelected; //checkWinItemList.Add(new AssetCheckWinItem(this,this,"Texture")); //checkWinItemList.Add(new AssetCheckWinItem(this, this, "Model")); //对Option检查项做区分 var typeArr = System.Reflection.Assembly.GetExecutingAssembly().GetTypes(); int typeCount = typeArr.Length; int attributeArrLen = 0; for (int i = 0; i < typeCount; i++) { var type = typeArr[i]; var attributeArr = type.GetCustomAttributes(typeof(AssetCheckAttribute), false) as AssetCheckAttribute[]; attributeArrLen = attributeArr.Length; for (int j = 0; j < attributeArrLen; j++) { var attribute = attributeArr[j]; List <AssetItemWinData> optionList; if (!checkOptionDic.TryGetValue(attribute.checkType, out optionList)) { optionList = new List <AssetItemWinData>(); checkOptionDic.Add(attribute.checkType, optionList); } AssetItemWinData itemData = new AssetItemWinData(); itemData.checkOption = attribute.option; itemData.desc = attribute.desc; itemData.select = false; optionList.Add(itemData); } } }
public void OnEnable(Rect pos, EditorWindow parent) { m_Parent = parent; if (view == null) { view = new TableView(parent, typeof(Table_Skill)); view.AddColum("id", "Id", 0.1f, TextAnchor.MiddleLeft); view.AddColum("name_i18n", "Name", 0.3f); view.AddColum("pre_duration", "前摇时间", 0.15f); view.AddColum("cast_duration", "施法时间", 0.15f); view.AddColum("sing_duration", "吟唱时间", 0.15f); view.AddColum("post_duration", "后摇时间", 0.15f); view.onSelected += OnSelectChange; } //刷新数据信息 //动作资源数据 UpdateActionRes(); //技能动作设置 UpdateSkillAction(); //客户端动作数据 UpdateClientAction(); //更新特效资源数据 UpdateClientEffect(); }