N64FlashcartMenu
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
7#ifndef COMPONENTS_CONSTANTS_H__
8#define COMPONENTS_CONSTANTS_H__
9
11#define DISPLAY_WIDTH (640)
13#define DISPLAY_HEIGHT (480)
14
16#define DISPLAY_CENTER_X (DISPLAY_WIDTH / 2)
18#define DISPLAY_CENTER_Y (DISPLAY_HEIGHT / 2)
19
21#define OVERSCAN_WIDTH (32)
23#define OVERSCAN_HEIGHT (24)
24
26#define VISIBLE_AREA_X0 (OVERSCAN_WIDTH)
28#define VISIBLE_AREA_Y0 (OVERSCAN_HEIGHT)
30#define VISIBLE_AREA_X1 (DISPLAY_WIDTH - OVERSCAN_WIDTH)
32#define VISIBLE_AREA_Y1 (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
33
35#define VISIBLE_AREA_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
37#define VISIBLE_AREA_HEIGHT (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
38
40#define BORDER_THICKNESS (4)
41
42#define LAYOUT_ACTIONS_SEPARATOR_Y (400)
43
45#define SEEKBAR_HEIGHT (24)
47#define SEEKBAR_WIDTH (524)
49#define SEEKBAR_X (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
51#define SEEKBAR_Y (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
52
54#define LOADER_WIDTH (320)
56#define LOADER_HEIGHT (24)
58#define LOADER_X (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
60#define LOADER_Y (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2))
61
63#define MESSAGEBOX_MAX_WIDTH (360)
65#define MESSAGEBOX_MARGIN (32)
66
67#define TEXT_MARGIN_HORIZONTAL (10)
68#define TEXT_MARGIN_VERTICAL (7)
69
71#define BOXART_WIDTH (158)
73#define BOXART_HEIGHT (112)
75#define BOXART_X (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
77#define BOXART_Y (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
78
80#define LIST_SCROLLBAR_WIDTH (12)
82#define LIST_SCROLLBAR_HEIGHT (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT)
84#define LIST_SCROLLBAR_X (VISIBLE_AREA_X1 - LIST_SCROLLBAR_WIDTH)
86#define LIST_SCROLLBAR_Y (VISIBLE_AREA_Y0)
87
89#define LIST_ENTRIES (20)
91#define FILE_LIST_MAX_WIDTH (480)
92#define FILE_LIST_HIGHLIGHT_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - LIST_SCROLLBAR_WIDTH)
93#define FILE_LIST_HIGHLIGHT_X (VISIBLE_AREA_X0)
94
96#define BACKGROUND_EMPTY_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
98#define BACKGROUND_OVERLAY_COLOR RGBA32(0x00, 0x00, 0x00, 0xA0)
99
101#define BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
102
104#define PROGRESSBAR_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
106#define PROGRESSBAR_DONE_COLOR RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
107
109#define SCROLLBAR_BG_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
111#define SCROLLBAR_INACTIVE_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
113#define SCROLLBAR_POSITION_COLOR RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
114
116#define DIALOG_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
117
119#define BOXART_LOADING_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
120
122#define FILE_LIST_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
123
125#define CONTEXT_MENU_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
126
127
128#endif