mirror of
https://github.com/reaaLx/nx1-gsc-dump.git
synced 2025-04-22 00:55:46 +00:00
75 lines
1.8 KiB
Plaintext
75 lines
1.8 KiB
Plaintext
/*
|
|
static const char *g_he_font[] =
|
|
{
|
|
"default", // HE_FONT_DEFAULT
|
|
"bigfixed", // HE_FONT_BIGFIXED
|
|
"smallfixed", // HE_FONT_SMALLFIXED
|
|
"objective", // HE_FONT_OBJECTIVE
|
|
};
|
|
|
|
|
|
// These values correspond to the defines in q_shared.h
|
|
static const char *g_he_alignx[] =
|
|
{
|
|
"left", // HE_ALIGN_LEFT
|
|
"center", // HE_ALIGN_CENTER
|
|
"right", // HE_ALIGN_RIGHT
|
|
};
|
|
|
|
|
|
static const char *g_he_aligny[] =
|
|
{
|
|
"top", // HE_ALIGN_TOP
|
|
"middle", // HE_ALIGN_MIDDLE
|
|
"bottom", // HE_ALIGN_BOTTOM
|
|
};
|
|
|
|
|
|
// These values correspond to the defines in menudefinition.h
|
|
static const char *g_he_horzalign[] =
|
|
{
|
|
"subleft", // HORIZONTAL_ALIGN_SUBLEFT
|
|
"left", // HORIZONTAL_ALIGN_LEFT
|
|
"center", // HORIZONTAL_ALIGN_CENTER
|
|
"right", // HORIZONTAL_ALIGN_RIGHT
|
|
"fullscreen", // HORIZONTAL_ALIGN_FULLSCREEN
|
|
"noscale", // HORIZONTAL_ALIGN_NOSCALE
|
|
"alignto640", // HORIZONTAL_ALIGN_TO640
|
|
"center_safearea", // HORIZONTAL_ALIGN_CENTER_SAFEAREA
|
|
};
|
|
cassert( ARRAY_COUNT( g_he_horzalign ) == HORIZONTAL_ALIGN_MAX + 1 );
|
|
|
|
|
|
static const char *g_he_vertalign[] =
|
|
{
|
|
"subtop", // VERTICAL_ALIGN_SUBTOP
|
|
"top", // VERTICAL_ALIGN_TOP
|
|
"middle", // VERTICAL_ALIGN_CENTER
|
|
"bottom", // VERTICAL_ALIGN_BOTTOM
|
|
"fullscreen", // VERTICAL_ALIGN_FULLSCREEN
|
|
"noscale", // VERTICAL_ALIGN_NOSCALE
|
|
"alignto480", // VERTICAL_ALIGN_TO480
|
|
"center_safearea", // VERTICAL_ALIGN_CENTER_SAFEAREA
|
|
};
|
|
cassert( ARRAY_COUNT( g_he_vertalign ) == VERTICAL_ALIGN_MAX + 1 );
|
|
*/
|
|
|
|
init()
|
|
{
|
|
level._uiParent = spawnstruct();
|
|
level._uiParent.horzAlign = "left";
|
|
level._uiParent.vertAlign = "top";
|
|
level._uiParent.alignX = "left";
|
|
level._uiParent.alignY = "top";
|
|
level._uiParent.x = 0;
|
|
level._uiParent.y = 0;
|
|
level._uiParent.width = 0;
|
|
level._uiParent.height = 0;
|
|
level._uiParent.children = [];
|
|
|
|
if ( level._console )
|
|
level._fontHeight = 12;
|
|
else
|
|
level._fontHeight = 12;
|
|
}
|