mirror of
https://github.com/pret/pmd-red.git
synced 2026-03-21 17:46:39 -05:00
Forgor typedef
This commit is contained in:
parent
033015f132
commit
c4f5d439d2
|
|
@ -4,6 +4,6 @@
|
|||
#include "portrait_placement.h"
|
||||
|
||||
// See enum "PortraitPlacementID"
|
||||
const struct PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id);
|
||||
const PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id);
|
||||
|
||||
#endif // GUARD_DUNGEON_PORTRAIT_PLACEMENT_H
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
#include "structs/str_position.h"
|
||||
|
||||
// Size: R=0x8 | B=0x5
|
||||
struct PortraitPlacementInfo
|
||||
typedef struct PortraitPlacementInfo
|
||||
{
|
||||
/* 0x0 */ DungeonPos pos;
|
||||
/* 0x4 */ bool8 flip;
|
||||
};
|
||||
} PortraitPlacementInfo;
|
||||
|
||||
// These are named like `PLACEMENT_X_Y` and `PLACEMENT_X_Y_FLIP`
|
||||
enum PortraitPlacementID
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
// Looks like they defined `Y_MID_B` as 8 instead of 7 and that's why we have a duplicate placement
|
||||
#define Y_B 8
|
||||
|
||||
static const struct PortraitPlacementInfo sPortraitPlacements[PLACEMENT_COUNT] = {
|
||||
static const PortraitPlacementInfo sPortraitPlacements[PLACEMENT_COUNT] = {
|
||||
[PLACEMENT_LEFT_BOTTOM_1] = { { X_L, Y_B }, FALSE },
|
||||
[PLACEMENT_CENTERLEFT_CENTER] = { { X_CENTER_L, Y_CENTER }, FALSE },
|
||||
[PLACEMENT_LEFT_BOTTOM_2] = { { X_L, Y_B }, FALSE },
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ void DisplayDungeonDialogue_Async(const struct DungeonDialogueStruct *dialogueIn
|
|||
&& dialogueInfo->spriteId != 0x80
|
||||
&& dialogueMonId != MONSTER_NONE)
|
||||
{
|
||||
const struct PortraitPlacementInfo *placementInfo = GetPortraitPlacementInfo(dialogueInfo->spritePlacementId);
|
||||
const PortraitPlacementInfo *placementInfo = GetPortraitPlacementInfo(dialogueInfo->spritePlacementId);
|
||||
|
||||
monPortraitPtr = &monPortrait;
|
||||
monPortraitPtr->faceFile = GetDialogueSpriteDataPtr(dialogueMonId);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "data/portrait_placements.h"
|
||||
|
||||
const struct PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id)
|
||||
const PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id)
|
||||
{
|
||||
return &sPortraitPlacements[id];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user