File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,32 @@ public override string FormatHeader()
27
27
28
28
private string FormatNames ( )
29
29
{
30
- var output = string . Empty ;
30
+ string output = string . Empty ;
31
31
UDecompilingState . AddTabs ( 1 ) ;
32
- for ( var index = 0 ; index < Names . Count ; index ++ )
32
+
33
+ for ( int index = 0 ; index < Names . Count ; index ++ )
33
34
{
34
- var enumName = Names [ index ] ;
35
- output += "\r \n " + UDecompilingState . Tabs + enumName ;
35
+ var enumTagName = Names [ index ] ;
36
+ string enumTagText = enumTagName . ToString ( ) ;
37
+
36
38
if ( index != Names . Count - 1 )
37
39
{
38
- output += "," ;
40
+ enumTagText += "," ;
39
41
}
42
+
43
+ if ( ! UnrealConfig . SuppressComments )
44
+ {
45
+ enumTagText = enumTagText . PadRight ( 32 , ' ' ) ;
46
+ enumTagText += $ "// { index } ";
47
+ }
48
+
49
+ output += "\r \n " + UDecompilingState . Tabs + enumTagText ;
40
50
}
41
51
42
52
UDecompilingState . RemoveTabs ( 1 ) ;
53
+
43
54
return output ;
44
55
}
45
56
}
46
57
}
47
- #endif
58
+ #endif
You can’t perform that action at this time.
0 commit comments