Class GuiConstants

java.lang.Object
me.hackware.api.gui.GuiConstants

public final class GuiConstants extends Object
Shared constants and enums for the ClickGUI system.
  • Field Details

    • PANEL_WIDTH

      public static int PANEL_WIDTH
    • PANEL_MAX_WIDTH

      public static int PANEL_MAX_WIDTH
    • TAB_HEIGHT

      public static int TAB_HEIGHT
    • TAB_PADDING_H

      public static int TAB_PADDING_H
    • TAB_BAR_PAD_X

      public static float TAB_BAR_PAD_X
    • TAB_BAR_PAD_BOTTOM

      public static int TAB_BAR_PAD_BOTTOM
      Padding below the tab content, inside the bar (logical units).
    • TAB_BAR_BOTTOM_TRIM_PX

      public static int TAB_BAR_BOTTOM_TRIM_PX
      Unscaled (physical) pixels trimmed off the bottom of the bar, applied after scaling. Negative values extend the bar instead, adding unscaled bottom padding.
    • TAB_BAR_PAD_TOP_PX

      public static int TAB_BAR_PAD_TOP_PX
      Unscaled (physical) pixels of padding above the tab content. The bar's top is pinned to the screen edge, so this shifts the tabs down (and the bar's bottom with them, to keep the bottom padding).
    • TAB_BAR_PAD_TOP

      public static int TAB_BAR_PAD_TOP
      Padding above the tab content in logical units — unlike TAB_BAR_PAD_TOP_PX this one does not extend the bar with it, so it slides the labels/pill down within the existing bar and tightens the gap between them and the active-tab indicator at the bottom. Deliberately scaled: the gap it closes is scaled too, so a physical-pixel nudge would vanish on a high-DPI display.
    • TAB_BAR_PAD_BOTTOM_PX

      public static int TAB_BAR_PAD_BOTTOM_PX
      Unscaled (physical) pixels of padding below the tab content, on top of TAB_BAR_PAD_BOTTOM.
    • TAB_BAR_CORNER_RADIUS

      public static int TAB_BAR_CORNER_RADIUS
    • TAB_INDICATOR_THICKNESS

      public static float TAB_INDICATOR_THICKNESS
      Active-tab underline thickness in logical units, converted to physical pixels at draw time (with a 2px floor). Logical — not a fixed physical hairline like the border — because it's a design element that has to keep its weight relative to the bar: on a high-DPI display the same bar is twice as many physical pixels tall, so a fixed 2px line reads as a sliver of its intended thickness.
    • TAB_BAR_BG

      public static int TAB_BAR_BG
    • TAB_HOVER_BG

      public static int TAB_HOVER_BG
    • TAB_ACCENT

      public static int TAB_ACCENT
    • TAB_MODULES

      public static final String TAB_MODULES
      See Also:
    • TAB_HUD_EDITOR

      public static final String TAB_HUD_EDITOR
      See Also:
    • TAB_MACROS

      public static final String TAB_MACROS
      See Also:
    • TAB_STATISTICS

      public static final String TAB_STATISTICS
      See Also:
    • TAB_PROFILES

      public static final String TAB_PROFILES
      See Also:
    • TAB_RELATIONS

      public static final String TAB_RELATIONS
      See Also:
    • TAB_BAR_REVEAL_ZONE

      public static final int TAB_BAR_REVEAL_ZONE
      See Also:
    • PANEL_BG

      public static int PANEL_BG
    • MODULE_BG

      public static int MODULE_BG
    • SETTING_BG

      public static int SETTING_BG
    • MODULE_HOVER_BG

      public static int MODULE_HOVER_BG
    • DIM_OVERLAY_BASE

      public static int DIM_OVERLAY_BASE
    • TEXT_WHITE

      public static int TEXT_WHITE
    • TEXT_GRAY

      public static int TEXT_GRAY
    • TEXT_DARK_GRAY

      public static int TEXT_DARK_GRAY
    • RESET_ICON

      public static final String RESET_ICON
      See Also:
    • SETTINGS_ICON

      public static final String SETTINGS_ICON
      See Also:
    • SETTINGS_ICON_SIZE

      public static int SETTINGS_ICON_SIZE
    • PICKER_PAD

      public static int PICKER_PAD
    • PICKER_SV_HEIGHT

      public static int PICKER_SV_HEIGHT
    • PICKER_BAR_HEIGHT

      public static int PICKER_BAR_HEIGHT
    • PICKER_BAR_GAP

      public static int PICKER_BAR_GAP
    • SEARCH_BAR_HEIGHT

      public static int SEARCH_BAR_HEIGHT
    • SEARCH_ENABLED

      public static boolean SEARCH_ENABLED
    • PANEL_BLUR_MARGIN

      public static int PANEL_BLUR_MARGIN
    • PANEL_OUTLINE_GLOW

      public static boolean PANEL_OUTLINE_GLOW
    • PANEL_OUTLINE_GLOW_RADIUS

      public static int PANEL_OUTLINE_GLOW_RADIUS
    • PANEL_OUTLINE_GLOW_ALPHA

      public static int PANEL_OUTLINE_GLOW_ALPHA
    • ENABLED_HIGHLIGHTS

      public static boolean ENABLED_HIGHLIGHTS
    • ENABLED_LEFT_BAR

      public static boolean ENABLED_LEFT_BAR
    • ENABLED_LEFT_BAR_WIDTH

      public static int ENABLED_LEFT_BAR_WIDTH
    • ENABLED_BORDER

      public static boolean ENABLED_BORDER
    • ENABLED_BORDER_ALPHA

      public static int ENABLED_BORDER_ALPHA
    • HOVER_OVERLAYS

      public static boolean HOVER_OVERLAYS
    • SPOTLIGHT_ENABLED

      public static boolean SPOTLIGHT_ENABLED
    • SPOTLIGHT_DURATION_MS

      public static int SPOTLIGHT_DURATION_MS
    • ANIMATIONS_ENABLED

      public static boolean ANIMATIONS_ENABLED
    • ANIMATION_DURATION_MS

      public static int ANIMATION_DURATION_MS
    • SMOOTH_SCROLL_ENABLED

      public static boolean SMOOTH_SCROLL_ENABLED
    • SPOTLIGHT_GRACE_NS

      public static final long SPOTLIGHT_GRACE_NS
      See Also:
  • Method Details

    • getFixedUiScale

      public static float getFixedUiScale(net.minecraft.client.Minecraft minecraft)
      User-configurable scale for the client chrome (tab bar) on top of Minecraft's GUI scale base. Driven by the "Client" slider in the Client tab. 1.0 = native GUI scale.
    • scaleForFixedUi

      public static int scaleForFixedUi(net.minecraft.client.Minecraft minecraft, int value)
    • getTabBarHeight

      public static int getTabBarHeight(net.minecraft.client.Minecraft minecraft)
      Vertical space reserved at the top of the ClickGUI chrome before content begins: the macOS notch safe-area inset (see NotchInset) plus the scaled tab-bar height. Content offsets read this so panels/pages sit below both the notch and the bar; the tab bar itself is drawn inside the lower TAB_HEIGHT band, shifted down by NotchInset.top(net.minecraft.client.Minecraft).