Skip to content

Commit

Permalink
small Panel documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Oct 30, 2024
1 parent c46b11f commit b733d1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions MLEM.Ui/Elements/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace MLEM.Ui.Elements {
/// <summary>
/// A group element to be used inside of a <see cref="UiSystem"/>.
/// A group is an element that has no rendering or interaction on its own, but that can aid with automatic placement of child elements.
/// If a grouping whose children scroll, and which has a <see cref="ScrollBar"/>, is desired, a panel with its <see cref="Panel.Texture"/> set to <see langword="null"/> can be used.
/// </summary>
public class Group : Element {

Expand Down
4 changes: 3 additions & 1 deletion MLEM.Ui/Elements/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace MLEM.Ui.Elements {
/// A panel element to be used inside of a <see cref="UiSystem"/>.
/// The panel is a complex element that displays a box as a background to all of its child elements.
/// Additionally, a panel can be set to scroll overflowing elements on construction, which causes all elements that don't fit into the panel to be hidden until scrolled to using a <see cref="ScrollBar"/>.
/// If an element similar to a <see cref="Group"/>, but with scrolling content, is desired, a panel with its <see cref="Texture"/> set to <see langword="null"/> can be used.
/// </summary>
public class Panel : Element {

Expand All @@ -24,7 +25,8 @@ public class Panel : Element {
public readonly ScrollBar ScrollBar;

/// <summary>
/// The texture that this panel should have, or null if it should be invisible.
/// The texture that this panel should have.
/// If this is set to <see langword="null"/>, this panel will not have a texture, but all of its content will still be visible.
/// </summary>
public StyleProp<NinePatch> Texture;
/// <summary>
Expand Down

0 comments on commit b733d1d

Please sign in to comment.