Skip to content

Commit 0eb0568

Browse files
[Userdoc] Rewrite tooltips for lots of component properties
# Original commit: 'a563442ce5923c7ba411cd6cecba6f1b10b22295'
1 parent c7e25c0 commit 0eb0568

File tree

30 files changed

+112
-101
lines changed

30 files changed

+112
-101
lines changed

sources/engine/SiliconStudio.Xenko.Assets/Sprite/PackingAttributes.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ public PackingAttributes()
3030
/// <summary>
3131
/// Gets or sets a value indicating whether to generate texture atlas
3232
/// </summary>
33-
/// <userdoc>If checked, the sprites of the sheet are packed into atlas textures</userdoc>
33+
/// <userdoc>Pack the sprites into atlas textures</userdoc>
3434
[DataMember(0)]
3535
[DefaultValue(true)]
3636
public bool Enabled { get; set; }
3737

3838
/// <summary>
3939
/// Gets or sets MaxRects rectangles placement algorithm
4040
/// </summary>
41-
/// <userdoc>The algorithm used to pack the sprites into atlas.</userdoc>
41+
/// <userdoc>The algorithm used to pack the sprites into atlas</userdoc>
4242
[DataMemberIgnore] // hide this for the moment.
4343
[DefaultValue(TexturePackingMethod.Best)]
4444
public TexturePackingMethod PackingAlgorithm { get; set; }
4545

4646
/// <summary>
4747
/// Gets or sets the use of Multipack atlas mode which allows more than one texture atlas to fit all given textures
4848
/// </summary>
49-
/// <userdoc>Allow the packer to generate several atlas textures if all the sprites cannot fit into one single atlas.</userdoc>
49+
/// <userdoc>If the sprites don't fit into a single atlas, generate several atlas textures</userdoc>
5050
[DataMember(20)]
5151
[DefaultValue(true)]
5252
public bool AllowMultipacking { get; set; }

sources/engine/SiliconStudio.Xenko.Assets/Sprite/SpriteInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class SpriteInfo
7979
/// Gets or sets the value indicating position provided to <see cref="Center"/> is from the middle of the sprite region or from the left/top corner.
8080
/// </summary>
8181
/// <userdoc>
82-
/// If checked, the value in 'Center' represents the offset of the sprite center from the middle of the sprite.
82+
/// If enabled, the value in Center represents the offset of the sprite center from the middle of the sprite
8383
/// </userdoc>
8484
[DataMember(50)]
8585
[DefaultValue(true)]

sources/engine/SiliconStudio.Xenko.Assets/Sprite/SpriteSheetAsset.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public partial class SpriteSheetAsset : Asset
4848
/// The type of the sprite sheet.
4949
/// </userdoc>
5050
[DataMember(10)]
51-
[Display("Sheet Type", category: "Parameters")]
51+
[Display("Sheet type", category: "Parameters")]
5252
public SpriteSheetType Type { get; set; }
5353

5454
/// <summary>
@@ -59,15 +59,15 @@ public partial class SpriteSheetAsset : Asset
5959
/// The color that should be made transparent in all images of the group.
6060
/// </userdoc>
6161
[DataMember(20)]
62-
[Display(category: "Parameters")]
62+
[Display("Color key color", category: "Parameters")]
6363
public Color ColorKeyColor { get; set; } = new Color(255, 0, 255);
6464

6565
/// <summary>
6666
/// Gets or sets a value indicating whether to enable color key. Default is false.
6767
/// </summary>
6868
/// <value><c>true</c> to enable color key; otherwise, <c>false</c>.</value>
6969
/// <userdoc>
70-
/// If checked, the color specified by 'ColorKeyColor' is made transparent in all images of the group during the asset build.
70+
/// Make the color specified in "Color key color" transparent in all images of the group during the asset build
7171
/// </userdoc>
7272
[DataMember(30)]
7373
[DefaultValue(false)]
@@ -78,11 +78,11 @@ public partial class SpriteSheetAsset : Asset
7878
/// If Compressed, the final texture will be compressed to an appropriate format based on the target platform. The final texture size must be a multiple of 4.
7979
/// </summary>
8080
/// <userdoc>
81-
/// If Compressed, the final texture will be compressed to an appropriate format based on the target platform. The final texture size must be a multiple of 4.
81+
/// Compress the texture to a format based on the target platform. The final texture size will be a multiple of 4.
8282
/// </userdoc>
8383
[DataMember(40)]
8484
[DefaultValue(true)]
85-
[Display("Compressed", "Parameters")]
85+
[Display("Compress", "Parameters")]
8686
public bool IsCompressed { get; set; } = true;
8787

8888
/// <summary>
@@ -115,7 +115,7 @@ public partial class SpriteSheetAsset : Asset
115115
/// </summary>
116116
/// <value><c>true</c> if [generate mipmaps]; otherwise, <c>false</c>.</value>
117117
/// <userdoc>
118-
/// If checked, mipmaps are generated for all the images of the group.
118+
/// Generate mipmaps for all images in the group
119119
/// </userdoc>
120120
[DataMember(60)]
121121
[DefaultValue(false)]
@@ -139,8 +139,8 @@ public partial class SpriteSheetAsset : Asset
139139
/// </summary>
140140
/// <value><c>true</c> to convert the texture in pre-multiply alpha.; otherwise, <c>false</c>.</value>
141141
/// <userdoc>
142-
/// If checked, pre-multiply all color components of the images by their alpha-component.
143-
/// Use this when elements are rendered with standard blending (and not transitive blending).
142+
/// Pre-multiply all color components of the images by their alpha-component.
143+
/// Use this when elements are rendered with standard blending (not transitive blending).
144144
/// </userdoc>
145145
[DataMember(70)]
146146
[DefaultValue(true)]
@@ -151,7 +151,7 @@ public partial class SpriteSheetAsset : Asset
151151
/// Gets or sets the sprites of the sheet.
152152
/// </summary>
153153
/// <userdoc>
154-
/// The parameters used to pack the sprites into atlas.
154+
/// The parameters used to pack the sprites into atlases
155155
/// </userdoc>
156156
[NotNull]
157157
[DataMember(100)]
@@ -162,7 +162,7 @@ public partial class SpriteSheetAsset : Asset
162162
/// Gets or sets the sprites of the sheet.
163163
/// </summary>
164164
/// <userdoc>
165-
/// The list of sprites composing the sheet.
165+
/// The list of sprites in the sheet
166166
/// </userdoc>
167167
[DataMember(150)]
168168
[Category]

sources/engine/SiliconStudio.Xenko.Engine/Engine/BackgroundComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public BackgroundComponent()
5151
/// The render group for this component.
5252
/// </summary>
5353
[DataMember(30)]
54+
[Display("Render group")]
5455
[DefaultValue(RenderGroup.Group0)]
5556
public RenderGroup RenderGroup { get; set; }
5657
}

sources/engine/SiliconStudio.Xenko.Engine/Engine/CameraComponent.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public CameraComponent(float nearClipPlane, float farClipPlane)
8080
/// <userdoc>The vertical field of view (in degrees)</userdoc>
8181
[DataMember(5)]
8282
[DefaultValue(DefaultVerticalFieldOfView)]
83-
[Display("Field Of View")]
83+
[Display("Field of view")]
8484
[DataMemberRange(1.0, 179.0, 1.0, 10.0, 0)]
8585
public float VerticalFieldOfView { get; set; }
8686

@@ -93,7 +93,7 @@ public CameraComponent(float nearClipPlane, float farClipPlane)
9393
/// <userdoc>The height of the orthographic projection (the orthographic width is automatically calculated based on the target ratio)</userdoc>
9494
[DataMember(10)]
9595
[DefaultValue(DefaultOrthographicSize)]
96-
[Display("Orthographic Size")]
96+
[Display("Orthographic size")]
9797
public float OrthographicSize { get; set; }
9898

9999
/// <summary>
@@ -122,10 +122,10 @@ public CameraComponent(float nearClipPlane, float farClipPlane)
122122
/// Gets or sets a value indicating whether to use a custom <see cref="AspectRatio"/>. Default is <c>false</c>, meaning that the aspect ratio is calculated from the ratio of the current viewport when rendering.
123123
/// </summary>
124124
/// <value>The use custom aspect ratio.</value>
125-
/// <userdoc>If selected, use a custom aspect ratio you specify. Otherwise, automatically adjust the aspect ratio to the render target ratio</userdoc>
125+
/// <userdoc>Use a custom aspect ratio you specify. Otherwise, automatically adjust the aspect ratio to the render target ratio.</userdoc>
126126
[DataMember(35)]
127127
[DefaultValue(false)]
128-
[Display("Custom Aspect Ratio")]
128+
[Display("Custom aspect ratio")]
129129
public bool UseCustomAspectRatio { get; set; }
130130

131131
/// <summary>

sources/engine/SiliconStudio.Xenko.Engine/Engine/ModelComponent.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,18 @@ private void CheckSkeleton()
133133
/// Gets or sets a boolean indicating if this model component is casting shadows.
134134
/// </summary>
135135
/// <value>A boolean indicating if this model component is casting shadows.</value>
136-
/// <userdoc>If checked, the model generates a shadow when enabling shadow maps.</userdoc>
136+
/// <userdoc>Generate a shadow (when shadow maps are enabled)</userdoc>
137137
[DataMember(30)]
138138
[DefaultValue(true)]
139-
[Display("Cast Shadows?")]
139+
[Display("Cast shadows")]
140140
public bool IsShadowCaster { get; set; }
141141

142142
/// <summary>
143143
/// The render group for this component.
144144
/// </summary>
145145
[DataMember(20)]
146146
[DefaultValue(RenderGroup.Group0)]
147+
[Display("Render group")]
147148
public RenderGroup RenderGroup { get; set; }
148149

149150
/// <summary>

sources/engine/SiliconStudio.Xenko.Engine/Engine/SpriteComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public enum SpriteSampler
142142
/// The render group for this component.
143143
/// </summary>
144144
[DataMember(90)]
145+
[Display("Render group")]
145146
[DefaultValue(RenderGroup.Group0)]
146147
public RenderGroup RenderGroup { get; set; }
147148

sources/engine/SiliconStudio.Xenko.Engine/Rendering/Compositing/VRRendererSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class VRRendererSettings
3131
/// <summary>
3232
/// Specifies if VR rendering should be copied to the current render target.
3333
/// </summary>
34-
/// <userdoc>If checked, VR rendering will be copied to the current render target. Can be unchecked to have different rendering on desktop than VR headset.</userdoc>
34+
/// <userdoc>Copy VR rendering to the current render target. Leave disabled to have different rendering on desktop than VR headset.</userdoc>
3535
[DataMember(25)]
3636
[DefaultValue(true)]
3737
public bool CopyMirror { get; set; } = true;

sources/engine/SiliconStudio.Xenko.Engine/Rendering/Lights/LightShadowMap.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected LightShadowMap()
2828
/// Gets or sets a value indicating whether this <see cref="LightShadowMap"/> is enabled.
2929
/// </summary>
3030
/// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
31-
/// <userdoc>If checked, display the shadow of the engendered by the light.</userdoc>
31+
/// <userdoc>Display the shadow of the engendered by the light</userdoc>
3232
[DataMember(10)]
3333
[DefaultValue(false)]
3434
public bool Enabled { get; set; }
@@ -64,7 +64,7 @@ protected LightShadowMap()
6464
/// Gets or sets a value indicating whether this <see cref="LightShadowMap"/> is debug.
6565
/// </summary>
6666
/// <value><c>true</c> if debug; otherwise, <c>false</c>.</value>
67-
/// <userdoc>If checked, render the shadow map in debug mode.</userdoc>
67+
/// <userdoc>Render the shadow map in debug mode</userdoc>
6868
[DataMember(200)]
6969
[DefaultValue(false)]
7070
public bool Debug { get; set; }

sources/engine/SiliconStudio.Xenko.Engine/Rendering/MaterialAssetKeys.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public sealed class MaterialAssetKeys
1212
/// parameters of all materials.
1313
/// </summary>
1414
/// <userdoc>
15-
/// If checked, the material parameters will be used to generate effects.
15+
/// Use the material parameters to generate effects
1616
/// </userdoc>
1717
public static readonly ValueParameterKey<bool> UseParameters = ParameterKeys.NewValue<bool>();
1818

1919
/// <summary>
2020
/// Allow material compilation without mesh.
2121
/// </summary>
2222
/// <userdoc>
23-
/// If checked, the materials will generate a shader even if they are not attached to a mesh.
23+
/// Generate a shader even if the materials aren't attached to a mesh
2424
/// </userdoc>
2525
public static readonly ValueParameterKey<bool> GenerateShader = ParameterKeys.NewValue<bool>();
2626
}

0 commit comments

Comments
 (0)