@@ -602,25 +602,25 @@ public static string GetPropertiesHelpPage()
602602
603603 --- Basic SER value properties ---
604604
605- PlayerValue :
605+ Player :
606606 - {{ playerPropsList }}
607607
608- CollectionValue :
608+ Collection :
609609 - {{ collectionPropsList }}
610610
611- NumberValue :
611+ Number :
612612 - {{ numberPropsList }}
613613
614- TextValue :
614+ Text :
615615 - {{ textPropsList }}
616616
617- BoolValue :
617+ Bool :
618618 - {{ boolPropsList }}
619619
620- ColorValue :
620+ Color :
621621 - {{ colorPropsList }}
622622
623- DurationValue :
623+ Duration :
624624 - {{ durationPropsList }}
625625
626626 --- Registered C# objects ---
@@ -714,25 +714,35 @@ public static bool GetPropertiesForType(string typeName, out string response)
714714 var sortedProps = props . OrderBy ( kvp => kvp . Key ) . ToList ( ) ;
715715 var custom = sortedProps . Where ( p => ! p . Value . IsReflected ) . ToList ( ) ;
716716 var reflected = sortedProps . Where ( p => p . Value . IsReflected ) . ToList ( ) ;
717-
718- sb . AppendLine ( "\n --- Base properties ---" ) ;
719- foreach ( var ( name , info ) in reflected )
717+
718+ if ( reflected . Count > 0 )
720719 {
721- var returnTypeFriendlyName = info . ReturnType . ToString ( ) ;
722- sb . AppendLine ( $ "> { name } ({ returnTypeFriendlyName } ){ ( string . IsNullOrEmpty ( info . Description ) ? "" : $ " - { info . Description } ") } ") ;
720+ sb . AppendLine ( "\n --- Base properties ---" ) ;
721+ foreach ( var ( name , info ) in reflected )
722+ {
723+ sb . AppendLine ( GetTypeInfo ( name , info ) ) ;
724+ }
723725 }
724726
725727 if ( custom . Count > 0 )
726728 {
727729 sb . AppendLine ( "\n --- Custom SER properties ---" ) ;
728730 foreach ( var ( name , info ) in custom )
729731 {
730- var returnTypeFriendlyName = info . ReturnType . ToString ( ) ;
731- sb . AppendLine ( $ "> { name } ({ returnTypeFriendlyName } ){ ( string . IsNullOrEmpty ( info . Description ) ? "" : $ " - { info . Description } ") } ") ;
732+ sb . AppendLine ( GetTypeInfo ( name , info ) ) ;
732733 }
733734 }
734735
735736 response = sb . ToString ( ) ;
736737 return true ;
738+
739+ string GetTypeInfo ( string name , IValueWithProperties . PropInfo info )
740+ {
741+ var returnTypeFriendlyName = info . ReturnType . ToString ( ) ;
742+ return $ "> { name } " +
743+ $ "({ returnTypeFriendlyName } ) " +
744+ $ "{ ( info . IsSettable ? "[settable] " : "" ) } " +
745+ $ "{ ( string . IsNullOrEmpty ( info . Description ) ? "" : $ "- { info . Description } ") } ";
746+ }
737747 }
738748}
0 commit comments