package org.saturnclient.ui.elements; import org.saturnclient.config.Config; import org.saturnclient.config.Theme; import org.saturnclient.ui.Element; import org.saturnclient.ui.ElementContext; import org.saturnclient.ui.RenderScope; /** * The translucent, outlined surface that screens lay their content on, * frosted over the game where glass is supported. */ public class Panel extends Element { @Override public void render(RenderScope renderScope, ElementContext ctx) { drawBackground(renderScope, width, height); } public static void drawBackground(RenderScope renderScope, int width, int height) { renderScope.drawGlassRectangle(0, 0, width, height, Theme.BG_RADIUS.value, Config.menuBlur.value, 1, Theme.getPanelBg(), Theme.getBorder()); } }