mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 05:55:15 +00:00
Add character head glyphs to gTextures (#167)
This commit is contained in:
parent
8182a9f93c
commit
215a8402bf
5 changed files with 45 additions and 15 deletions
|
@ -528,8 +528,13 @@
|
||||||
--- @field public camera TextureInfo
|
--- @field public camera TextureInfo
|
||||||
--- @field public coin TextureInfo
|
--- @field public coin TextureInfo
|
||||||
--- @field public lakitu TextureInfo
|
--- @field public lakitu TextureInfo
|
||||||
|
--- @field public luigi_head TextureInfo
|
||||||
|
--- @field public mario_head TextureInfo
|
||||||
--- @field public no_camera TextureInfo
|
--- @field public no_camera TextureInfo
|
||||||
--- @field public star TextureInfo
|
--- @field public star TextureInfo
|
||||||
|
--- @field public toad_head TextureInfo
|
||||||
|
--- @field public waluigi_head TextureInfo
|
||||||
|
--- @field public wario_head TextureInfo
|
||||||
|
|
||||||
--- @class GraphNode
|
--- @class GraphNode
|
||||||
--- @field public children GraphNode
|
--- @field public children GraphNode
|
||||||
|
|
|
@ -761,8 +761,13 @@
|
||||||
| camera | [TextureInfo](structs.md#TextureInfo) | read-only |
|
| camera | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
| coin | [TextureInfo](structs.md#TextureInfo) | read-only |
|
| coin | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
| lakitu | [TextureInfo](structs.md#TextureInfo) | read-only |
|
| lakitu | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
| luigi_head | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
| mario_head | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
| no_camera | [TextureInfo](structs.md#TextureInfo) | read-only |
|
| no_camera | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
| star | [TextureInfo](structs.md#TextureInfo) | read-only |
|
| star | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
| toad_head | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
| waluigi_head | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
| wario_head | [TextureInfo](structs.md#TextureInfo) | read-only |
|
||||||
|
|
||||||
[:arrow_up_small:](#)
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,11 @@ extern ALIGNED8 const u8 texture_hud_char_arrow_up[];
|
||||||
extern ALIGNED8 const u8 texture_hud_char_arrow_down[];
|
extern ALIGNED8 const u8 texture_hud_char_arrow_down[];
|
||||||
extern ALIGNED8 const u8 texture_hud_char_coin[];
|
extern ALIGNED8 const u8 texture_hud_char_coin[];
|
||||||
extern ALIGNED8 const u8 texture_hud_char_star[];
|
extern ALIGNED8 const u8 texture_hud_char_star[];
|
||||||
|
extern ALIGNED8 const u8 texture_hud_char_mario_head[];
|
||||||
|
extern ALIGNED8 const u8 texture_hud_char_luigi_head[];
|
||||||
|
extern ALIGNED8 const u8 texture_hud_char_toad_head[];
|
||||||
|
extern ALIGNED8 const u8 texture_hud_char_waluigi_head[];
|
||||||
|
extern ALIGNED8 const u8 texture_hud_char_wario_head[];
|
||||||
|
|
||||||
struct GlobalTextures gGlobalTextures = {
|
struct GlobalTextures gGlobalTextures = {
|
||||||
.camera = { .texture = (u8*)texture_hud_char_camera, .bitSize = 8, .width = 16, .height = 16 },
|
.camera = { .texture = (u8*)texture_hud_char_camera, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
@ -40,6 +45,11 @@ struct GlobalTextures gGlobalTextures = {
|
||||||
.arrow_down = { .texture = (u8*)texture_hud_char_arrow_down, .bitSize = 8, .width = 8, .height = 8 },
|
.arrow_down = { .texture = (u8*)texture_hud_char_arrow_down, .bitSize = 8, .width = 8, .height = 8 },
|
||||||
.coin = { .texture = (u8*)texture_hud_char_coin, .bitSize = 8, .width = 16, .height = 16 },
|
.coin = { .texture = (u8*)texture_hud_char_coin, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
.star = { .texture = (u8*)texture_hud_char_star, .bitSize = 8, .width = 16, .height = 16 },
|
.star = { .texture = (u8*)texture_hud_char_star, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
.mario_head = { .texture = (u8*)texture_hud_char_mario_head, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
.luigi_head = { .texture = (u8*)texture_hud_char_luigi_head, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
.toad_head = { .texture = (u8*)texture_hud_char_toad_head, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
.waluigi_head = { .texture = (u8*)texture_hud_char_waluigi_head, .bitSize = 8, .width = 16, .height = 16 },
|
||||||
|
.wario_head = { .texture = (u8*)texture_hud_char_wario_head, .bitSize = 8, .width = 16, .height = 16 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void djui_hud_position_translate(f32* x, f32* y) {
|
static void djui_hud_position_translate(f32* x, f32* y) {
|
||||||
|
|
|
@ -22,6 +22,11 @@ struct GlobalTextures {
|
||||||
struct TextureInfo arrow_down;
|
struct TextureInfo arrow_down;
|
||||||
struct TextureInfo coin;
|
struct TextureInfo coin;
|
||||||
struct TextureInfo star;
|
struct TextureInfo star;
|
||||||
|
struct TextureInfo mario_head;
|
||||||
|
struct TextureInfo luigi_head;
|
||||||
|
struct TextureInfo toad_head;
|
||||||
|
struct TextureInfo waluigi_head;
|
||||||
|
struct TextureInfo wario_head;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct GlobalTextures gGlobalTextures;
|
extern struct GlobalTextures gGlobalTextures;
|
||||||
|
|
|
@ -604,15 +604,20 @@ static struct LuaObjectField sGlobalObjectCollisionDataFields[LUA_GLOBAL_OBJECT_
|
||||||
{ "wooden_signpost_seg3_collision_0302DD80", LVT_COLLISION_P, offsetof(struct GlobalObjectCollisionData, wooden_signpost_seg3_collision_0302DD80), false, LOT_POINTER },
|
{ "wooden_signpost_seg3_collision_0302DD80", LVT_COLLISION_P, offsetof(struct GlobalObjectCollisionData, wooden_signpost_seg3_collision_0302DD80), false, LOT_POINTER },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LUA_GLOBAL_TEXTURES_FIELD_COUNT 7
|
#define LUA_GLOBAL_TEXTURES_FIELD_COUNT 12
|
||||||
static struct LuaObjectField sGlobalTexturesFields[LUA_GLOBAL_TEXTURES_FIELD_COUNT] = {
|
static struct LuaObjectField sGlobalTexturesFields[LUA_GLOBAL_TEXTURES_FIELD_COUNT] = {
|
||||||
{ "arrow_down", LVT_COBJECT, offsetof(struct GlobalTextures, arrow_down), true, LOT_TEXTUREINFO },
|
{ "arrow_down", LVT_COBJECT, offsetof(struct GlobalTextures, arrow_down), true, LOT_TEXTUREINFO },
|
||||||
{ "arrow_up", LVT_COBJECT, offsetof(struct GlobalTextures, arrow_up), true, LOT_TEXTUREINFO },
|
{ "arrow_up", LVT_COBJECT, offsetof(struct GlobalTextures, arrow_up), true, LOT_TEXTUREINFO },
|
||||||
{ "camera", LVT_COBJECT, offsetof(struct GlobalTextures, camera), true, LOT_TEXTUREINFO },
|
{ "camera", LVT_COBJECT, offsetof(struct GlobalTextures, camera), true, LOT_TEXTUREINFO },
|
||||||
{ "coin", LVT_COBJECT, offsetof(struct GlobalTextures, coin), true, LOT_TEXTUREINFO },
|
{ "coin", LVT_COBJECT, offsetof(struct GlobalTextures, coin), true, LOT_TEXTUREINFO },
|
||||||
{ "lakitu", LVT_COBJECT, offsetof(struct GlobalTextures, lakitu), true, LOT_TEXTUREINFO },
|
{ "lakitu", LVT_COBJECT, offsetof(struct GlobalTextures, lakitu), true, LOT_TEXTUREINFO },
|
||||||
|
{ "luigi_head", LVT_COBJECT, offsetof(struct GlobalTextures, luigi_head), true, LOT_TEXTUREINFO },
|
||||||
|
{ "mario_head", LVT_COBJECT, offsetof(struct GlobalTextures, mario_head), true, LOT_TEXTUREINFO },
|
||||||
{ "no_camera", LVT_COBJECT, offsetof(struct GlobalTextures, no_camera), true, LOT_TEXTUREINFO },
|
{ "no_camera", LVT_COBJECT, offsetof(struct GlobalTextures, no_camera), true, LOT_TEXTUREINFO },
|
||||||
{ "star", LVT_COBJECT, offsetof(struct GlobalTextures, star), true, LOT_TEXTUREINFO },
|
{ "star", LVT_COBJECT, offsetof(struct GlobalTextures, star), true, LOT_TEXTUREINFO },
|
||||||
|
{ "toad_head", LVT_COBJECT, offsetof(struct GlobalTextures, toad_head), true, LOT_TEXTUREINFO },
|
||||||
|
{ "waluigi_head", LVT_COBJECT, offsetof(struct GlobalTextures, waluigi_head), true, LOT_TEXTUREINFO },
|
||||||
|
{ "wario_head", LVT_COBJECT, offsetof(struct GlobalTextures, wario_head), true, LOT_TEXTUREINFO },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LUA_GRAPH_NODE_FIELD_COUNT 7
|
#define LUA_GRAPH_NODE_FIELD_COUNT 7
|
||||||
|
|
Loading…
Reference in a new issue