Triditizer
cMenu Class Reference

#include <cLTFX.h>

Collaboration diagram for cMenu:

Public Member Functions

 cMenu (int MAX_MENU, int MAX_GROUP, int MAX_DRAW)
 
 ~cMenu ()
 
void SetActiveMode (bool m_bMode)
 
void SetColor (int type, const D3DCOLOR color)
 
void SetInitialCoords (int x, int y)
 
void InitializeMenu (void)
 
void InitalizeFont (char *font, int size, IDirect3DDevice9 *pD3Ddev)
 
void PostReset (char *font, int size, IDirect3DDevice9 *pD3Ddev)
 
void PreReset (void)
 
int AddMenuGroup (const char title[20])
 
int AddMenuItem (const char title[20], float *cvar, int min, int max, int GroupID, int vKey=NULL, char *Opt=NULL,...)
 
int getItemsCount ()
 
void DisableAllMenuItems ()
 
bool IsMouseInVector (int x, int y, int w, int h)
 
void DrawMenu (char *title, IDirect3DDevice9 *pDevice)
 
void HandleItemHotkeys (WPARAM wKey)
 
void HandleKeyNavigation (WPARAM wKey)
 
void DragMenuWindow (void)
 
void HandleKeys (WPARAM wParams, LPARAM lParams, UINT msg)
 
void DrawText1 (int x, int y, DWORD color, char *szFormat,...)
 
void DrawGameTextPixel (int x, int y, DWORD color, char *szFormat,...)
 
void FillRGB (int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9 *pDevice)
 
void FillARGB (int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9 *pDevice)
 
void FillARGBGradient (int x, int y, int w, int h, D3DCOLOR color1, DWORD color2, IDirect3DDevice9 *pDevice)
 
void DrawBorder (int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9 *pDevice)
 
void DrawBox (int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9 *pDevice)
 
void DrawHealthBox (int x, int y, DWORD m_dColorOut, DWORD m_dColorIn, int m_iHealth, int m_iMaxHealth, IDirect3DDevice9 *pDevice)
 
void DrawMouse (IDirect3DDevice9 *pDevice, bool DrawIt=false)
 
void DrawRadar (int x, int y, int size, IDirect3DDevice9 *pDevice)
 
void DrawDot (int x, int y, int r, int g, int b, IDirect3DDevice9 *pDevice)
 
void DrawLine (int x1, int y1, int x2, int y2, D3DCOLOR col, IDirect3DDevice9 *pDevice)
 
void DrawCircle (int x, int y, float radius, D3DCOLOR color, IDirect3DDevice9 *pDevice)
 

Public Attributes

bool bMenu
 
bool FontCreated
 
bool firstInit
 
bool moving [3]
 
Mouse m_mouse
 

Constructor & Destructor Documentation

cMenu::cMenu ( int  MAX_MENU,
int  MAX_GROUP,
int  MAX_DRAW 
)
cMenu::~cMenu ( )

Member Function Documentation

int cMenu::AddMenuGroup ( const char  title[20])

Here is the caller graph for this function:

int cMenu::AddMenuItem ( const char  title[20],
float *  cvar,
int  min,
int  max,
int  GroupID,
int  vKey = NULL,
char *  Opt = NULL,
  ... 
)

Here is the caller graph for this function:

void cMenu::DisableAllMenuItems ( )
void cMenu::DragMenuWindow ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void cMenu::DrawBorder ( int  x,
int  y,
int  w,
int  h,
int  px,
D3DCOLOR  BorderColor,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void cMenu::DrawBox ( int  x,
int  y,
int  w,
int  h,
D3DCOLOR  BoxColor,
D3DCOLOR  BorderColor,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void cMenu::DrawCircle ( int  x,
int  y,
float  radius,
D3DCOLOR  color,
IDirect3DDevice9 *  pDevice 
)
void cMenu::DrawDot ( int  x,
int  y,
int  r,
int  g,
int  b,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

void cMenu::DrawGameTextPixel ( int  x,
int  y,
DWORD  color,
char *  szFormat,
  ... 
)

Here is the caller graph for this function:

void cMenu::DrawHealthBox ( int  x,
int  y,
DWORD  m_dColorOut,
DWORD  m_dColorIn,
int  m_iHealth,
int  m_iMaxHealth,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

void cMenu::DrawLine ( int  x1,
int  y1,
int  x2,
int  y2,
D3DCOLOR  col,
IDirect3DDevice9 *  pDevice 
)
void cMenu::DrawMenu ( char *  title,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void cMenu::DrawMouse ( IDirect3DDevice9 *  pDevice,
bool  DrawIt = false 
)

Here is the caller graph for this function:

void cMenu::DrawRadar ( int  x,
int  y,
int  size,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

void cMenu::DrawText1 ( int  x,
int  y,
DWORD  color,
char *  szFormat,
  ... 
)
void cMenu::FillARGB ( int  x,
int  y,
int  w,
int  h,
D3DCOLOR  color,
IDirect3DDevice9 *  pDevice 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void cMenu::FillARGBGradient ( int  x,
int  y,
int  w,
int  h,
D3DCOLOR  color1,
DWORD  color2,
IDirect3DDevice9 *  pDevice 
)
void cMenu::FillRGB ( int  x,
int  y,
int  w,
int  h,
D3DCOLOR  color,
IDirect3DDevice9 *  pDevice 
)

Here is the caller graph for this function:

int cMenu::getItemsCount ( )

Here is the caller graph for this function:

void cMenu::HandleItemHotkeys ( WPARAM  wKey)

Here is the caller graph for this function:

void cMenu::HandleKeyNavigation ( WPARAM  wKey)

Here is the caller graph for this function:

void cMenu::HandleKeys ( WPARAM  wParams,
LPARAM  lParams,
UINT  msg 
)

Here is the call graph for this function:

void cMenu::InitalizeFont ( char *  font,
int  size,
IDirect3DDevice9 *  pD3Ddev 
)

Here is the caller graph for this function:

void cMenu::InitializeMenu ( void  )

Here is the caller graph for this function:

bool cMenu::IsMouseInVector ( int  x,
int  y,
int  w,
int  h 
)

Here is the caller graph for this function:

void cMenu::PostReset ( char *  font,
int  size,
IDirect3DDevice9 *  pD3Ddev 
)
void cMenu::PreReset ( void  )

Here is the caller graph for this function:

void cMenu::SetActiveMode ( bool  m_bMode)

Here is the caller graph for this function:

void cMenu::SetColor ( int  type,
const D3DCOLOR  color 
)

Here is the caller graph for this function:

void cMenu::SetInitialCoords ( int  x,
int  y 
)

Here is the caller graph for this function:

Member Data Documentation

bool cMenu::bMenu
bool cMenu::firstInit
bool cMenu::FontCreated
Mouse cMenu::m_mouse
bool cMenu::moving[3]

The documentation for this class was generated from the following files: