test/ui/PaintPanel.razor
@using Sandbox;
@using Sandbox.UI;
@inherits Panel
@namespace Sandbox

<root>
	@if ( Player.FindLocalPlayer() == null ) return;
	<label>PAINT</label>
	<div class="paint-bar">
		<div class="inner">
			<div class="fill" style="height: @(Player.FindLocalPlayer().Paint.Paint)%" />
		</div>
	</div>
	<label>@(MathF.Floor( Player.FindLocalPlayer().Paint.Paint ))%</label>
</root>

@code
{
	protected override int BuildHash () => System.HashCode.Combine( Player.FindLocalPlayer()?.Paint?.Paint );
}