N64FlashcartMenu
Loading...
Searching...
No Matches
constants.h File Reference

UI component layout and color constants for the menu system. More...

Go to the source code of this file.

Macros

#define TAB_HEIGHT   (20)
 Height of the tabs in the main menu (pixels).
 
#define BORDER_THICKNESS   (4)
 Thickness of UI borders (pixels).
 
#define DISPLAY_WIDTH   (640)
 Width of the display (pixels).
 
#define DISPLAY_HEIGHT   (480)
 Height of the display (pixels).
 
#define DISPLAY_CENTER_X   (DISPLAY_WIDTH / 2)
 Center X coordinate of the display.
 
#define DISPLAY_CENTER_Y   (DISPLAY_HEIGHT / 2)
 Center Y coordinate of the display.
 
#define OVERSCAN_WIDTH   (32)
 Overscan margin on the X axis (pixels).
 
#define OVERSCAN_HEIGHT   (24)
 Overscan margin on the Y axis (pixels).
 
#define VISIBLE_AREA_X0   (OVERSCAN_WIDTH)
 Start X coordinate of the visible display area.
 
#define VISIBLE_AREA_Y0   (OVERSCAN_HEIGHT)
 Start Y coordinate of the visible display area.
 
#define VISIBLE_AREA_X1   (DISPLAY_WIDTH - OVERSCAN_WIDTH)
 End X coordinate of the visible display area.
 
#define VISIBLE_AREA_Y1   (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
 End Y coordinate of the visible display area.
 
#define VISIBLE_AREA_WIDTH   (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
 Width of the visible display area (pixels).
 
#define VISIBLE_AREA_HEIGHT   (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
 Height of the visible display area (pixels).
 
#define LAYOUT_ACTIONS_SEPARATOR_Y   (400)
 Y coordinate for the layout actions separator.
 
#define SEEKBAR_HEIGHT   (24)
 Height of the seek bar (pixels).
 
#define SEEKBAR_WIDTH   (524)
 Width of the seek bar (pixels).
 
#define SEEKBAR_X   (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
 X coordinate of the seek bar.
 
#define SEEKBAR_Y   (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
 Y coordinate of the seek bar.
 
#define LOADER_WIDTH   (320)
 Width of the loader bar (pixels).
 
#define LOADER_HEIGHT   (24)
 Height of the loader bar (pixels).
 
#define LOADER_X   (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
 X coordinate of the loader bar.
 
#define LOADER_Y   (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2) - 8)
 Y coordinate of the loader bar (accounts for message height).
 
#define MESSAGEBOX_MAX_WIDTH   (360)
 Maximum width of a message box (pixels).
 
#define MESSAGEBOX_MARGIN   (32)
 Margin around a message box (pixels).
 
#define TEXT_MARGIN_HORIZONTAL   (10)
 Horizontal margin for text (pixels).
 
#define TEXT_MARGIN_VERTICAL   (6)
 Vertical margin for text (pixels).
 
#define TEXT_OFFSET_VERTICAL   (1)
 Vertical offset for text (pixels).
 
#define TEXT_LINE_SPACING_ADJUST   (0)
 Adjustment for text line spacing (pixels).
 
#define BOXART_WIDTH   (158)
 Width of the boxart image (pixels).
 
#define BOXART_HEIGHT   (112)
 Height of the boxart image (pixels).
 
#define BOXART_WIDTH_DD   (129)
 Width of the 64DD boxart image (pixels).
 
#define BOXART_HEIGHT_DD   (112)
 Height of the 64DD boxart image (pixels).
 
#define BOXART_WIDTH_MAX   (158)
 Maximum width of the boxart image (pixels).
 
#define BOXART_HEIGHT_MAX   (158)
 Maximum height of the boxart image (pixels).
 
#define BOXART_X   (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
 X coordinate for boxart image.
 
#define BOXART_Y   (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
 Y coordinate for boxart image.
 
#define BOXART_X_JP   (VISIBLE_AREA_X1 - BOXART_WIDTH_MAX + 21)
 X coordinate for Japanese boxart image.
 
#define BOXART_Y_JP   (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT_MAX - 24)
 Y coordinate for Japanese boxart image.
 
#define BOXART_X_DD   (VISIBLE_AREA_X1 - BOXART_WIDTH_DD - 23)
 X coordinate for 64DD boxart image.
 
#define BOXART_Y_DD   (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT_DD - 24)
 Y coordinate for 64DD boxart image.
 
#define LIST_SCROLLBAR_WIDTH   (12)
 Width of the list scrollbar (pixels).
 
#define LIST_SCROLLBAR_HEIGHT   (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT - TAB_HEIGHT - BORDER_THICKNESS)
 Height of the list scrollbar (pixels).
 
#define LIST_SCROLLBAR_X   (VISIBLE_AREA_X1 - LIST_SCROLLBAR_WIDTH)
 X coordinate of the list scrollbar.
 
#define LIST_SCROLLBAR_Y   (VISIBLE_AREA_Y0 + TAB_HEIGHT + BORDER_THICKNESS)
 Y coordinate of the list scrollbar.
 
#define LIST_ENTRIES   (19)
 Maximum number of file list entries.
 
#define FILE_LIST_MAX_WIDTH   (480)
 Maximum width for a file list entry (pixels).
 
#define FILE_LIST_HIGHLIGHT_WIDTH   (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - LIST_SCROLLBAR_WIDTH)
 Width of the file list highlight (pixels).
 
#define FILE_LIST_HIGHLIGHT_X   (VISIBLE_AREA_X0)
 X coordinate of the file list highlight.
 
#define BACKGROUND_EMPTY_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 Color used when no background image is present (RGBA8888).
 
#define BACKGROUND_OVERLAY_COLOR   RGBA32(0x00, 0x00, 0x00, 0xA0)
 Overlay color for the background (RGBA8888, semi-transparent).
 
#define BORDER_COLOR   RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
 Color of UI borders (RGBA8888).
 
#define PROGRESSBAR_BG_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 Background color of the progress bar (RGBA8888).
 
#define PROGRESSBAR_DONE_COLOR   RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
 Color of the completed portion of the progress bar (RGBA8888).
 
#define SCROLLBAR_BG_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 Background color of the scrollbar (RGBA8888).
 
#define SCROLLBAR_INACTIVE_COLOR   RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
 Inactive color of the scrollbar (RGBA8888).
 
#define SCROLLBAR_POSITION_COLOR   RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
 Color of the scrollbar position indicator (RGBA8888).
 
#define DIALOG_BG_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 Background color for dialog boxes (RGBA8888).
 
#define BOXART_LOADING_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 Color used while boxart is loading (RGBA8888).
 
#define FILE_LIST_HIGHLIGHT_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 Highlight color for file list entries (RGBA8888).
 
#define CONTEXT_MENU_HIGHLIGHT_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 Highlight color for context menu entries (RGBA8888).
 
#define TAB_INACTIVE_BORDER_COLOR   RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
 Border color for inactive tabs (RGBA8888).
 
#define TAB_ACTIVE_BORDER_COLOR   RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
 Border color for active tabs (RGBA8888).
 
#define TAB_INACTIVE_BACKGROUND_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 Background color for inactive tabs (RGBA8888).
 
#define TAB_ACTIVE_BACKGROUND_COLOR   RGBA32(0x6F, 0x6F, 0x6F, 0xFF)
 Background color for active tabs (RGBA8888).
 

Detailed Description

UI component layout and color constants for the menu system.

This header defines all layout, sizing, and color constants used by UI components.