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
10
11#define DISPLAY_WIDTH (640)
12#define DISPLAY_HEIGHT (480)
13
14#define DISPLAY_CENTER_X (DISPLAY_WIDTH / 2)
15#define DISPLAY_CENTER_Y (DISPLAY_HEIGHT / 2)
16
17#define OVERSCAN_WIDTH (32)
18#define OVERSCAN_HEIGHT (24)
19
20#define VISIBLE_AREA_X0 (OVERSCAN_WIDTH)
21#define VISIBLE_AREA_Y0 (OVERSCAN_HEIGHT)
22#define VISIBLE_AREA_X1 (DISPLAY_WIDTH - OVERSCAN_WIDTH)
23#define VISIBLE_AREA_Y1 (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
24
25#define VISIBLE_AREA_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
26#define VISIBLE_AREA_HEIGHT (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
27
28#define BORDER_THICKNESS (4)
29
30#define LAYOUT_ACTIONS_SEPARATOR_Y (400)
31
32#define SEEKBAR_HEIGHT (24)
33#define SEEKBAR_WIDTH (524)
34#define SEEKBAR_X (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
35#define SEEKBAR_Y (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
36
37#define LOADER_WIDTH (320)
38#define LOADER_HEIGHT (24)
39#define LOADER_X (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
40#define LOADER_Y (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2))
41
42#define MESSAGEBOX_MAX_WIDTH (360)
43#define MESSAGEBOX_MARGIN (32)
44
45#define TEXT_MARGIN_HORIZONTAL (10)
46#define TEXT_MARGIN_VERTICAL (7)
47
48#define BOXART_WIDTH (158)
49#define BOXART_HEIGHT (112)
50#define BOXART_X (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
51#define BOXART_Y (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
52
53#define FILE_LIST_SCROLLBAR_WIDTH (12)
54#define FILE_LIST_SCROLLBAR_HEIGHT (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT)
55#define FILE_LIST_SCROLLBAR_X (VISIBLE_AREA_X1 - FILE_LIST_SCROLLBAR_WIDTH)
56#define FILE_LIST_SCROLLBAR_Y (VISIBLE_AREA_Y0)
57
58#define FILE_LIST_ENTRIES (20)
59#define FILE_LIST_MAX_WIDTH (480)
60#define FILE_LIST_HIGHLIGHT_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - FILE_LIST_SCROLLBAR_WIDTH)
61#define FILE_LIST_HIGHLIGHT_X (VISIBLE_AREA_X0)
62
63
64#define BACKGROUND_EMPTY_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
65#define BACKGROUND_OVERLAY_COLOR RGBA32(0x00, 0x00, 0x00, 0xA0)
66
67#define BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
68
69#define PROGRESSBAR_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
70#define PROGRESSBAR_DONE_COLOR RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
71
72#define SCROLLBAR_BG_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
73#define SCROLLBAR_INACTIVE_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
74#define SCROLLBAR_POSITION_COLOR RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
75
76#define DIALOG_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
77
78#define BOXART_LOADING_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
79
80#define FILE_LIST_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
81
82#define CONTEXT_MENU_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
83
84
85#endif