Initial commit

This commit is contained in:
2026-03-03 00:39:30 +05:00
commit fc01f07d9b
29933 changed files with 5353098 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using UnityEditor;
using Codice.Client.Common;
using PlasticGui;
using PlasticGui.CloudDrive;
using Unity.PlasticSCM.Editor.AssetUtils;
using Unity.PlasticSCM.Editor.UI;
namespace Unity.PlasticSCM.Editor.CloudDrive.Workspaces.DragAndDrop
{
internal class AskUserForExistingFile : CopyPathsOperation.IAskUserForExistingFile
{
internal AskUserForExistingFile(EditorWindow parentWindow)
{
mParentWindow = parentWindow;
}
CopyPathsOperation.CopyAction CopyPathsOperation.IAskUserForExistingFile.Ask(
string filePath,
bool showApplyToAllCheckbox,
out bool applyToAll)
{
GuiMessage.GuiMessageResponseButton response = DialogWithCheckBox.Show(
PlasticLocalization.Name.AskUserForExistingFileTitle.GetString(),
PlasticLocalization.Name.AskUserForExistingFileMessage.GetString(
AssetsPath.GetFullPath.ForPath(filePath)),
PlasticLocalization.Name.ReplaceButton.GetString(),
PlasticLocalization.Name.KeepBothButton.GetString(),
PlasticLocalization.Name.SkipButton.GetString(),
GuiMessage.GuiMessageType.Warning,
showApplyToAllCheckbox ?
new MultiLinkLabelData(PlasticLocalization.Name.ApplyToAllFollowingFiles.GetString()) :
null,
mParentWindow,
out applyToAll);
switch (response)
{
case GuiMessage.GuiMessageResponseButton.Positive:
return CopyPathsOperation.CopyAction.Replace;
case GuiMessage.GuiMessageResponseButton.Neutral:
return CopyPathsOperation.CopyAction.KeepBoth;
case GuiMessage.GuiMessageResponseButton.Negative:
return CopyPathsOperation.CopyAction.Skip;
case GuiMessage.GuiMessageResponseButton.None:
default:
return CopyPathsOperation.CopyAction.Cancel;
}
}
readonly EditorWindow mParentWindow;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 509ecc6807ba438a92fbda6424603ecb
timeCreated: 1750088468