private XMLFrame CreatePrinterBusyFrame(GUIHost host) { var xmlFrame = new XMLFrame(0) { RelativeX = 0.0f, RelativeY = 0.0f, RelativeWidth = 1f, RelativeHeight = 1f }; pleasewaittext = new TextWidget(1) { Color = new Color4(byte.MaxValue, 127, 39, byte.MaxValue), Text = "Please wait.\nThe printer is busy perfoming the requested actions.", RelativeWidth = 1f, Size = FontSize.Medium, Alignment = QFontAlignment.Centre }; pleasewaittext.SetPosition(0, -30); xmlFrame.AddChildElement(pleasewaittext); var spriteAnimationWidget = new SpriteAnimationWidget(3); spriteAnimationWidget.Init(host, "guicontrols", 0.0f, 768f, 767f, 1023f, 6, 2, 12, 200U); spriteAnimationWidget.SetSize(128, 108); spriteAnimationWidget.CenterVerticallyInParent = true; spriteAnimationWidget.CenterHorizontallyInParent = true; xmlFrame.AddChildElement(spriteAnimationWidget); Sprite.pixel_perfect = false; return(xmlFrame); }