123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- #ifndef UIBATTLE_H
- #define UIBATTLE_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include "ui.h"
- typedef enum tagBATTLEUISTATE
- {
- kBattleUIWait,
- kBattleUISelectMove,
- kBattleUISelectTargetEnemy,
- kBattleUISelectTargetPlayer,
- kBattleUISelectTargetEnemyAll,
- kBattleUISelectTargetPlayerAll,
- } BATTLEUISTATE;
- typedef enum tagBATTLEMENUSTATE
- {
- kBattleMenuMain,
- kBattleMenuMagicSelect,
- kBattleMenuUseItemSelect,
- kBattleMenuThrowItemSelect,
- kBattleMenuMisc,
- kBattleMenuMiscItemSubMenu,
- } BATTLEMENUSTATE;
- typedef enum tagBATTLEUIACTION
- {
- kBattleUIActionAttack,
- kBattleUIActionMagic,
- kBattleUIActionCoopMagic,
- kBattleUIActionMisc,
- } BATTLEUIACTION;
- #define SPRITENUM_BATTLEICON_ATTACK 40
- #define SPRITENUM_BATTLEICON_MAGIC 41
- #define SPRITENUM_BATTLEICON_COOPMAGIC 42
- #define SPRITENUM_BATTLEICON_MISCMENU 43
- #define SPRITENUM_BATTLE_ARROW_CURRENTPLAYER 69
- #define SPRITENUM_BATTLE_ARROW_CURRENTPLAYER_RED 68
- #define SPRITENUM_BATTLE_ARROW_SELECTEDPLAYER 67
- #define SPRITENUM_BATTLE_ARROW_SELECTEDPLAYER_RED 66
- #define BATTLEUI_LABEL_ITEM 5
- #define BATTLEUI_LABEL_DEFEND 58
- #define BATTLEUI_LABEL_AUTO 56
- #define BATTLEUI_LABEL_INVENTORY 57
- #define BATTLEUI_LABEL_FLEE 59
- #define BATTLEUI_LABEL_STATUS 60
- #define BATTLEUI_LABEL_USEITEM 23
- #define BATTLEUI_LABEL_THROWITEM 24
- #define TIMEMETER_COLOR_DEFAULT 0x1B
- #define TIMEMETER_COLOR_SLOW 0x5B
- #define TIMEMETER_COLOR_HASTE 0x2A
- #define BATTLEUI_MAX_SHOWNUM 16
- typedef struct tagSHOWNUM
- {
- WORD wNum;
- PAL_POS pos;
- DWORD dwTime;
- NUMCOLOR color;
- } SHOWNUM;
- typedef struct tagBATTLEUI
- {
- BATTLEUISTATE state;
- BATTLEMENUSTATE MenuState;
- CHAR szMsg[256];
- CHAR szNextMsg[256];
- DWORD dwMsgShowTime;
- WORD wNextMsgDuration;
- WORD wCurPlayerIndex;
- WORD wSelectedAction;
- WORD wSelectedIndex;
- WORD wPrevEnemyTarget;
- WORD wActionType;
- WORD wObjectID;
- BOOL fAutoAttack;
- SHOWNUM rgShowNum[BATTLEUI_MAX_SHOWNUM];
- } BATTLEUI;
- VOID
- PAL_PlayerInfoBox(
- PAL_POS pos,
- WORD wPlayerRole,
- INT iTimeMeter,
- BYTE bTimeMeterColor,
- BOOL fUpdate
- );
- VOID
- PAL_BattleUIShowText(
- LPCSTR lpszText,
- WORD wDuration
- );
- VOID
- PAL_BattleUIPlayerReady(
- WORD wPlayerIndex
- );
- VOID
- PAL_BattleUIUpdate(
- VOID
- );
- VOID
- PAL_BattleUIShowNum(
- WORD wNum,
- PAL_POS pos,
- NUMCOLOR color
- );
- #ifdef __cplusplus
- }
- #endif
- #endif
|