pmd-sky/include/window.h
Chesyon 5db0d433e0 Decomped GetPartnerOptionString
overhauled the personality_test struct (formerly Overlay13Main) to match pmdsky-debug
overhauled preprocessor_args to match pmdsky-debug
renamed some variables in GetPersonality to better document its functionality
2026-07-10 23:22:20 +03:00

21 lines
981 B
C

#ifndef PMDSKY_WINDOW_H
#define PMDSKY_WINDOW_H
#include "enums.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
u8 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