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 TAB_HEIGHT (20)
12
14#define BORDER_THICKNESS (4)
15
17#define DISPLAY_WIDTH (640)
19#define DISPLAY_HEIGHT (480)
20
22#define DISPLAY_CENTER_X (DISPLAY_WIDTH / 2)
24#define DISPLAY_CENTER_Y (DISPLAY_HEIGHT / 2)
25
27#define OVERSCAN_WIDTH (32)
29#define OVERSCAN_HEIGHT (24)
30
32#define VISIBLE_AREA_X0 (OVERSCAN_WIDTH)
34#define VISIBLE_AREA_Y0 (OVERSCAN_HEIGHT)
36#define VISIBLE_AREA_X1 (DISPLAY_WIDTH - OVERSCAN_WIDTH)
38#define VISIBLE_AREA_Y1 (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
39
41#define VISIBLE_AREA_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
43#define VISIBLE_AREA_HEIGHT (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
44
46#define LAYOUT_ACTIONS_SEPARATOR_Y (400)
47
49#define SEEKBAR_HEIGHT (24)
51#define SEEKBAR_WIDTH (524)
53#define SEEKBAR_X (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
55#define SEEKBAR_Y (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
56
58#define LOADER_WIDTH (320)
60#define LOADER_HEIGHT (24)
62#define LOADER_X (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
64#define LOADER_Y (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2))
65
67#define MESSAGEBOX_MAX_WIDTH (360)
69#define MESSAGEBOX_MARGIN (32)
70
72#define TEXT_MARGIN_HORIZONTAL (10)
74#define TEXT_MARGIN_VERTICAL (6)
76#define TEXT_OFFSET_VERTICAL (1)
78#define TEXT_LINE_SPACING_ADJUST (0)
79
81#define BOXART_WIDTH (158)
83#define BOXART_HEIGHT (112)
84
86#define BOXART_WIDTH_DD (129)
88#define BOXART_HEIGHT_DD (112)
89
91#define BOXART_WIDTH_MAX (158)
93#define BOXART_HEIGHT_MAX (158)
94
96#define BOXART_X (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
98#define BOXART_Y (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
100#define BOXART_X_JP (VISIBLE_AREA_X1 - BOXART_WIDTH_MAX + 21)
102#define BOXART_Y_JP (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT_MAX - 24)
103
105#define BOXART_X_DD (VISIBLE_AREA_X1 - BOXART_WIDTH_DD - 23)
107#define BOXART_Y_DD (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT_DD - 24)
108
110#define LIST_SCROLLBAR_WIDTH (12)
112#define LIST_SCROLLBAR_HEIGHT (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT - TAB_HEIGHT - BORDER_THICKNESS)
114#define LIST_SCROLLBAR_X (VISIBLE_AREA_X1 - LIST_SCROLLBAR_WIDTH)
116#define LIST_SCROLLBAR_Y (VISIBLE_AREA_Y0 + TAB_HEIGHT + BORDER_THICKNESS)
117
119#define LIST_ENTRIES (18)
121#define FILE_LIST_MAX_WIDTH (480)
123#define FILE_LIST_HIGHLIGHT_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - LIST_SCROLLBAR_WIDTH)
125#define FILE_LIST_HIGHLIGHT_X (VISIBLE_AREA_X0)
126
128#define BACKGROUND_EMPTY_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
130#define BACKGROUND_OVERLAY_COLOR RGBA32(0x00, 0x00, 0x00, 0xA0)
131
133#define BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
134
136#define PROGRESSBAR_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
138#define PROGRESSBAR_DONE_COLOR RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
139
141#define SCROLLBAR_BG_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
143#define SCROLLBAR_INACTIVE_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
145#define SCROLLBAR_POSITION_COLOR RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
146
148#define DIALOG_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
149
151#define BOXART_LOADING_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
152
154#define FILE_LIST_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
155
157#define CONTEXT_MENU_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
158
160#define TAB_INACTIVE_BORDER_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
162#define TAB_ACTIVE_BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
164#define TAB_INACTIVE_BACKGROUND_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
166#define TAB_ACTIVE_BACKGROUND_COLOR RGBA32(0x6F, 0x6F, 0x6F, 0xFF)
167
168#endif /* COMPONENTS_CONSTANTS_H__ */