pmd-sky/include/window.h
AnonymousRandomPerson 163a715f6e Decomped ov15_0238A140
Decomped by Seti
2024-10-18 01:52:51 -04:00

21 lines
987 B
C

#ifndef PMDSKY_WINDOW_H
#define PMDSKY_WINDOW_H
#include "monster_id.h"
// Represents the state of a portrait to be displayed inside a window
typedef struct {
enum monster_id monster_id; // 0x0: The species id, or the set index inside kaomado.kao
// 0x2: Index of the emote in the species set of portraits
u32 portrait_emotion;
u8 layout_idx; // 0x3: Represents the current layout to display the portrait
u32 offset_x; // 0x4: Tile offset (x / 8) in the X axis to draw the portrait
u32 offset_y; // 0x8: Tile offset (y / 8) in the Y axis to draw the portrait
u8 try_flip; // 0xC: Whether to try to get a flipped portrait from kaomado.kao
u8 has_flip; // 0xD: Whether the specified emote has a flipped variant
u8 hw_flip; // 0xE: Whether the portrait should be flipped using the hardware
u8 allow_default; // 0xF: If true, try using emote index 0 if the desired emote can't be found
} portrait_params;
#endif //PMDSKY_WINDOW_H