Position
Introduction
Properties
Code Example
protected override void Initialize()
{
GumUI.Initialize(this);
GumUI.Renderer.Camera.Zoom = 2;
base.Initialize();
}
protected override void Update(GameTime gameTime)
{
GumUI.Update(gameTime);
var cursor = GumUI.Cursor;
if(cursor.PrimaryPush)
{
var rectangle = new ColoredRectangleRuntime();
rectangle.X = cursor.XRespectingGumZoomAndBounds();
rectangle.Y = cursor.YRespectingGumZoomAndBounds();
rectangle.AddToRoot();
}
base.Update(gameTime);
}
Last updated
Was this helpful?

