@@ -13,48 +13,45 @@ public class ChangesTreeNodeDictionary : SerializableDictionary<string, ChangesT
13
13
[ Serializable ]
14
14
public class ChangesTreeNode : TreeNode
15
15
{
16
- public string projectPath ;
17
- public GitFileStatus gitFileStatus ;
18
- public bool isLocked ;
19
-
20
- public GitStatusEntry GitStatusEntry { get ; set ; }
21
-
22
- public string ProjectPath
23
- {
24
- get { return GitStatusEntry . projectPath ; }
25
- }
26
-
27
- public GitFileStatus GitFileStatus
28
- {
29
- get { return GitStatusEntry . status ; }
30
- }
16
+ [ SerializeField ] private bool isLocked ;
17
+ [ SerializeField ] private GitStatusEntry gitStatusEntry ;
31
18
32
19
public bool IsLocked
33
20
{
34
21
get { return isLocked ; }
35
22
set { isLocked = value ; }
36
23
}
24
+ public GitStatusEntry GitStatusEntry
25
+ {
26
+ get { return gitStatusEntry ; }
27
+ set { gitStatusEntry = value ; }
28
+ }
29
+
30
+ public string ProjectPath { get { return GitStatusEntry . projectPath ; } }
31
+ public GitFileStatus GitFileStatus { get { return GitStatusEntry . status ; } }
37
32
}
38
33
39
34
[ Serializable ]
40
35
public class ChangesTree : Tree < ChangesTreeNode , GitStatusEntryTreeData >
41
36
{
37
+ [ NonSerialized ] public Texture2D FolderIcon ;
38
+
42
39
[ SerializeField ] public ChangesTreeNodeDictionary assets = new ChangesTreeNodeDictionary ( ) ;
43
40
[ SerializeField ] public ChangesTreeNodeDictionary folders = new ChangesTreeNodeDictionary ( ) ;
44
41
[ SerializeField ] public ChangesTreeNodeDictionary checkedFileNodes = new ChangesTreeNodeDictionary ( ) ;
45
-
46
- [ NonSerialized ] public Texture2D FolderIcon ;
47
42
[ SerializeField ] public string title = string . Empty ;
48
43
[ SerializeField ] public string pathSeparator = "/" ;
49
44
[ SerializeField ] public bool displayRootNode = true ;
50
45
[ SerializeField ] public bool isSelectable = true ;
51
46
[ SerializeField ] public bool isCheckable = false ;
52
47
[ SerializeField ] public bool isUsingGlobalSelection = false ;
53
- [ SerializeField ] private List < ChangesTreeNode > nodes = new List < ChangesTreeNode > ( ) ;
54
- [ SerializeField ] private ChangesTreeNode selectedNode = null ;
48
+
55
49
[ NonSerialized ] private bool viewHasFocus ;
56
50
[ NonSerialized ] private Object lastActivatedObject ;
57
51
52
+ [ SerializeField ] private List < ChangesTreeNode > nodes = new List < ChangesTreeNode > ( ) ;
53
+ [ SerializeField ] private ChangesTreeNode selectedNode = null ;
54
+
58
55
public override string Title
59
56
{
60
57
get { return title ; }
0 commit comments