-
Notifications
You must be signed in to change notification settings - Fork 4
/
resource.h
78 lines (54 loc) · 1.71 KB
/
resource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*++
Copyright (c) 2010 Evan Green
Module Name:
Resource.h
Abstract:
This header contains resource definitions for Starry Night GUI elements.
Author:
Evan Green 22-Aug-2010
--*/
//
// ---------------------------------------------------------------- Definitions
//
#define IDS_DESCRIPTION 1
#define ID_ICON 100
//
// Main dialog.
//
#define IDD_MAIN_WINDOW 10000
#define IDC_OK 101
#define IDC_CANCEL 102
#define IDE_BUILDING_HEIGHT 103
#define IDE_BUILDING_COUNT 104
#define IDE_STARS_COUNT 105
#define IDE_LIGHTS_COUNT 106
#define IDC_FLASHER 107
//
// Define UI element sizes.
//
#define UI_BORDER 1
#define UI_BUTTON_WIDTH 40
#define UI_SMALL_BOX_WIDTH 20
#define UI_LINE_HEIGHT 12
#define UI_INITIAL_WIDTH 175
#define UI_INITIAL_HEIGHT (OK_CANCEL_OFFSET_Y + UI_LINE_HEIGHT + UI_BORDER)
#define UI_DESCRIPTION_WIDTH (UI_INITIAL_WIDTH / 2) - UI_BORDER
//
// Individual UI element definitions.
//
#define BUILDING_HEIGHT_OFFSET_Y UI_BORDER
#define BUILDING_COUNT_OFFSET_Y \
(BUILDING_HEIGHT_OFFSET_Y + UI_LINE_HEIGHT + (2 * UI_BORDER))
#define STARS_COUNT_OFFSET_Y \
(BUILDING_COUNT_OFFSET_Y + UI_LINE_HEIGHT + (2 * UI_BORDER))
#define LIGHTS_COUNT_OFFSET_Y \
(STARS_COUNT_OFFSET_Y + UI_LINE_HEIGHT + (2 * UI_BORDER))
#define FLASHER_OFFSET_Y \
(LIGHTS_COUNT_OFFSET_Y + UI_LINE_HEIGHT + (2 * UI_BORDER))
#define OK_OFFSET_X \
((UI_INITIAL_WIDTH / 2) - UI_BUTTON_WIDTH - (4 * UI_BORDER))
#define OK_CANCEL_OFFSET_Y \
(FLASHER_OFFSET_Y + UI_LINE_HEIGHT + (2 * UI_BORDER))
#define CANCEL_OFFSET_X \
((UI_INITIAL_WIDTH / 2) + (4 * UI_BORDER))
#define EDIT_BOX_OFFSET_X (UI_DESCRIPTION_WIDTH + (2 * UI_BORDER))