akaaafk commited on
Commit
6422641
·
verified ·
1 Parent(s): 3edc4ff

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangeListElements.meta +8 -0
  2. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangesGroupHeader.cs +67 -0
  3. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangesGroupHeader.cs.meta +11 -0
  4. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ErrorPageView.cs +36 -0
  5. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ErrorPageView.cs.meta +11 -0
  6. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/HistoryEntryComponent.cs +65 -0
  7. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/HistoryEntryComponent.cs.meta +11 -0
  8. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconButton.cs +79 -0
  9. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconButton.cs.meta +11 -0
  10. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconTextButton.cs +94 -0
  11. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconTextButton.cs.meta +11 -0
  12. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ListNotice.cs +35 -0
  13. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ListNotice.cs.meta +11 -0
  14. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Menus.meta +8 -0
  15. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/PageComponent.cs +39 -0
  16. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/PageComponent.cs.meta +3 -0
  17. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Paginator.cs +56 -0
  18. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Paginator.cs.meta +11 -0
  19. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ProgressView.cs +68 -0
  20. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ProgressView.cs.meta +11 -0
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangeListElements.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: ed49dd4f35b9c6b4aa4cfa9227df60a2
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangesGroupHeader.cs ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.Assets;
4
+ using Unity.Cloud.Collaborate.UserInterface;
5
+ using Unity.Cloud.Collaborate.Utilities;
6
+ using UnityEditor;
7
+ using UnityEngine;
8
+ using UnityEngine.UIElements;
9
+
10
+ namespace Unity.Cloud.Collaborate.Components
11
+ {
12
+ internal class ChangesGroupHeader : VisualElement
13
+ {
14
+ public const string UssClassName = "changes-group-header";
15
+ public const string NameUssClassName = UssClassName + "__name";
16
+ public const string OverflowButtonUssClassName = UssClassName + "__overflow-button";
17
+
18
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ChangesGroupHeader)}.uxml";
19
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(ChangesGroupHeader)}.uss";
20
+
21
+ readonly Label m_GroupName;
22
+ readonly IconButton m_OverflowButton;
23
+
24
+ public event Action<float, float> OnOverflowButtonClicked;
25
+
26
+ public ChangesGroupHeader()
27
+ {
28
+ // Get the layout and style sheet
29
+ AddToClassList(UssClassName);
30
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
31
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
32
+
33
+ // Initialise fields
34
+ m_GroupName = this.Q<Label>(className: NameUssClassName);
35
+ m_OverflowButton = this.Q<IconButton>(className: OverflowButtonUssClassName);
36
+
37
+ // Wire up overflow button
38
+ m_OverflowButton.Clicked += TriggerOverflowMenu;
39
+ }
40
+
41
+ public void SetEnableOverflowMenu(bool enable)
42
+ {
43
+ if (enable)
44
+ {
45
+ m_OverflowButton.RemoveFromClassList(UiConstants.ussHidden);
46
+ }
47
+ else
48
+ {
49
+ m_OverflowButton.AddToClassList(UiConstants.ussHidden);
50
+ }
51
+ }
52
+
53
+ void TriggerOverflowMenu()
54
+ {
55
+ var (x, y) = MenuUtilities.GetMenuPosition(m_OverflowButton, MenuUtilities.AnchorPoint.BottomRight);
56
+ OnOverflowButtonClicked?.Invoke(x, y);
57
+ }
58
+
59
+ public void UpdateGroupName(string text)
60
+ {
61
+ m_GroupName.text = text;
62
+ }
63
+
64
+ [UsedImplicitly]
65
+ public new class UxmlFactory : UxmlFactory<ChangesGroupHeader> { }
66
+ }
67
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ChangesGroupHeader.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 1ce030b4d24aad64a92981d598c7cafd
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ErrorPageView.cs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.UserInterface;
4
+ using UnityEditor;
5
+ using UnityEngine.UIElements;
6
+
7
+ namespace Unity.Cloud.Collaborate.Components
8
+ {
9
+ internal class ErrorPageView : PageComponent
10
+ {
11
+ public const string UssClassName = "error-page-view";
12
+
13
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ErrorPageView)}.uxml";
14
+
15
+ bool m_Visible;
16
+
17
+ public ErrorPageView()
18
+ {
19
+ AddToClassList(UssClassName);
20
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
21
+ }
22
+
23
+ protected override void SetActive()
24
+ {
25
+ throw new NotImplementedException();
26
+ }
27
+
28
+ protected override void SetInactive()
29
+ {
30
+ throw new NotImplementedException();
31
+ }
32
+
33
+ [UsedImplicitly]
34
+ public new class UxmlFactory : UxmlFactory<ErrorPageView> { }
35
+ }
36
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ErrorPageView.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 2faa49cc094a0db47aeb66c4b57db5fc
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/HistoryEntryComponent.cs ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using JetBrains.Annotations;
2
+ using Unity.Cloud.Collaborate.Assets;
3
+ using Unity.Cloud.Collaborate.UserInterface;
4
+ using UnityEditor;
5
+ using UnityEngine.UIElements;
6
+ using UnityEngine;
7
+
8
+ namespace Unity.Cloud.Collaborate.Components
9
+ {
10
+ internal class HistoryEntryComponent : VisualElement
11
+ {
12
+ public const string UssClassName = "history-entry-component";
13
+ public const string ProfileInitialUssClassName = UssClassName + "__profile-initial";
14
+ public const string AuthorNameUssClassName = UssClassName + "__author-name";
15
+ public const string TimestampUssClassName = UssClassName + "__timestamp";
16
+ public const string RevisionIdUssClassName = UssClassName + "__revision-id";
17
+ public const string CommitMessageUssClassName = UssClassName + "__commit-message";
18
+ public const string ChangedFilesCountUssClassName = UssClassName + "__changed-files-count";
19
+ public const string ChangedFilesUssClassName = UssClassName + "__changed-files";
20
+ public const string RollbackButtonUssClassName = UssClassName + "__goto-button";
21
+ public const string ShowFilesButtonUssClassName = UssClassName + "__files-button";
22
+ public const string BuildStatusUssClassName = UssClassName + "__cloud-build-status";
23
+
24
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(HistoryEntryComponent)}.uxml";
25
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(HistoryEntryComponent)}.uss";
26
+
27
+ public readonly Label profileInitial;
28
+ public readonly Label authorName;
29
+ public readonly Label timestamp;
30
+ public readonly Label revisionId;
31
+ public readonly Label commitMessage;
32
+ public readonly Button gotoButton;
33
+ public readonly Button showFilesButton;
34
+ public readonly Label cloudStatusText;
35
+ public readonly Label changedFilesCount;
36
+ public readonly AdapterListView changedFiles;
37
+
38
+ public HistoryEntryComponent()
39
+ {
40
+ // Get the layout
41
+ AddToClassList(UssClassName);
42
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
43
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
44
+
45
+ // Initialise fields
46
+ profileInitial = this.Q<Label>(className: ProfileInitialUssClassName);
47
+ authorName = this.Q<Label>(className: AuthorNameUssClassName);
48
+ timestamp = this.Q<Label>(className: TimestampUssClassName);
49
+ revisionId = this.Q<Label>(className: RevisionIdUssClassName);
50
+ commitMessage = this.Q<Label>(className: CommitMessageUssClassName);
51
+ changedFilesCount = this.Q<Label>(className: ChangedFilesCountUssClassName);
52
+ changedFiles = this.Q<AdapterListView>(className: ChangedFilesUssClassName);
53
+ gotoButton = this.Q<Button>(className: RollbackButtonUssClassName);
54
+ showFilesButton = this.Q<Button>(className: ShowFilesButtonUssClassName);
55
+ cloudStatusText = this.Q<Label>(className: BuildStatusUssClassName);
56
+
57
+ changedFiles.SelectionType = SelectionType.None;
58
+
59
+ gotoButton.text = StringAssets.rollback;
60
+ }
61
+
62
+ [UsedImplicitly]
63
+ public new class UxmlFactory : UxmlFactory<HistoryEntryComponent> { }
64
+ }
65
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/HistoryEntryComponent.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 80ba60ec8e138684084eb2a266fb344f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconButton.cs ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.UserInterface;
4
+ using UnityEditor;
5
+ using UnityEngine;
6
+ using UnityEngine.UIElements;
7
+
8
+ namespace Unity.Cloud.Collaborate.Components
9
+ {
10
+ internal class IconButton : Image
11
+ {
12
+ public const string UssClassName = "unity-icon-button";
13
+ public const string UndoUssClassName = "btn-undo";
14
+ public const string ShowUssClassName = "btn-show";
15
+ public const string MergeUssClassName = "btn-merge";
16
+ public const string ChooseMineUssClassName = "btn-choose-mine";
17
+ public const string ChooseRemoteUssClassName = "btn-choose-remote";
18
+ public const string DiffUssCLassName = "btn-diff";
19
+
20
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(IconButton)}.uss";
21
+
22
+ public event Action Clicked;
23
+
24
+ public IconButton() : this(null)
25
+ {
26
+ }
27
+
28
+ public IconButton([CanBeNull] Action clickEvent = null)
29
+ {
30
+ AddToClassList(UssClassName);
31
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
32
+
33
+ // Setup Clickable
34
+ Clicked += clickEvent;
35
+ this.AddManipulator(new Clickable(OnClick));
36
+ }
37
+
38
+ void OnClick()
39
+ {
40
+ Clicked?.Invoke();
41
+ Blur();
42
+ }
43
+
44
+ /// <summary>
45
+ /// Remove all event handlers for the Clicked event.
46
+ /// </summary>
47
+ public void UnregisterClickEvents()
48
+ {
49
+ Clicked = null;
50
+ }
51
+
52
+ public Texture2D Image
53
+ {
54
+ get => style.backgroundImage.value.texture;
55
+ set => style.backgroundImage = value;
56
+ }
57
+
58
+ public override bool canGrabFocus { get; } = true;
59
+
60
+ /// <summary>
61
+ /// Catch the enter key event to allow for tab & enter UI navigation.
62
+ /// </summary>
63
+ /// <param name="evt">Event to check.</param>
64
+ protected override void ExecuteDefaultActionAtTarget(EventBase evt)
65
+ {
66
+ base.ExecuteDefaultActionAtTarget(evt);
67
+
68
+ // Catch enter key being pressed.
69
+ if (!(evt is KeyDownEvent downEvent)) return;
70
+ if ((downEvent.keyCode != KeyCode.KeypadEnter) && (downEvent.keyCode != KeyCode.Return)) return;
71
+
72
+ Clicked?.Invoke();
73
+ downEvent.StopPropagation();
74
+ }
75
+
76
+ [UsedImplicitly]
77
+ public new class UxmlFactory : UxmlFactory<IconButton> {}
78
+ }
79
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconButton.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 6ef4bd6847e224944b5d92f231935eb4
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconTextButton.cs ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.UserInterface;
4
+ using UnityEditor;
5
+ using UnityEngine;
6
+ using UnityEngine.UIElements;
7
+
8
+ namespace Unity.Cloud.Collaborate.Components
9
+ {
10
+ internal class IconTextButton : VisualElement
11
+ {
12
+ public const string ussClassName = "unity-icon-text-button";
13
+ public const string imageUssClassName = ussClassName + "__image";
14
+ public const string textUssClassName = ussClassName + "__text";
15
+
16
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(IconTextButton)}.uss";
17
+
18
+ readonly TextElement m_TextElement;
19
+ readonly VisualElement m_Image;
20
+
21
+ public event Action Clicked;
22
+
23
+ public IconTextButton() : this(null)
24
+ {
25
+ }
26
+
27
+ public IconTextButton([CanBeNull] Action clickEvent = null)
28
+ {
29
+ AddToClassList(ussClassName);
30
+ AddToClassList(Button.ussClassName);
31
+
32
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
33
+
34
+ Add(m_Image = new Image());
35
+ Add(m_TextElement = new TextElement());
36
+ m_Image.AddToClassList(imageUssClassName);
37
+ m_TextElement.AddToClassList(textUssClassName);
38
+
39
+ // Setup Clickable
40
+ Clicked += clickEvent;
41
+ this.AddManipulator(new Clickable(OnClick));
42
+ }
43
+
44
+ void OnClick()
45
+ {
46
+ Clicked?.Invoke();
47
+ Blur();
48
+ }
49
+
50
+ public string Text
51
+ {
52
+ get => m_TextElement.text;
53
+ set => m_TextElement.text = value;
54
+ }
55
+
56
+ public Texture2D Image
57
+ {
58
+ get => m_Image.style.backgroundImage.value.texture;
59
+ set => m_Image.style.backgroundImage = value;
60
+ }
61
+
62
+ public override bool canGrabFocus { get; } = true;
63
+
64
+ /// <summary>
65
+ /// Catch the enter key event to allow for tab & enter UI navigation.
66
+ /// </summary>
67
+ /// <param name="evt">Event to check.</param>
68
+ protected override void ExecuteDefaultActionAtTarget(EventBase evt)
69
+ {
70
+ base.ExecuteDefaultActionAtTarget(evt);
71
+
72
+ // Catch enter key being pressed.
73
+ if (!(evt is KeyDownEvent downEvent)) return;
74
+ if ((downEvent.keyCode != KeyCode.KeypadEnter) && (downEvent.keyCode != KeyCode.Return)) return;
75
+
76
+ Clicked?.Invoke();
77
+ downEvent.StopPropagation();
78
+ }
79
+
80
+ [UsedImplicitly]
81
+ public new class UxmlFactory : UxmlFactory<IconTextButton, UxmlTraits> {}
82
+ public new class UxmlTraits : VisualElement.UxmlTraits
83
+ {
84
+ readonly UxmlStringAttributeDescription m_Text = new UxmlStringAttributeDescription { name = "text" };
85
+
86
+ public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
87
+ {
88
+ base.Init(ve, bag, cc);
89
+ var field = (IconTextButton)ve;
90
+ field.Text = m_Text.GetValueFromBag(bag, cc);
91
+ }
92
+ }
93
+ }
94
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/IconTextButton.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: a717437fab0c8a740b983b17a55a31ac
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ListNotice.cs ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using JetBrains.Annotations;
2
+ using Unity.Cloud.Collaborate.UserInterface;
3
+ using UnityEditor;
4
+ using UnityEngine.UIElements;
5
+
6
+ namespace Unity.Cloud.Collaborate.Components
7
+ {
8
+ internal class ListNotice : VisualElement
9
+ {
10
+ public const string UssClassName = "list-notice";
11
+ public const string ListNoticeTextUssClassName = UssClassName + "__text";
12
+
13
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ListNotice)}.uxml";
14
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(ListNotice)}.uss";
15
+
16
+ readonly Label m_Text;
17
+
18
+ public ListNotice()
19
+ {
20
+ AddToClassList(UssClassName);
21
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
22
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
23
+
24
+ m_Text = this.Q<Label>(className: ListNoticeTextUssClassName);
25
+ }
26
+
27
+ public string Text
28
+ {
29
+ set => m_Text.text = value;
30
+ }
31
+
32
+ [UsedImplicitly]
33
+ public new class UxmlFactory : UxmlFactory<ListNotice> { }
34
+ }
35
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ListNotice.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: f23e95205bbd2614aaf12e748e3d1ff4
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Menus.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: b0d78f8c2d53d134ca0d2e90c04e8ef8
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/PageComponent.cs ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using UnityEngine.UIElements;
2
+
3
+ namespace Unity.Cloud.Collaborate.Components
4
+ {
5
+ internal abstract class PageComponent : VisualElement
6
+ {
7
+ /// <summary>
8
+ /// Current active status for this page.
9
+ /// </summary>
10
+ protected bool Active { get; private set; }
11
+
12
+ /// <summary>
13
+ /// Set active status of this page.
14
+ /// </summary>
15
+ /// <param name="active">True if the page is to be active.</param>
16
+ public void SetActive(bool active)
17
+ {
18
+ Active = active;
19
+ if (Active)
20
+ {
21
+ SetActive();
22
+ }
23
+ else
24
+ {
25
+ SetInactive();
26
+ }
27
+ }
28
+
29
+ /// <summary>
30
+ /// Set this page active.
31
+ /// </summary>
32
+ protected abstract void SetActive();
33
+
34
+ /// <summary>
35
+ /// Set this page inactive.
36
+ /// </summary>
37
+ protected abstract void SetInactive();
38
+ }
39
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/PageComponent.cs.meta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: b7fff04ce91c4201bb8026c14fef0f73
3
+ timeCreated: 1573172302
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Paginator.cs ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.UserInterface;
4
+ using UnityEditor;
5
+ using UnityEngine.UIElements;
6
+
7
+ namespace Unity.Cloud.Collaborate.Components
8
+ {
9
+ internal class Paginator : VisualElement
10
+ {
11
+ public const string UssClassName = "paginator";
12
+ public const string PageTextUssClassName = UssClassName + "__page-text";
13
+ public const string BackButtonUssClassName = UssClassName + "__back-button";
14
+ public const string ForwardsButtonUssClassName = UssClassName + "__forwards-button";
15
+
16
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(Paginator)}.uxml";
17
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(Paginator)}.uss";
18
+
19
+ public const int MoveBackwards = -1;
20
+ public const int MoveForwards = 1;
21
+
22
+ public event Action<int> ClickedMovePage;
23
+
24
+ readonly Label m_PageText;
25
+ readonly Button m_BackButton;
26
+ readonly Button m_ForwardsButton;
27
+
28
+ public Paginator()
29
+ {
30
+ // Get the layout
31
+ AddToClassList(UssClassName);
32
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
33
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
34
+
35
+ m_PageText = this.Q<Label>(className: PageTextUssClassName);
36
+ m_BackButton = this.Q<Button>(className: BackButtonUssClassName);
37
+ m_ForwardsButton = this.Q<Button>(className: ForwardsButtonUssClassName);
38
+
39
+ m_BackButton.text = "<";
40
+ m_ForwardsButton.text = ">";
41
+
42
+ m_BackButton.clickable.clicked += () => ClickedMovePage?.Invoke(MoveBackwards);
43
+ m_ForwardsButton.clickable.clicked += () => ClickedMovePage?.Invoke(MoveForwards);
44
+ }
45
+
46
+ public void SetPage(int page, int maxPage)
47
+ {
48
+ m_PageText.text = $"Page {page + 1} of {maxPage + 1}";
49
+ m_BackButton.SetEnabled(page != 0);
50
+ m_ForwardsButton.SetEnabled(page != maxPage);
51
+ }
52
+
53
+ [UsedImplicitly]
54
+ public new class UxmlFactory : UxmlFactory<Paginator> { }
55
+ }
56
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/Paginator.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: f62d542b43f5ead479d2da97d270fc96
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ProgressView.cs ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+ using JetBrains.Annotations;
3
+ using Unity.Cloud.Collaborate.Assets;
4
+ using Unity.Cloud.Collaborate.UserInterface;
5
+ using UnityEditor;
6
+ using UnityEditor.UIElements;
7
+ using UnityEngine;
8
+ using UnityEngine.UIElements;
9
+
10
+ namespace Unity.Cloud.Collaborate.Components
11
+ {
12
+ [UsedImplicitly]
13
+ internal class ProgressView : VisualElement
14
+ {
15
+ public const string UssClassName = "progress-view";
16
+ public const string LabelUssClassName = UssClassName + "__label";
17
+ public const string ProgressBarUssClassName = UssClassName + "__progress-bar";
18
+ public const string ButtonUssClassName = UssClassName + "__button";
19
+
20
+ static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ProgressView)}.uxml";
21
+ static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(ProgressView)}.uss";
22
+
23
+ readonly Label m_Label;
24
+ readonly ProgressBar m_ProgressBar;
25
+ readonly Button m_Button;
26
+
27
+ public ProgressView()
28
+ {
29
+ AddToClassList(UssClassName);
30
+ AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
31
+ styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
32
+
33
+ m_Label = this.Q<Label>(className: LabelUssClassName);
34
+ m_Label.text = string.Empty;
35
+
36
+ m_ProgressBar = this.Q<ProgressBar>(className: ProgressBarUssClassName);
37
+
38
+ m_Button = this.Q<Button>(className: ButtonUssClassName);
39
+ m_Button.text = StringAssets.cancel;
40
+ }
41
+
42
+ public void SetText(string text, string progressText)
43
+ {
44
+ m_Label.text = text;
45
+ m_ProgressBar.title = progressText;
46
+ }
47
+
48
+ public void SetPercentComplete(int percent)
49
+ {
50
+ m_ProgressBar.value = percent;
51
+ }
52
+
53
+ public void SetCancelCallback(Action callback)
54
+ {
55
+ m_Button.clickable.clicked += callback;
56
+ }
57
+
58
+ public void SetCancelButtonActive(bool active)
59
+ {
60
+ m_Button.SetEnabled(active);
61
+ }
62
+
63
+ [UsedImplicitly]
64
+ public new class UxmlFactory : UxmlFactory<ProgressView> { }
65
+ }
66
+
67
+
68
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/ProgressView.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 1c5685731ccadae4aa67597f51dd494d
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: