Devilution
Diablo devolved - magic behind the 1996 computer game
|
Go to the documentation of this file.
58 void DrawSpellCel(
int xp,
int yp, BYTE *Trans,
int nCel,
int w);
65 void PrintChar(
int sx,
int sy,
int nCel,
char col);
68 void DrawPanelBox(
int x,
int y,
int w,
int h,
int sx,
int sy);
70 void SetFlaskHeight(BYTE *pCelBuff,
int min,
int max,
int sx,
int sy);
71 void DrawFlask(BYTE *pCelBuff,
int w,
int nSrcOff, BYTE *pBuff,
int nDstOff,
int h);
91 void CPrintString(
int y,
char *str, BOOL center,
int lines);
92 void PrintGameStr(
int x,
int y,
const char *str,
int color);
94 #define ADD_PlrStringXY(x, y, width, pszStr, col) MY_PlrStringXY(x, y, width, pszStr, col, 1)
95 void MY_PlrStringXY(
int x,
int y,
int width,
char *pszStr,
char col,
int base);
106 void PrintSBookStr(
int x,
int y, BOOL cjustflag,
char *pszStr,
char col);
void control_set_button_down(int btn_id)
void control_drop_gold(char vkey)
void control_remove_gold(int pnum, int gold_index)
void SetSpellTrans(char t)
void CPrintString(int y, char *str, BOOL center, int lines)
void control_press_enter()
BOOL control_WriteStringToBuffer(BYTE *str)
void DrawFlask(BYTE *pCelBuff, int w, int nSrcOff, BYTE *pBuff, int nDstOff, int h)
Draws the dome of the flask that protrudes above the panel top line.
void DrawSpell()
Sets the spell frame to draw and its position then draws it.
char * get_pieces_str(int nGold)
int DrawDurIcon4Item(ItemStruct *pItem, int x, int c)
void PrintGameStr(int x, int y, const char *str, int color)
void DoSpeedBook()
Draws the "Speed Book": the rows of known spells for quick-setting a spell that show up when you clic...
BOOLEAN whisper[MAX_PLRS]
void MY_PlrStringXY(int x, int y, int width, char *pszStr, char col, int base)
Render text string to back buffer.
void control_update_life_mana()
void UpdateLifeFlask()
Controls the drawing of the area of the life flask within the control panel.
void PrintChar(int sx, int sy, int nCel, char col)
Print letter to the back buffer.
void UpdateManaFlask()
Controls the drawing of the area of the life flask within the control panel.
void DrawSpellCel(int xp, int yp, BYTE *Trans, int nCel, int w)
Draw spell cell onto the back buffer.
void control_release_talk_btn()
int PanBtnPos[8][5]
Maps from panel_button_id to the position and dimensions of a panel button.
void control_check_btn_press()
const BYTE fontkern[68]
Maps from smaltext.cel frame number to character width.
void SetSpeedSpell(int slot)
BOOL control_talk_last_key(int vkey)
const BYTE fontframe[128]
Maps from font index to smaltext.cel frame number.
void control_up_down(int v)
void DrawPanelBox(int x, int y, int w, int h, int sx, int sy)
BOOL control_presskeys(int vkey)
void CheckBtnUp()
Check if the mouse is within a control panel button that's flagged.
void DrawInfoBox()
Sets a string to be drawn in the info box and then draws it.
char * control_print_talk_msg(char *msg, int *x, int y, int just)
void control_set_gold_curs(int pnum)
void AddPanelString(char *str, BOOL just)
char SpellITbl[MAX_SPELLS]
Maps from spell_id to spelicon.cel frame number.
void DrawCtrlBtns()
Draws the control panel buttons in their current state.
char GetSBookTrans(int ii, BOOL townok)
void DrawLifeFlask()
Draws the top dome of the life flask (that part that protrudes out of the control panel).
void control_reset_talk()
int SpellPages[6][7]
Maps from spellbook page number and position to spell_id.
char * PanBtnHotKey[8]
Maps from panel_button_id to hotkey name.
void DoPanBtn()
Checks if the mouse cursor is within any of the panel buttons and flag it if so.
void control_type_message()
void control_reset_talk_msg()
const int lineOffsets[5][5]
Line start position for info box text when displaying 1, 2, 3, 4 and 5 lines respectivly.
char * PanBtnStr[8]
Maps from panel_button_id to panel button description.
const BYTE gbFontTransTbl[256]
Maps ASCII character code to font index, as used by the small, medium and large sized fonts; which co...
void ToggleSpell(int slot)
RECT32 ChrBtnsRect[4]
Maps from attribute_id to the rectangle on screen used for attribute increment buttons.
BOOL control_check_talk_btn()
void CheckPanelInfo()
Checks the mouse cursor position within the control panel and sets information strings if needed.
void PrintSBookStr(int x, int y, BOOL cjustflag, char *pszStr, char col)
void DrawGoldSplit(int amount)
void SetFlaskHeight(BYTE *pCelBuff, int min, int max, int sx, int sy)
Draws a section of the empty flask cel on top of the panel to create the illusion of the flask gettin...