using Blacklight.Core;
using Foundations;
using Glass;
using Tessera.Typesetting;
namespace Konis.Testbed
{
///
/// The testbed's look: the vector skin, plus the styles only the effect tuning needs.
///
public class TestbedSkin : VectorSkin
{
public readonly TextMaterialStyle CheapValueText;
public readonly TextMaterialStyle CostlyValueText;
public readonly TextMaterialStyle ExpensiveValueText;
public readonly TextMaterialStyle RespawnHeadingText;
public readonly TextMaterialStyle ProblemText;
public readonly TextBoxMaterial HexBox;
///
/// Builds the skin, which needs the fonts to have loaded, and teaches to draw it.
///
public TestbedSkin(Renderer renderer)
: base(renderer)
{
CheapValueText = ValueText with { TintColor = Good };
CostlyValueText = ValueText with { TintColor = Warn };
ExpensiveValueText = ValueText with { TintColor = Bad };
RespawnHeadingText = HeadingText with { TintColor = Warn };
ProblemText = Text with
{
TintColor = Bad,
Multiline = true,
VerticalAlignment = Alignment.Vertical.Top,
};
HexBox = EditorLook(FieldBackground);
}
}
}