b478881fc6
* Add data to SpeciesInfo entries for in-battle shadows * Implement sized shadows in the sprite visualizer * Implement sized shadows in game code * Show shadows for the lead battler for opponents during their battle anim * Feedback on shadows, round 1 * Revert removal of Goomy and Sliggoo shadows * Fixed GEN_3 setting * Code cleanup + remove pre-processor branches * Fix bugs with gen-3 configuration branch * Style corrections, final shadow coordinate adjustments * Adjustments to Garbodor and Araquanid
92 lines
1.8 KiB
C
92 lines
1.8 KiB
C
#ifndef GUARD_POKEMON_SPRITE_VISUALIZER_H
|
|
#define GUARD_POKEMON_SPRITE_VISUALIZER_H
|
|
|
|
#include "constants/global.h"
|
|
#include "constants/pokemon_sprite_visualizer.h"
|
|
|
|
//Structs
|
|
struct PokemonSpriteVisualizerModifyArrows
|
|
{
|
|
u8 arrowSpriteId[2];
|
|
u16 minValue;
|
|
u16 maxValue;
|
|
int currValue;
|
|
u8 currentDigit;
|
|
u8 maxDigits;
|
|
u8 charDigits[MODIFY_DIGITS_MAX];
|
|
void *modifiedValPtr;
|
|
u8 typeOfVal;
|
|
};
|
|
|
|
struct PokemonSpriteVisualizerOptionArrows
|
|
{
|
|
u8 arrowSpriteId[1];
|
|
u8 currentDigit;
|
|
};
|
|
|
|
struct PokemonSpriteVisualizerYPosModifiyArrows
|
|
{
|
|
u8 arrowSpriteId[1];
|
|
u8 currentDigit;
|
|
};
|
|
|
|
struct PokemonSpriteConstValues
|
|
{
|
|
u8 backPicCoords;
|
|
u8 frontPicCoords;
|
|
u8 frontElevation;
|
|
};
|
|
|
|
struct PokemonSpriteOffsets
|
|
{
|
|
s8 offset_back_picCoords;
|
|
s8 offset_front_picCoords;
|
|
s8 offset_front_elevation;
|
|
};
|
|
|
|
struct PokemonShadowSettings
|
|
{
|
|
s8 definedX;
|
|
s8 definedY;
|
|
u8 definedSize;
|
|
|
|
s8 overrideX;
|
|
s8 overrideY;
|
|
u8 overrideSize;
|
|
};
|
|
|
|
struct PokemonSpriteVisualizer
|
|
{
|
|
u16 currentmonId;
|
|
u8 currentmonWindowId;
|
|
u8 InstructionsWindowId;
|
|
u8 frontspriteId;
|
|
u8 backspriteId;
|
|
u8 iconspriteId;
|
|
u8 followerspriteId;
|
|
|
|
bool8 isShiny;
|
|
bool8 isFemale;
|
|
|
|
u8 frontShadowSpriteIdPrimary;
|
|
u8 frontShadowSpriteIdSecondary;
|
|
struct PokemonShadowSettings shadowSettings;
|
|
|
|
struct PokemonSpriteVisualizerModifyArrows modifyArrows;
|
|
struct PokemonSpriteVisualizerOptionArrows optionArrows;
|
|
struct PokemonSpriteVisualizerYPosModifiyArrows yPosModifyArrows;
|
|
struct PokemonSpriteConstValues constSpriteValues;
|
|
struct PokemonSpriteOffsets offsetsSpriteValues;
|
|
|
|
u8 animIdBack;
|
|
u8 animIdFront;
|
|
u8 battleBgType;
|
|
u8 battleTerrain;
|
|
u8 currentSubmenu;
|
|
u8 submenuYpos[3];
|
|
};
|
|
|
|
void CB2_Pokemon_Sprite_Visualizer(void);
|
|
|
|
|
|
#endif // GUARD_POKEMON_SPRITE_VISUALIZER_H
|