-
Beta Was this translation helpful? Give feedback.
Answered by
smoogipoo
Jun 12, 2024
Replies: 1 comment 1 reply
-
The general idea is to create a public partial class MyDrawable : Drawable
{
protected override DrawNode CreateDrawNode() => new MyDrawNode(this);
}
public class MyDrawNode : DrawNode
{
public MyDrawNode(IDrawable source)
: base(source)
{
}
public override void ApplyState()
{
base.ApplyState();
// Copy any states from the drawable locally here.
// Typically, you'll need to cast Source to your drawable type somewhere to achieve this.
}
protected override void Draw(IRenderer renderer)
{
base.Draw(renderer);
// Do your custom drawing here.
}
} From here, everything you need should be available in some form via the Hope that helps :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SanicBTW
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The general idea is to create a
DrawNode
. The song and dance looks something like this:F…