@@ -131,82 +131,82 @@ public void FillOutTree()
131131 switch ( baseUs )
132132 {
133133 case RawExport us3 :
134- {
135- var parentNode = new PointingTreeNode ( "Raw Data (" + us3 . Data . Length + " B)" , us3 . Data ) ;
136- categoryNode . Nodes . Add ( parentNode ) ;
137- break ;
138- }
139- case NormalExport us :
140- {
141- var parentNode = new PointingTreeNode ( ( baseUs . ClassIndex . IsImport ( ) ? baseUs . ClassIndex . ToImport ( asset ) . ObjectName . Value . Value : baseUs . ClassIndex . Index . ToString ( ) ) + " (" + us . Data . Count + ")" , us ) ;
142- categoryNode . Nodes . Add ( parentNode ) ;
143-
144- for ( int j = 0 ; j < us . Data . Count ; j ++ ) InterpretThing ( us . Data [ j ] , parentNode ) ;
145-
146- if ( us is StringTableExport us2 )
147134 {
148- var parentNode2 = new PointingTreeNode ( us2 . Table . TableNamespace + " (" + us2 . Table . Count + ")" , us2 . Table ) ;
149- categoryNode . Nodes . Add ( parentNode2 ) ;
135+ var parentNode = new PointingTreeNode ( "Raw Data (" + us3 . Data . Length + " B)" , us3 . Data ) ;
136+ categoryNode . Nodes . Add ( parentNode ) ;
137+ break ;
150138 }
151-
152- if ( us is StructExport structUs )
139+ case NormalExport us :
153140 {
154- var parentNode2 = new PointingTreeNode ( "UStruct Data" , structUs , PointingTreeNodeType . StructData ) ;
155- categoryNode . Nodes . Add ( parentNode2 ) ;
156- if ( structUs . ScriptBytecode == null )
141+ var parentNode = new PointingTreeNode ( ( baseUs . ClassIndex . IsImport ( ) ? baseUs . ClassIndex . ToImport ( asset ) . ObjectName . Value . Value : baseUs . ClassIndex . Index . ToString ( ) ) + " (" + us . Data . Count + ")" , us ) ;
142+ categoryNode . Nodes . Add ( parentNode ) ;
143+
144+ for ( int j = 0 ; j < us . Data . Count ; j ++ ) InterpretThing ( us . Data [ j ] , parentNode ) ;
145+
146+ if ( us is StringTableExport us2 )
157147 {
158- var bytecodeNode = new PointingTreeNode ( "ScriptBytecode (" + structUs . ScriptBytecodeRaw . Length + " B )" , structUs . ScriptBytecodeRaw , PointingTreeNodeType . Normal ) ;
159- parentNode2 . Nodes . Add ( bytecodeNode ) ;
148+ var parentNode2 = new PointingTreeNode ( us2 . Table . TableNamespace + " (" + us2 . Table . Count + ")" , us2 . Table ) ;
149+ categoryNode . Nodes . Add ( parentNode2 ) ;
160150 }
161- else
151+
152+ if ( us is StructExport structUs )
162153 {
163- var bytecodeNode = new PointingTreeNode ( "ScriptBytecode (" + structUs . ScriptBytecode . Length + " instructions)" , structUs . ScriptBytecode , PointingTreeNodeType . Normal ) ;
164- parentNode2 . Nodes . Add ( bytecodeNode ) ;
154+ var parentNode2 = new PointingTreeNode ( "UStruct Data" , structUs , PointingTreeNodeType . StructData ) ;
155+ categoryNode . Nodes . Add ( parentNode2 ) ;
156+ if ( structUs . ScriptBytecode == null )
157+ {
158+ var bytecodeNode = new PointingTreeNode ( "ScriptBytecode (" + structUs . ScriptBytecodeRaw . Length + " B)" , structUs . ScriptBytecodeRaw , PointingTreeNodeType . Normal ) ;
159+ parentNode2 . Nodes . Add ( bytecodeNode ) ;
160+ }
161+ else
162+ {
163+ var bytecodeNode = new PointingTreeNode ( "ScriptBytecode (" + structUs . ScriptBytecode . Length + " instructions)" , structUs . ScriptBytecode , PointingTreeNodeType . Normal ) ;
164+ parentNode2 . Nodes . Add ( bytecodeNode ) ;
165+ }
165166 }
166- }
167167
168- if ( us is ClassExport )
169- {
170- var parentNode2 = new PointingTreeNode ( "UClass Data" , ( ClassExport ) us , PointingTreeNodeType . ClassData ) ;
171- categoryNode . Nodes . Add ( parentNode2 ) ;
172- }
173-
174- if ( us is PropertyExport )
175- {
176- var parentNode2 = new PointingTreeNode ( "UProperty Data" , ( PropertyExport ) us , PointingTreeNodeType . UPropertyData ) ;
177- categoryNode . Nodes . Add ( parentNode2 ) ;
178- }
168+ if ( us is ClassExport )
169+ {
170+ var parentNode2 = new PointingTreeNode ( "UClass Data" , ( ClassExport ) us , PointingTreeNodeType . ClassData ) ;
171+ categoryNode . Nodes . Add ( parentNode2 ) ;
172+ }
179173
180- if ( us is DataTableExport us4 )
181- {
182- var parentNode2 = new PointingTreeNode ( "Table Info (" + us4 . Table . Data . Count + ")" , us4 . Table ) ;
183- categoryNode . Nodes . Add ( parentNode2 ) ;
184- foreach ( StructPropertyData entry in us4 . Table . Data )
174+ if ( us is PropertyExport )
185175 {
186- string decidedName = entry . Name . Value . Value ;
176+ var parentNode2 = new PointingTreeNode ( "UProperty Data" , ( PropertyExport ) us , PointingTreeNodeType . UPropertyData ) ;
177+ categoryNode . Nodes . Add ( parentNode2 ) ;
178+ }
187179
188- var structNode = new PointingTreeNode ( decidedName + " (" + entry . Value . Count + ")" , entry ) ;
189- parentNode2 . Nodes . Add ( structNode ) ;
190- for ( int j = 0 ; j < entry . Value . Count ; j ++ )
180+ if ( us is DataTableExport us4 )
181+ {
182+ var parentNode2 = new PointingTreeNode ( "Table Info (" + us4 . Table . Data . Count + ")" , us4 . Table ) ;
183+ categoryNode . Nodes . Add ( parentNode2 ) ;
184+ foreach ( StructPropertyData entry in us4 . Table . Data )
191185 {
192- InterpretThing ( entry . Value [ j ] , structNode ) ;
186+ string decidedName = entry . Name . Value . Value ;
187+
188+ var structNode = new PointingTreeNode ( decidedName + " (" + entry . Value . Count + ")" , entry ) ;
189+ parentNode2 . Nodes . Add ( structNode ) ;
190+ for ( int j = 0 ; j < entry . Value . Count ; j ++ )
191+ {
192+ InterpretThing ( entry . Value [ j ] , structNode ) ;
193+ }
193194 }
194195 }
195- }
196196
197- if ( us is EnumExport us5 )
198- {
199- var parentNode2 = new PointingTreeNode ( "Enum Data" , us5 , PointingTreeNodeType . EnumData ) ;
200- categoryNode . Nodes . Add ( parentNode2 ) ;
201- }
197+ if ( us is EnumExport us5 )
198+ {
199+ var parentNode2 = new PointingTreeNode ( "Enum Data" , us5 , PointingTreeNodeType . EnumData ) ;
200+ categoryNode . Nodes . Add ( parentNode2 ) ;
201+ }
202202
203- {
204- var parentNode3 = new PointingTreeNode ( "Extra Data (" + us . Extras . Length + " B)" , us . Extras ) ;
205- categoryNode . Nodes . Add ( parentNode3 ) ;
206- }
203+ {
204+ var parentNode3 = new PointingTreeNode ( "Extra Data (" + us . Extras . Length + " B)" , us . Extras ) ;
205+ categoryNode . Nodes . Add ( parentNode3 ) ;
206+ }
207207
208- break ;
209- }
208+ break ;
209+ }
210210 }
211211 }
212212
@@ -629,7 +629,7 @@ private PropertyData RowToPD(int rowNum, PropertyData original)
629629 case TextHistoryType . Base :
630630 if ( value1B == null || value2B == null || value3B == null || ! ( value1B is string ) || ! ( value2B is string ) || ! ( value3B is string ) ) return null ;
631631 decidedTextData . Namespace = ( string ) value1B == FString . NullCase ? null : FString . FromString ( ( string ) value1B ) ;
632- decidedTextData . Value = ( string ) value2B == FString . NullCase ? null : FString . FromString ( ( string ) value2B ) ;
632+ decidedTextData . Value = ( string ) value2B == FString . NullCase ? null : FString . FromString ( ( string ) value2B ) ;
633633 decidedTextData . CultureInvariantString = ( string ) value3B == FString . NullCase ? null : FString . FromString ( ( string ) value3B ) ;
634634 break ;
635635 case TextHistoryType . StringTableEntry :
@@ -1000,7 +1000,7 @@ public void Load() // Updates the table with selected asset data
10001000 switch ( pointerNode . Pointer )
10011001 {
10021002 case NormalExport usCategory :
1003- switch ( pointerNode . Type )
1003+ switch ( pointerNode . Type )
10041004 {
10051005 case PointingTreeNodeType . Normal :
10061006 for ( int num = 0 ; num < usCategory . Data . Count ; num ++ )
@@ -1262,7 +1262,7 @@ public void Load() // Updates the table with selected asset data
12621262 standardRendering = false ;
12631263 break ;
12641264 }
1265-
1265+
12661266 break ;
12671267 case FStringTable strUs :
12681268 {
@@ -1710,7 +1710,7 @@ public void Save(bool forceNewLoad) // Reads from the table and updates the asse
17101710 }
17111711 else
17121712 {
1713- asset . DependsMap . Insert ( vals [ 0 ] , new int [ ] { vals [ 1 ] } ) ;
1713+ asset . DependsMap . Insert ( vals [ 0 ] , new int [ ] { vals [ 1 ] } ) ;
17141714 }
17151715 }
17161716 break ;
@@ -1844,7 +1844,7 @@ public void Save(bool forceNewLoad) // Reads from the table and updates the asse
18441844 }
18451845 else if ( pointerNode . Pointer is NormalExport usCat )
18461846 {
1847- switch ( pointerNode . Type )
1847+ switch ( pointerNode . Type )
18481848 {
18491849 case PointingTreeNodeType . Normal :
18501850 List < PropertyData > newData = new List < PropertyData > ( ) ;
@@ -1870,7 +1870,7 @@ public void Save(bool forceNewLoad) // Reads from the table and updates the asse
18701870 {
18711871 var currRow = dataGridView1 . Rows [ i ] ;
18721872 if ( currRow == null || currRow . Cells . Count < 2 ) continue ;
1873-
1873+
18741874 string enumFrontValue = ( string ) currRow . Cells [ 0 ] . Value ;
18751875 string enumValueValue = ( string ) currRow . Cells [ 1 ] . Value ;
18761876 if ( enumFrontValue == "CppForm" )
@@ -1887,7 +1887,7 @@ public void Save(bool forceNewLoad) // Reads from the table and updates the asse
18871887 }
18881888 break ;
18891889 }
1890-
1890+
18911891 }
18921892 else if ( pointerNode . Pointer is UDataTable dtUs )
18931893 {
0 commit comments