Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
9,353 additions
and
9,347 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,139 +1,139 @@ | ||
//HEADER_GOES_HERE | ||
#ifndef __CONTROL_H__ | ||
#define __CONTROL_H__ | ||
|
||
extern BYTE *pDurIcons; | ||
extern BYTE *pChrButtons; | ||
extern BOOL drawhpflag; | ||
extern BOOL dropGoldFlag; | ||
extern int panbtn[8]; | ||
extern int chrbtn[4]; | ||
extern BYTE *pMultiBtns; | ||
extern BYTE *pPanelButtons; | ||
extern BYTE *pChrPanel; | ||
extern BOOL lvlbtndown; | ||
extern int dropGoldValue; | ||
extern BOOL drawmanaflag; | ||
extern BOOL chrbtnactive; | ||
extern BYTE *pPanelText; | ||
extern int nGoldFrame; | ||
extern BYTE *pLifeBuff; | ||
extern BYTE *pBtmBuff; | ||
extern BYTE *pTalkBtns; | ||
extern int pstrjust[4]; | ||
extern int pnumlines; | ||
extern BOOL pinfoflag; | ||
extern BOOL talkbtndown[3]; | ||
extern int pSpell; | ||
extern BYTE *pManaBuff; | ||
extern char infoclr; | ||
extern BYTE *pGBoxBuff; | ||
extern BYTE *pSBkBtnCel; | ||
extern char tempstr[256]; | ||
extern BOOLEAN whisper[MAX_PLRS]; | ||
extern int sbooktab; | ||
extern int pSplType; | ||
extern int frame; | ||
extern int initialDropGoldIndex; | ||
extern BOOL talkflag; | ||
extern BYTE *pSBkIconCels; | ||
extern BOOL sbookflag; | ||
extern BOOL chrflag; | ||
extern BOOL drawbtnflag; | ||
extern BYTE *pSpellBkCel; | ||
extern char infostr[MAX_PATH]; | ||
extern int numpanbtns; | ||
extern BYTE *pStatusPanel; | ||
extern char panelstr[256]; | ||
extern BOOL panelflag; | ||
extern BYTE SplTransTbl[256]; | ||
extern int initialDropGoldValue; | ||
extern BYTE *pSpellCels; | ||
extern BOOL panbtndown; | ||
extern BYTE *pTalkPanel; | ||
extern int spselflag; | ||
|
||
void DrawSpellCel(int xp, int yp, BYTE *Trans, int nCel, int w); | ||
void SetSpellTrans(char t); | ||
void DrawSpell(); | ||
void DrawSpellList(); | ||
void SetSpell(); | ||
void SetSpeedSpell(int slot); | ||
void ToggleSpell(int slot); | ||
void CPrintString(int nOffset, int nCel, char col); | ||
void AddPanelString(char *str, BOOL just); | ||
void ClearPanel(); | ||
void DrawPanelBox(int x, int y, int w, int h, int sx, int sy); | ||
void InitPanelStr(); | ||
void SetFlaskHeight(BYTE *pCelBuff, int min, int max, int c, int r); | ||
void DrawFlask(BYTE *pCelBuff, int w, int nSrcOff, BYTE *pBuff, int nDstOff, int h); | ||
void DrawLifeFlask(); | ||
void UpdateLifeFlask(); | ||
void DrawManaFlask(); | ||
void control_update_life_mana(); | ||
void UpdateManaFlask(); | ||
void InitControlPan(); | ||
void ClearCtrlPan(); | ||
void DrawCtrlPan(); | ||
void DoSpeedBook(); | ||
void DoPanBtn(); | ||
void control_set_button_down(int btn_id); | ||
void control_check_btn_press(); | ||
void DoAutoMap(); | ||
void CheckPanelInfo(); | ||
void CheckBtnUp(); | ||
void FreeControlPan(); | ||
BOOL control_WriteStringToBuffer(BYTE *str); | ||
void DrawInfoBox(); | ||
void control_draw_info_str(); | ||
void control_print_info_str(int y, char *str, BOOL center, int lines); | ||
void PrintGameStr(int x, int y, char *str, int color); | ||
void DrawChr(); | ||
#define ADD_PlrStringXY(x, y, width, pszStr, col) MY_PlrStringXY(x, y, width, pszStr, col, 1) | ||
void MY_PlrStringXY(int x, int y, int width, char *pszStr, char col, int base); | ||
void CheckLvlBtn(); | ||
void ReleaseLvlBtn(); | ||
void DrawLevelUpIcon(); | ||
void CheckChrBtns(); | ||
void ReleaseChrBtns(); | ||
void DrawDurIcon(); | ||
int DrawDurIcon4Item(ItemStruct *pItem, int x, int c); | ||
void RedBack(); | ||
char GetSBookTrans(int ii, BOOL townok); | ||
void DrawSpellBook(); | ||
void PrintSBookStr(int x, int y, BOOL cjustflag, char *pszStr, char col); | ||
void CheckSBook(); | ||
char *get_pieces_str(int nGold); | ||
void DrawGoldSplit(int amount); | ||
void control_drop_gold(char vkey); | ||
void control_remove_gold(int pnum, int gold_index); | ||
void control_set_gold_curs(int pnum); | ||
void DrawTalkPan(); | ||
char *control_print_talk_msg(char *msg, int x, int y, int *nOffset, int just); | ||
BOOL control_check_talk_btn(); | ||
void control_release_talk_btn(); | ||
void control_reset_talk_msg(); | ||
void control_type_message(); | ||
void control_reset_talk(); | ||
BOOL control_talk_last_key(int vkey); | ||
BOOL control_presskeys(int vkey); | ||
void control_press_enter(); | ||
void control_up_down(int v); | ||
|
||
/* rdata */ | ||
extern const BYTE fontframe[128]; | ||
extern const BYTE fontkern[68]; | ||
extern const int lineoffset[25]; | ||
extern const BYTE gbFontTransTbl[256]; | ||
|
||
/* data */ | ||
|
||
extern char SpellITbl[MAX_SPELLS]; | ||
extern int PanBtnPos[8][5]; | ||
extern char *PanBtnHotKey[8]; | ||
extern char *PanBtnStr[8]; | ||
extern RECT32 ChrBtnsRect[4]; | ||
extern int attribute_inc_rects2[4][4]; | ||
extern int SpellPages[6][7]; | ||
|
||
#endif /* __CONTROL_H__ */ | ||
//HEADER_GOES_HERE | ||
#ifndef __CONTROL_H__ | ||
#define __CONTROL_H__ | ||
|
||
extern BYTE *pDurIcons; | ||
extern BYTE *pChrButtons; | ||
extern BOOL drawhpflag; | ||
extern BOOL dropGoldFlag; | ||
extern int panbtn[8]; | ||
extern int chrbtn[4]; | ||
extern BYTE *pMultiBtns; | ||
extern BYTE *pPanelButtons; | ||
extern BYTE *pChrPanel; | ||
extern BOOL lvlbtndown; | ||
extern int dropGoldValue; | ||
extern BOOL drawmanaflag; | ||
extern BOOL chrbtnactive; | ||
extern BYTE *pPanelText; | ||
extern int nGoldFrame; | ||
extern BYTE *pLifeBuff; | ||
extern BYTE *pBtmBuff; | ||
extern BYTE *pTalkBtns; | ||
extern int pstrjust[4]; | ||
extern int pnumlines; | ||
extern BOOL pinfoflag; | ||
extern BOOL talkbtndown[3]; | ||
extern int pSpell; | ||
extern BYTE *pManaBuff; | ||
extern char infoclr; | ||
extern BYTE *pGBoxBuff; | ||
extern BYTE *pSBkBtnCel; | ||
extern char tempstr[256]; | ||
extern BOOLEAN whisper[MAX_PLRS]; | ||
extern int sbooktab; | ||
extern int pSplType; | ||
extern int frame; | ||
extern int initialDropGoldIndex; | ||
extern BOOL talkflag; | ||
extern BYTE *pSBkIconCels; | ||
extern BOOL sbookflag; | ||
extern BOOL chrflag; | ||
extern BOOL drawbtnflag; | ||
extern BYTE *pSpellBkCel; | ||
extern char infostr[MAX_PATH]; | ||
extern int numpanbtns; | ||
extern BYTE *pStatusPanel; | ||
extern char panelstr[256]; | ||
extern BOOL panelflag; | ||
extern BYTE SplTransTbl[256]; | ||
extern int initialDropGoldValue; | ||
extern BYTE *pSpellCels; | ||
extern BOOL panbtndown; | ||
extern BYTE *pTalkPanel; | ||
extern int spselflag; | ||
|
||
void DrawSpellCel(int xp, int yp, BYTE *Trans, int nCel, int w); | ||
void SetSpellTrans(char t); | ||
void DrawSpell(); | ||
void DrawSpellList(); | ||
void SetSpell(); | ||
void SetSpeedSpell(int slot); | ||
void ToggleSpell(int slot); | ||
void CPrintString(int nOffset, int nCel, char col); | ||
void AddPanelString(char *str, BOOL just); | ||
void ClearPanel(); | ||
void DrawPanelBox(int x, int y, int w, int h, int sx, int sy); | ||
void InitPanelStr(); | ||
void SetFlaskHeight(BYTE *pCelBuff, int min, int max, int c, int r); | ||
void DrawFlask(BYTE *pCelBuff, int w, int nSrcOff, BYTE *pBuff, int nDstOff, int h); | ||
void DrawLifeFlask(); | ||
void UpdateLifeFlask(); | ||
void DrawManaFlask(); | ||
void control_update_life_mana(); | ||
void UpdateManaFlask(); | ||
void InitControlPan(); | ||
void ClearCtrlPan(); | ||
void DrawCtrlPan(); | ||
void DoSpeedBook(); | ||
void DoPanBtn(); | ||
void control_set_button_down(int btn_id); | ||
void control_check_btn_press(); | ||
void DoAutoMap(); | ||
void CheckPanelInfo(); | ||
void CheckBtnUp(); | ||
void FreeControlPan(); | ||
BOOL control_WriteStringToBuffer(BYTE *str); | ||
void DrawInfoBox(); | ||
void control_draw_info_str(); | ||
void control_print_info_str(int y, char *str, BOOL center, int lines); | ||
void PrintGameStr(int x, int y, char *str, int color); | ||
void DrawChr(); | ||
#define ADD_PlrStringXY(x, y, width, pszStr, col) MY_PlrStringXY(x, y, width, pszStr, col, 1) | ||
void MY_PlrStringXY(int x, int y, int width, char *pszStr, char col, int base); | ||
void CheckLvlBtn(); | ||
void ReleaseLvlBtn(); | ||
void DrawLevelUpIcon(); | ||
void CheckChrBtns(); | ||
void ReleaseChrBtns(); | ||
void DrawDurIcon(); | ||
int DrawDurIcon4Item(ItemStruct *pItem, int x, int c); | ||
void RedBack(); | ||
char GetSBookTrans(int ii, BOOL townok); | ||
void DrawSpellBook(); | ||
void PrintSBookStr(int x, int y, BOOL cjustflag, char *pszStr, char col); | ||
void CheckSBook(); | ||
char *get_pieces_str(int nGold); | ||
void DrawGoldSplit(int amount); | ||
void control_drop_gold(char vkey); | ||
void control_remove_gold(int pnum, int gold_index); | ||
void control_set_gold_curs(int pnum); | ||
void DrawTalkPan(); | ||
char *control_print_talk_msg(char *msg, int x, int y, int *nOffset, int just); | ||
BOOL control_check_talk_btn(); | ||
void control_release_talk_btn(); | ||
void control_reset_talk_msg(); | ||
void control_type_message(); | ||
void control_reset_talk(); | ||
BOOL control_talk_last_key(int vkey); | ||
BOOL control_presskeys(int vkey); | ||
void control_press_enter(); | ||
void control_up_down(int v); | ||
|
||
/* rdata */ | ||
extern const BYTE fontframe[128]; | ||
extern const BYTE fontkern[68]; | ||
extern const int lineoffset[25]; | ||
extern const BYTE gbFontTransTbl[256]; | ||
|
||
/* data */ | ||
|
||
extern char SpellITbl[MAX_SPELLS]; | ||
extern int PanBtnPos[8][5]; | ||
extern char *PanBtnHotKey[8]; | ||
extern char *PanBtnStr[8]; | ||
extern RECT32 ChrBtnsRect[4]; | ||
extern int attribute_inc_rects2[4][4]; | ||
extern int SpellPages[6][7]; | ||
|
||
#endif /* __CONTROL_H__ */ |
Oops, something went wrong.