Exemple #1
0
        public void OnSelectFile(object selected, int col)
        {
            TmpStringInfo texInfo = selected as TmpStringInfo;

            if (texInfo == null)
            {
                return;
            }
            UnityEngine.Object obj = AssetDatabase.LoadAssetAtPath("Assets/StreamingAssets/rpg/" + texInfo._param1, typeof(UnityEngine.Object));
            if (obj == null)
            {
                return;
            }
            EditorGUIUtility.PingObject(obj);
            Selection.activeObject = obj;
        }
Exemple #2
0
        public void OnSelectAnimation(object selected, int col)
        {
            AnimationReportInfo info = selected as AnimationReportInfo;

            if (info == null)
            {
                return;
            }

            List <System.Object> objs = new List <object>();

            for (int i = 0; i < info.BeRefs.Count; i++)
            {
                TmpStringInfo tmp = new TmpStringInfo();
                tmp._param1 = info.BeRefs[i];
                objs.Add(tmp);
            }
            _depTabPanel.RefreshData(objs);
        }
Exemple #3
0
        // 选择某一条具体的规则
        private void OnRuleSelected(object select, int col)
        {
            CheckEffectReportCnf info = select as CheckEffectReportCnf;

            if (info == null)
            {
                return;
            }

            List <System.Object> objs = new List <object>();

            for (int i = 0; i < info._texs.Count; i++)
            {
                TmpStringInfo tmp = new TmpStringInfo();
                tmp._param1 = info._texs[i];
                tmp._param2 = info._texMems[i].ToString();
                objs.Add(tmp);
            }
            _effectTexTablePanel.RefreshData(objs);

            UnityEngine.Object obj = AssetDatabase.LoadAssetAtPath(info._assetPath, typeof(UnityEngine.Object));
            EditorGUIUtility.PingObject(obj);
            Selection.activeObject = obj;
        }