Originally Posted by
AVGN
MY MENU MADE BY MEEEE
[php]
#ifndef _MENU_H
#define _MENU_H
#pragma once
#include "includes.h"
//Commented are the steam colors.
//const D3DCOLOR LightAvacado = D3DCOLOR_ARGB( 255, 78, 88, 68 );
const D3DCOLOR LightAvacado = D3DCOLOR_ARGB( 225, 150, 150, 150 );
//const D3DCOLOR LightOutline = D3DCOLOR_ARGB( 255, 136, 144, 129 );
const D3DCOLOR LightOutline = D3DCOLOR_ARGB( 255, 215, 215, 215 );
//const D3DCOLOR DarkOutline = D3DCOLOR_ARGB( 255, 37, 48, 32 );
const D3DCOLOR DarkOutline = D3DCOLOR_ARGB( 255, 60, 60, 60 );
//const D3DCOLOR DarkInsideFill = D3DCOLOR_ARGB( 255, 62, 70, 55 );
const D3DCOLOR DarkInsideFill = D3DCOLOR_ARGB( 200, 110, 110, 110 );
//const D3DCOLOR OffYellow = D3DCOLOR_ARGB( 255, 196, 181, 80 );
const D3DCOLOR OffYellow = D3DCOLOR_ARGB( 255, 190, 190, 190 );
//const D3DCOLOR GreyGreen = D3DCOLOR_ARGB( 200, 136, 144, 129);
const D3DCOLOR GreyGreen = D3DCOLOR_ARGB( 255, 125, 125, 125);
const D3DCOLOR White = D3DCOLOR_ARGB( 255, 255, 255, 255 );
const D3DCOLOR Black = D3DCOLOR_ARGB( 255, 0, 0, 0 );
const int TotalTabs = 5;
const int MaxBoxs = 61;
const int MaxArrs = 13;
struct MenuSettings{
bool Show, DoOnce;
int TabIndex, TotalTabs, MaxTabs,
LeftButton, RightButtonX;
};
struct Tabs{
bool OnOff;
char *name;
};
struct CheckBox{
bool OnOff;
char *name;
};
struct sArrowList{
int Value;
};
class cMenu
{
public:
POINT Cur;
CheckBox cBox[MaxBoxs];
int NameEsp, DistanceEsp, HealthBars, BoxEsp, LineEsp, VisibleChecks, NpcEsp, MaxFov,
DefualtFov, iSpeed, Aimbot, Radar, iAimKey, iRemoteKill,
iMenuKey, iTeleKey, AimBone, AimMode;
cMenu( void )
{
iAimKey = VK_CAPITAL;
iMenuKey = VK_INSERT;
iTeleKey = 88;
NameEsp = 0;
DistanceEsp = 0;
HealthBars = 0;
BoxEsp = 0;
LineEsp = 0;
VisibleChecks = 0;
NpcEsp = 0;
Aimbot = 0;
Radar = 0;
AimBone = 0;
AimMode = 0;
iRemoteKill = 0;
MaxFov = 360;
DefualtFov = 360;
mSet.Show = false;
mSet.TabIndex = 0;
mSet.TotalTabs = 0;
mSet.MaxTabs = TotalTabs;
LockView = false;
for( int i = 0; i < mSet.MaxTabs; i++)
if( i == 0 )
Tab[i].OnOff = true;
else
Tab[i].OnOff = false;
for( int i = 0; i < MaxBoxs; i++ )
cBox[i].OnOff = false;
for( int i = 0; i < MaxArrs; i++ )
{
Arr[i].Value = 0;
if( i == 8 )
Arr[i].Value = VK_CAPITAL;
else if( i == 9 )
Arr[i].Value = VK_INSERT;
else if( i == 10 )
Arr[i].Value = 88;
}
}
//////////////////////////////////////////////////////////////////////////
//Check box Management
int GetCheckBoxIndexFromName( char *name )
{
for( int i = 0; i < MaxBoxs; i++ )
if( strcmp( name, cBox[i].name ) == 0 )
return i;
return 0;
}
bool GetClickedStatusFromCBoxName( char *name )
{
for( int i = 0; i < MaxBoxs; i++ )
if( strcmp( name, cBox[i].name ) == 0 )
return cBox[i].OnOff;
return false;
}
//////////////////////////////////////////////////////////////////////////
void RenderMenu( float x, float y, float w, float h );
void DrawGuiBox( float x, float y, float w, float h, char *Text );
private:
bool LockView;
float Pitch, Yaw;
MenuSettings mSet;
Tabs Tab[TotalTabs];
sArrowList Arr[MaxArrs];
CTimer AreaCheck[MaxArrs];
CTimer ClickCheck[MaxBoxs];
char *GetMenuKey( int i );
int CheckTabs( float x, float y, float w, float h );
void DrawCheckBox( int i, char *Text, float x, float y );
void DrawTabButton( char *Text, float w, float h, float x, float y );
void DrawOptionGrouping( float x, float y, float h, char *Text, int TextXOffset );
int GlobalCheck( int i , float x, float y, float w, float h, int speed, CTimer* timerList );
int ArrowList( int i, float x, float y, int max, char** Array, char *Title, int Speed );
};
extern class cMenu* menu;
#endif
[/php]