Cardiophile/Ecgoo.cs

A small UI panel class derived from GooPanel<Container> that builds a vertical Container with a single Text child saying "Hello". It overrides OnUpdate and calls base.OnUpdate with no additional logic.

Native Interop
using Goo;
using Sandbox.UI;
//using Sandbox.UI;


namespace Sandbox;

public sealed class Ecgoo : GooPanel<Container>
{
	protected override void OnUpdate()
	{
		base.OnUpdate(); // critical crucial, forgor and it malfunctions
	}

	protected override Container Build() => new Container
	{
		//Padding = 24,
		//BackgroundColor = Color.White,
		//BorderRadius = 12,
		PointerEvents = PointerEvents.All,
	 	FlexDirection = FlexDirection.Column,
		Children = { new Text( "Hello" ) },
	};
}