Merge branch 'master' into porymap-5
This commit is contained in:
@@ -70,10 +70,10 @@
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_UP 0x41
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_LEFT 0x42
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_RIGHT 0x43
|
||||
#define MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_DOWN 0x44
|
||||
#define MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_UP 0x45
|
||||
#define MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_LEFT 0x46
|
||||
#define MOVEMENT_TYPE_WALK_SLOWLY_IN_PLACE_RIGHT 0x47
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_FAST_DOWN 0x44
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_FAST_UP 0x45
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_FAST_LEFT 0x46
|
||||
#define MOVEMENT_TYPE_WALK_IN_PLACE_FAST_RIGHT 0x47
|
||||
#define MOVEMENT_TYPE_JOG_IN_PLACE_DOWN 0x48
|
||||
#define MOVEMENT_TYPE_JOG_IN_PLACE_UP 0x49
|
||||
#define MOVEMENT_TYPE_JOG_IN_PLACE_LEFT 0x4A
|
||||
|
||||
@@ -99,16 +99,16 @@ void TryOverrideObjectEventTemplateCoords(u8, u8, u8);
|
||||
void UpdateObjectEventCurrentMovement(struct ObjectEvent *, struct Sprite *, bool8(struct ObjectEvent *, struct Sprite *));
|
||||
u8 ObjectEventFaceOppositeDirection(struct ObjectEvent *, u8);
|
||||
u8 GetOppositeDirection(u8);
|
||||
u8 GetWalkInPlaceFastMovementAction(u32);
|
||||
u8 GetWalkInPlaceFasterMovementAction(u32);
|
||||
u8 GetStepInPlaceDelay8AnimId(u32);
|
||||
u8 GetWalkInPlaceNormalMovementAction(u32);
|
||||
u8 GetWalkInPlaceSlowMovementAction(u32);
|
||||
u8 GetStepInPlaceDelay32AnimId(u32);
|
||||
u8 GetWalkInPlaceFastMovementAction(u32);
|
||||
u8 GetCollisionAtCoords(struct ObjectEvent *, s16, s16, u32);
|
||||
void MoveCoords(u8, s16 *, s16 *);
|
||||
bool8 ObjectEventIsHeldMovementActive(struct ObjectEvent *);
|
||||
u8 ObjectEventClearHeldMovementIfFinished(struct ObjectEvent *);
|
||||
u8 GetObjectEventIdByXYZ(u16 x, u16 y, u8 z);
|
||||
u8 GetObjectEventIdByPosition(u16 x, u16 y, u8 elevation);
|
||||
void sub_8063E28(struct ObjectEvent *, struct Sprite *);
|
||||
bool8 ObjectEventSetHeldMovement(struct ObjectEvent *, u8);
|
||||
void ShiftStillObjectEventCoords(struct ObjectEvent *);
|
||||
@@ -123,7 +123,7 @@ bool8 ObjectEventIsMovementOverridden(struct ObjectEvent *objectEvent);
|
||||
u8 ObjectEventCheckHeldMovementStatus(struct ObjectEvent *objectEvent);
|
||||
u8 GetWalkNormalMovementAction(u32);
|
||||
u8 GetWalkFastMovementAction(u32);
|
||||
u8 GetWalkFastestMovementAction(u32);
|
||||
u8 GetWalkFasterMovementAction(u32);
|
||||
u8 GetWalkSlowerMovementAction(u32 direction);
|
||||
u8 GetTrainerFacingDirectionMovementType(u8 direction);
|
||||
u8 GetFaceDirectionMovementAction(u32);
|
||||
@@ -160,11 +160,9 @@ u8 CreateCopySpriteAt(struct Sprite *sprite, s16 x, s16 y, u8 subpriority);
|
||||
u16 GetObjectPaletteTag(u8 paletteIndex);
|
||||
void SetSpritePosToMapCoords(s16 x, s16 y, s16 *x2, s16 *y2);
|
||||
void UpdateObjectEventSpriteVisibility(struct Sprite *sprite, bool8 invisible);
|
||||
bool8 AreZCoordsCompatible(u8, u8);
|
||||
u8 ZCoordToPriority(u8 z);
|
||||
void ObjectEventUpdateZCoord(struct ObjectEvent *pObject);
|
||||
void SetObjectSubpriorityByZCoord(u8 z, struct Sprite *sprite, u8 offset);
|
||||
bool8 IsZCoordMismatchAt(u8, s16, s16);
|
||||
u8 ElevationToPriority(u8 elevation);
|
||||
void ObjectEventUpdateElevation(struct ObjectEvent *pObject);
|
||||
void SetObjectSubpriorityByElevation(u8 elevation, struct Sprite *sprite, u8 offset);
|
||||
void MakeObjectTemplateFromObjectEventGraphicsInfo(u16 graphicsId, void (*callback)(struct Sprite *), struct SpriteTemplate *spriteTemplate, const struct SubspriteTable **subspriteTables);
|
||||
u8 AddCameraObject(u8 trackedSpriteId);
|
||||
void UpdateObjectEventsForCameraUpdate(s16 x, s16 y);
|
||||
@@ -195,8 +193,8 @@ extern const struct OamData gObjectEventBaseOam_32x32;
|
||||
extern const u16 gFieldEffectObjectPic_CutGrass[];
|
||||
extern const u16 gFieldEffectPal_CutGrass[];
|
||||
extern const u8 gReflectionEffectPaletteMap[];
|
||||
u8 GetLedgeJumpDirection(s16 x, s16 y, u8 z);
|
||||
u8 sub_8063FDC(u32 direction);
|
||||
u8 GetLedgeJumpDirection(s16 x, s16 y, u8 direction);
|
||||
u8 GetGlideMovementAction(u32 direction);
|
||||
u8 GetRideWaterCurrentMovementAction(u32 direction);
|
||||
u8 GetPlayerRunMovementAction(u32 direction);
|
||||
u8 GetPlayerRunSlowMovementAction(u32 direction);
|
||||
@@ -206,12 +204,13 @@ u8 GetAcroWheelieFaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroPopWheelieFaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroEndWheelieFaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieHopFaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieHopDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieJumpDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieHopMovementAction(u32 direction);
|
||||
u8 GetAcroPopWheelieMoveMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieJumpMovementAction(u32 direction);
|
||||
u8 GetJumpInPlaceTurnAroundMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieInPlaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroPopWheelieMoveDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieMoveDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieInPlaceMovementAction(u32 direction);
|
||||
u8 GetAcroPopWheelieMoveMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieMoveMovementAction(u32 direction);
|
||||
u8 GetJumpSpecialWithEffectMovementAction(u32 direction);
|
||||
u8 GetFishingBiteDirectionAnimNum(u8 direction);
|
||||
void TrySpawnObjectEvents(s16 cameraX, s16 cameraY);
|
||||
|
||||
@@ -1257,7 +1257,7 @@ extern const u8 EventScript_CantUseWaterfall[];
|
||||
extern const u8 EventScript_VsSeekerChargingDone[];
|
||||
extern const u8 EventScript_FieldPoison[];
|
||||
extern const u8 EventScript_EggHatch[];
|
||||
extern const u8 EventScript_1C1361[];
|
||||
extern const u8 EventScript_DoFallWarp[];
|
||||
|
||||
// overworld
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ void SetPlayerAvatarTransitionFlags(u16 flags);
|
||||
bool8 IsPlayerFacingSurfableFishableWater(void);
|
||||
void StartFishing(u8 secondaryId);
|
||||
u8 GetPlayerAvatarObjectId(void);
|
||||
u8 PlayerGetZCoord(void);
|
||||
u8 PlayerGetElevation(void);
|
||||
u8 GetPlayerAvatarGraphicsIdByCurrentState(void);
|
||||
void StartPlayerAvatarSummonMonForFieldMoveAnim(void);
|
||||
void SetPlayerInvisibility(bool8);
|
||||
@@ -41,13 +41,13 @@ void StartPlayerAvatarVsSeekerAnim(void);
|
||||
u8 GetRivalAvatarGraphicsIdByStateIdAndGender(u8 state, u8 gender);
|
||||
u8 GetPlayerAvatarGraphicsIdByStateIdAndGender(u8 state, u8 gender);
|
||||
u8 CheckForObjectEventCollision(struct ObjectEvent *objectEvent, s16 x, s16 y, u8 direction, u8 metatileBehavior);
|
||||
void PlayerGoSlowest(u8 direction);
|
||||
void PlayerGoSlow(u8 direction);
|
||||
void PlayerGoSpeed1(u8 direction);
|
||||
void PlayerGoSpeed2(u8 direction);
|
||||
void sub_805C134(u8 direction);
|
||||
void PlayerWalkSlower(u8 direction);
|
||||
void PlayerWalkSlow(u8 direction);
|
||||
void PlayerWalkNormal(u8 direction);
|
||||
void PlayerWalkFast(u8 direction);
|
||||
void PlayerGlide(u8 direction);
|
||||
void PlayerRideWaterCurrent(u8 direction);
|
||||
void PlayerGoSpeed4(u8 direction);
|
||||
void PlayerWalkFaster(u8 direction);
|
||||
void PlayerRun(u8 direction);
|
||||
void PlayerRunSlow(u8 direction);
|
||||
void PlayerOnBikeCollide(u8 direction);
|
||||
|
||||
+1
-1
@@ -814,7 +814,7 @@ struct MapPosition
|
||||
{
|
||||
s16 x;
|
||||
s16 y;
|
||||
s8 height;
|
||||
s8 elevation;
|
||||
};
|
||||
|
||||
extern struct SaveBlock1* gSaveBlock1Ptr;
|
||||
|
||||
+1
-1
@@ -2875,7 +2875,7 @@ extern const u32 gTMCase_TMSpriteGfx[];
|
||||
extern const u32 gUnknown_8E84F20[];
|
||||
extern const u32 gUnknown_8E85068[];
|
||||
extern const u8 gUnknown_8E99118[];
|
||||
extern const u16 gTMCaseMainWindowPalette[];
|
||||
extern const u16 gStandardMenuPalette[];
|
||||
|
||||
// egg_hatch
|
||||
extern const u32 gBattleTextboxTiles[];
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_HELP_MESSAGE_H
|
||||
#define GUARD_HELP_MESSAGE_H
|
||||
|
||||
extern const u8 gHelpMessageWindow_Gfx[];
|
||||
|
||||
void DestroyHelpMessageWindow(u8 a0);
|
||||
u8 CreateHelpMessageWindow(void);
|
||||
void PrintTextOnHelpMessageWindow(const u8 * text, u8 mode);
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "text.h"
|
||||
#include "task.h"
|
||||
|
||||
extern const u16 gMenuMessageWindow_Gfx[];
|
||||
|
||||
void ClearScheduledBgCopiesToVram(void);
|
||||
void ScheduleBgCopyTilemapToVram(u8 bgId);
|
||||
void DoScheduledBgTilemapCopiesToVram(void);
|
||||
@@ -46,7 +48,7 @@ void RemoveStartMenuWindow(void);
|
||||
u16 GetStdWindowBaseTileNum(void);
|
||||
void DrawHelpMessageWindowWithText(const u8 * text);
|
||||
void DestroyHelpMessageWindow_(void);
|
||||
void LoadSignPostWindowFrameGfx(void);
|
||||
void LoadSignpostWindowFrameGfx(void);
|
||||
void SetDefaultFontsPointer(void);
|
||||
|
||||
#endif // GUARD_NEW_MENU_HELPERS_H
|
||||
|
||||
@@ -30,7 +30,6 @@ struct UnkStruct_203B044
|
||||
|
||||
extern u8 gQuestLogState;
|
||||
extern u8 gQuestLogPlaybackState;
|
||||
extern const u8 gUnknown_84566A8[];
|
||||
extern struct FieldInput gQuestLogFieldInput;
|
||||
extern struct UnkStruct_203B044 gUnknown_203B044;
|
||||
extern u16 *gUnknown_203AE04;
|
||||
|
||||
+4
-4
@@ -62,12 +62,12 @@ void ClearMsgBoxCancelableState(void);
|
||||
void SetQuestLogInputIsDpadFlag(void);
|
||||
void ClearQuestLogInput(void);
|
||||
void ClearQuestLogInputIsDpadFlag(void);
|
||||
void MsgSetSignPost(void);
|
||||
void MsgSetNotSignPost(void);
|
||||
bool8 IsMsgSignPost(void);
|
||||
void MsgSetSignpost(void);
|
||||
void MsgSetNotSignpost(void);
|
||||
bool8 IsMsgSignpost(void);
|
||||
bool8 IsQuestLogInputDpad(void);
|
||||
u8 GetRegisteredQuestLogInput(void);
|
||||
void ResetFacingNpcOrSignPostVars(void);
|
||||
void ResetFacingNpcOrSignpostVars(void);
|
||||
bool8 CanWalkAwayToCancelMsgBox(void);
|
||||
void SetWalkingIntoSignVars(void);
|
||||
bool8 IsMsgBoxWalkawayDisabled(void);
|
||||
|
||||
+10
-10
@@ -10,18 +10,18 @@ struct TilesPal
|
||||
};
|
||||
|
||||
void rbox_fill_rectangle(u8 windowId);
|
||||
const u16 *stdpal_get(u8 id);
|
||||
const u16 *GetTextWindowPalette(u8 id);
|
||||
const u16 *GetOverworldTextboxPalettePtr(void);
|
||||
void TextWindow_LoadResourcesStdFrame0(u8 windowId, u16 tileStart, u8 palette);
|
||||
void TextWindow_SetStdFrame0_WithPal(u8 windowId, u16 tileStart, u8 palette);
|
||||
void TextWindow_SetUserSelectedFrame(u8 windowId, u16 tileStart, u8 palette);
|
||||
void LoadUserWindowBorderGfx(u8 windowId, u16 tileStart, u8 palette);
|
||||
void DrawWindowBorderWithStdpal3(u8 bgId, u16 tileStart, u8 palette);
|
||||
void LoadMenuMessageWindowGfx(u8 windowId, u16 tileStart, u8 palette);
|
||||
void LoadStdWindowGfx(u8 windowId, u16 tileStart, u8 palette);
|
||||
void LoadUserWindowGfx(u8 windowId, u16 tileStart, u8 palette);
|
||||
void LoadUserWindowGfx2(u8 windowId, u16 tileStart, u8 palette);
|
||||
void LoadStdWindowGfxOnBg(u8 bgId, u16 tileStart, u8 palette);
|
||||
void DrawTextBorderOuter(u8 windowId, u16 tileStart, u8 palette);
|
||||
void DrawTextBorderInner(u8 windowId, u16 tileNum, u8 palNum);
|
||||
void TextWindow_LoadTilesStdFrame1(u8 windowId, u16 destOffset);
|
||||
void sub_814FE6C(u8 windowId, u16 destOffset, u8 palIdx);
|
||||
void sub_814FEEC(u8 windowId, u16 destOffset, u8 palIdx);
|
||||
void sub_814FF6C(u8 windowId, u16 destOffset);
|
||||
void LoadHelpMessageWindowGfx(u8 windowId, u16 destOffset, u8 palIdx);
|
||||
void LoadSignpostWindowGfx(u8 windowId, u16 destOffset, u8 palIdx);
|
||||
void LoadStdWindowTiles(u8 windowId, u16 destOffset);
|
||||
void LoadQuestLogWindowTiles(u8 windowId, u16 destOffset);
|
||||
|
||||
#endif // GUARD_TEXT_WINDOW_H
|
||||
|
||||
@@ -7,13 +7,13 @@ struct TextWindowGraphics
|
||||
const void *palette;
|
||||
};
|
||||
|
||||
extern const u16 gUnknown_8470B0C[];
|
||||
extern const u16 gStdFrame0[];
|
||||
extern const u16 gStdFrame1[];
|
||||
extern const u16 gUnknown_8471DEC[][16];
|
||||
extern const u16 gSignpostWindow_Gfx[];
|
||||
extern const u16 gStdTextWindow_Gfx[];
|
||||
extern const u16 gQuestLogWindow_Gfx[];
|
||||
extern const u16 gTextWindowPalettes[][16];
|
||||
|
||||
extern const struct TextWindowGraphics gUserFrames[];
|
||||
|
||||
const struct TextWindowGraphics *GetWindowFrameTilesPal(u8 idx);
|
||||
const struct TextWindowGraphics *GetUserWindowGraphics(u8 idx);
|
||||
|
||||
#endif //GUARD_TEXT_WINDOW_GRAPHICS_H
|
||||
|
||||
Reference in New Issue
Block a user