Alchemy
Loading...
Searching...
No Matches

ui.h

Go to the documentation of this file.
1#ifndef ALCHEMY_UI_H
2#define ALCHEMY_UI_H
3
4/// @file
5/// UiWork, the window system's work, and the status screen's cursors.
6
7#include "types.h"
8#include "tbs_edition.h"
9#include "static_assert.h"
10#include "farcall.h"
11
12/// A view of the window system's work that names only its dirty bits and its
13/// menu busy flag.
14struct UiWork {
16 unsigned dirty : 8;
18 unsigned menuBusy : 8;
19};
20
21/// A cursor stop among the status screen's stats: its help entry, where the
22/// cursor points and the run of the row it highlights.
25 u8 column; ///< tiles
26 u8 row; ///< tiles
27 u8 highlightColumn; ///< tiles
28 u8 highlightRow; ///< tiles
29 u8 highlightWidth; ///< tiles
31};
32
33/// A cursor stop on the status screen's equipment or conditions: its help
34/// entry and where the cursor points.
37 u8 column; ///< tiles
38 u8 row; ///< tiles
40};
41
43STATIC_ASSERT(sizeof(struct OwnerStatusCursor) == 4);
44
48extern const u8 gOwnerStatus_LevelString[];
49extern const u8 gOwnerStatus_HpString[];
50extern const u8 gOwnerStatus_SlashString[];
51extern const u8 gOwnerStatus_PpString[];
52#if LANGUAGE == LANGUAGE_SPANISH || LANGUAGE == LANGUAGE_ITALIAN
53extern const u8 gOwnerStatus_NivString[];
54extern const u8 gOwnerStatus_NvString[];
55extern const u8 gOwnerStatus_KpString[];
56extern const u8 gOwnerStatus_PvString[];
57#endif
58
59#endif
Public interfaces to the engine's code banks.
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
A cursor stop on the status screen's equipment or conditions: its help entry and where the cursor poi...
Definition ui.h:35
u8 row
tiles
Definition ui.h:38
u8 column
tiles
Definition ui.h:37
A cursor stop among the status screen's stats: its help entry, where the cursor points and the run of...
Definition ui.h:23
u8 column
tiles
Definition ui.h:25
u8 highlightColumn
tiles
Definition ui.h:27
u8 highlightWidth
tiles
Definition ui.h:29
u8 row
tiles
Definition ui.h:26
u8 highlightRow
tiles
Definition ui.h:28
A view of the window system's work that names only its dirty bits and its menu busy flag.
Definition ui.h:14
unsigned dirty
Definition ui.h:16
u8 unknownMode[RENDER_MENU_BUSY_OFFSET - RENDER_DIRTY_OFFSET - 1]
Definition ui.h:17
unsigned menuBusy
Definition ui.h:18
u8 unk000[RENDER_DIRTY_OFFSET]
Definition ui.h:15
Values that differ by patch level or language, chosen once for their code.
#define RENDER_MENU_BUSY_OFFSET
Definition tbs_edition.h:58
#define RENDER_DIRTY_OFFSET
Definition tbs_edition.h:49
The integer types, TRUE, UNUSED and the fixed-address macros.
unsigned char u8
Definition types.h:11
const u8 gOwnerStatus_HpString[]
const u8 gOwnerStatus_LevelString[]
const struct OwnerStatusCursor gOwnerStatus_EquipmentCursors[]
const u8 gOwnerStatus_PpString[]
const struct OwnerStatusStatCursor gOwnerStatus_StatCursors[]
const u8 gOwnerStatus_SlashString[]
const struct OwnerStatusCursor gOwnerStatus_ConditionCursors[]