25 #define _PI ((FLOAT)3.141592654f) 29 #define DEGTORAD(degree) ((PI / 180.0f) * (degree)) 33 #define RADTODEG(radian) ((180.0f / PI) * (radian)) 36 #define MenuGroupOptions "MENUGROUP_OPTIONS" 37 #define MenuItemOptions "MENUITEM_OPTIONS" 38 #define MenuHotkeys "MENU_HOTKEYS" 93 bool m_bIsLeftSingleClicked,
m_bIsRightClicked, m_bIsMiddleClicked, m_bIsLeftHeld, Drag, m_bIsMenuOpen;
104 void SetActiveMode(
bool m_bMode);
105 void SetColor(
int type,
const D3DCOLOR color);
106 void SetInitialCoords(
int x,
int y);
108 void InitializeMenu(
void);
111 void InitalizeFont(
char *font,
int size, IDirect3DDevice9* pD3Ddev);
112 void PostReset(
char *font,
int size, IDirect3DDevice9* pD3Ddev);
116 int AddMenuGroup(
const char title[20]);
117 int AddMenuItem(
const char title[20],
float *cvar,
int min,
int max,
int GroupID,
int vKey = NULL,
char *Opt = NULL, ...);
121 void DisableAllMenuItems();
122 bool IsMouseInVector(
int x,
int y,
int w,
int h);
125 void DrawMenu(
char* title, IDirect3DDevice9* pDevice);
128 void HandleItemHotkeys(WPARAM wKey);
129 void HandleKeyNavigation(WPARAM wKey);
131 void DragMenuWindow(
void);
132 void HandleKeys(WPARAM wParams, LPARAM lParams, UINT msg);
136 void DrawText1(
int x,
int y, DWORD color,
char *szFormat, ...);
137 void DrawGameTextPixel(
int x,
int y, DWORD color,
char *szFormat, ...);
138 void FillRGB(
int x,
int y,
int w,
int h, D3DCOLOR color, IDirect3DDevice9* pDevice);
139 void FillARGB(
int x,
int y,
int w,
int h, D3DCOLOR color, IDirect3DDevice9* pDevice);
140 void FillARGBGradient(
int x,
int y,
int w,
int h, D3DCOLOR color1, DWORD color2, IDirect3DDevice9* pDevice);
141 void DrawBorder(
int x,
int y,
int w,
int h,
int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice);
142 void DrawBox(
int x,
int y,
int w,
int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice);
143 void DrawHealthBox(
int x,
int y, DWORD m_dColorOut, DWORD m_dColorIn,
int m_iHealth,
int m_iMaxHealth, IDirect3DDevice9* pDevice);
144 void DrawMouse(IDirect3DDevice9* pDevice,
bool DrawIt =
false);
145 void DrawRadar(
int x,
int y,
int size, IDirect3DDevice9* pDevice);
146 void DrawDot(
int x,
int y,
int r,
int g,
int b, IDirect3DDevice9* pDevice);
147 void DrawLine(
int x1,
int y1,
int x2,
int y2, D3DCOLOR col, IDirect3DDevice9* pDevice);
148 void DrawCircle(
int x,
int y,
float radius, D3DCOLOR color, IDirect3DDevice9* pDevice);;
150 bool bMenu, FontCreated, firstInit, moving[3];
154 int GetMaxItemsToDraw(
void);
155 int GetMaxItemsInGroup(
int index);
156 int GetRealIterator(
int Item,
int &Type);
157 LineVertex CreateD3DTLVERTEX(
float X,
float Y,
float Z,
float RHW, D3DCOLOR color,
float U,
float V);
163 int MAX_ITEMS, MAX_GROUPS, curItem;
164 bool bInitialized, bCanUseSettings;
165 D3DCOLOR MenuColors[10];
168 int MaxItemsToDrawAtOnce;
enum menu_itemtypes_s menu_itemtypes_t
float z
Definition: cLTFX.h:80
menu_itemtypes_s
Definition: cLTFX.h:55
char title[20]
Definition: cLTFX.h:63
int max
Definition: cLTFX.h:66
int y
Definition: cLTFX.h:94
const int MAX_GROUP
Definition: d3d9dev.cpp:78
float * value
Definition: cLTFX.h:72
float value
Definition: cLTFX.h:64
menu_colors_s
Definition: cLTFX.h:43
cMenu menu
Definition: d3d9dev.cpp:80
int vKey
Definition: cLTFX.h:73
bool useDesc
Definition: cLTFX.h:75
D3DCOLOR color
Definition: cLTFX.h:87
int min
Definition: cLTFX.h:66
float z
Definition: cLTFX.h:86
const int MAX_DRAW
Definition: d3d9dev.cpp:79
bool settings
Definition: cLTFX.h:65
enum menu_colors_s menu_colors_t
DWORD dwColor
Definition: cLTFX.h:81
float tv
Definition: cLTFX.h:88
int GroupID
Definition: cLTFX.h:66
bool m_bIsRightClicked
Definition: cLTFX.h:93