public void UnExecute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; List <string> operateAtlasList = new List <string>(); operateAtlasList.Add(m_destProjectPath); List <UIAdjust_SpriteOperateInfo> newOperateInfoList = new List <UIAdjust_SpriteOperateInfo>(); UIAdjust_SpriteOperateInfo newInfo = new UIAdjust_SpriteOperateInfo(); newInfo.SourceProjectPath = m_destProjectPath; foreach (var item in m_sourceInfoTable) { newInfo.OperateSpriteTable.AddRange(item.OperateSpriteTable); } newOperateInfoList.Add(newInfo); errorType = UIAdjustAtlasEditorModel.GetInstance().ReduceOperateCount(operateAtlasList.ToArray()); errorType = UIAdjustAtlasEditorModel.GetInstance().RemoveSprite(newOperateInfoList); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("撤销复制"); } }
public void UnExecute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; errorType = UIAdjustAtlasEditorModel.GetInstance().AddAtlasProject(m_ProjectPath); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("撤销移除工程:" + m_ProjectPath); } }
public void UnExecute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; List <string> operateAtlasList = new List <string>(); operateAtlasList.Add(m_ProjectPath); errorType = UIAdjustAtlasEditorModel.GetInstance().ReduceOperateCount(operateAtlasList.ToArray()); errorType = UIAdjustAtlasEditorModel.GetInstance().ZoomSprite(m_ProjectPath, m_SpritePath, m_oldScaleFactor); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("撤销缩放小图"); } }
public void Execute() { string dispStr = "加载" + Path.GetFileNameWithoutExtension(m_ProjectPath); EditorUtility.DisplayProgressBar("工程加载中", dispStr, 0f); UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; errorType = UIAdjustAtlasEditorModel.GetInstance().AddAtlasProject(m_ProjectPath); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("加载工程:" + m_ProjectPath); } }
public void Execute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; List <string> operateAtlasList = new List <string>(); operateAtlasList.Add(m_destProjectPath); errorType = UIAdjustAtlasEditorModel.GetInstance().AddOperateCount(operateAtlasList.ToArray()); errorType = UIAdjustAtlasEditorModel.GetInstance().CopySprites(m_sourceInfoTable, m_destProjectPath); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("复制小图"); } }
public void UnExecute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; List <string> operateAtlasList = new List <string>(); foreach (var item in m_sourceInfoTable) { operateAtlasList.Add(item.SourceProjectPath); } errorType = UIAdjustAtlasEditorModel.GetInstance().ReduceOperateCount(operateAtlasList.ToArray()); errorType = UIAdjustAtlasEditorModel.GetInstance().AddSprite(m_sourceInfoTableForUndo); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("撤销删除小图"); } }
public void Execute() { UIADJUSTATLAS_ERROR_TYPE errorType = UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE; List <string> operateAtlasList = new List <string>(); foreach (var item in m_sourceInfoTable) { operateAtlasList.Add(item.SourceProjectPath); } operateAtlasList.Add(m_destProjectPath); errorType = UIAdjustAtlasEditorModel.GetInstance().AddOperateCount(operateAtlasList.ToArray()); errorType = UIAdjustAtlasEditorModel.GetInstance().MoveSprite(m_sourceInfoTable, m_destProjectPath, out m_ModifyRefTable); if (UIADJUSTATLAS_ERROR_TYPE.UIADJUSTATLAS_ERROR_NONE == errorType) { UniversalEditorLog.DebugLog("移动小图"); } }