mirror of
https://github.com/osukey/osukey.git
synced 2025-07-22 19:00:05 +09:00
Add basic xmldoc to show how the two colour classes interact
This commit is contained in:
@ -16,6 +16,9 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterfaceV2
|
namespace osu.Game.Graphics.UserInterfaceV2
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A component which displays a colour along with related description text.
|
||||||
|
/// </summary>
|
||||||
public class ColourDisplay : CompositeDrawable, IHasCurrentValue<Color4>
|
public class ColourDisplay : CompositeDrawable, IHasCurrentValue<Color4>
|
||||||
{
|
{
|
||||||
private readonly BindableWithCurrent<Color4> current = new BindableWithCurrent<Color4>();
|
private readonly BindableWithCurrent<Color4> current = new BindableWithCurrent<Color4>();
|
||||||
|
@ -12,6 +12,9 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterfaceV2
|
namespace osu.Game.Graphics.UserInterfaceV2
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A component which displays a collection of colours in individual <see cref="ColourDisplay"/>s.
|
||||||
|
/// </summary>
|
||||||
public class ColourPalette : CompositeDrawable
|
public class ColourPalette : CompositeDrawable
|
||||||
{
|
{
|
||||||
public BindableList<Color4> Colours { get; } = new BindableList<Color4>();
|
public BindableList<Color4> Colours { get; } = new BindableList<Color4>();
|
||||||
|
Reference in New Issue
Block a user