public override void Render(double delta) { api.Texturing = false; int offset = overview.Height + 10; int height = Math.Max(300, Height); api.Draw2DQuad(X, Y - offset, Width, height, topCol, bottomCol); api.Texturing = true; overview.MoveTo(game.Width / 2 - overview.Width / 2, Y - offset + boundsSize / 2); overview.Render(delta); for (int i = 0; i < namesCount; i++) { Texture tex = textures[i]; int texY = tex.Y1; tex.Y1 -= 10; if (tex.IsValid) { tex.Render(api); } tex.Y1 = texY; } }
public override void OnResize(int oldWidth, int oldHeight, int width, int height) { announcement.OnResize(oldWidth, oldHeight, width, height); announcement.YOffset = -height / 4; announcement.MoveTo(announcement.X, announcement.YOffset - announcement.Height / 2); blockSize = (int)(23 * 2 * game.GuiHotbarScale); textInput.YOffset = 5; bottomRight.YOffset = blockSize * 3 / 2; int inputY = game.Height - textInput.Height - textInput.YOffset; textInput.MoveTo(textInput.X, inputY); status.OnResize(oldWidth, oldHeight, width, height); bottomRight.OnResize(oldWidth, oldHeight, width, height); UpdateChatYOffset(true); }