Vip_SolidSnake Admin
Posts : 61 Reputation : 26 Join date : 2010-02-04
| Subject: D3D Codings InGameMenu Fri 5 Feb 2010 - 16:58 | |
| Add Code in specified Files or Functions!!!File: d3d8dev.cppat Top: - Code:
-
#include "cLTFX.h" ( PRERESET ) - Code:
-
ltfx.PreReset( ); ( POSTRESET ) - Code:
-
ltfx.PostReset( "Arial", 8, pDevice );
( ENDSCENE OR PRESENT ) - Code:
-
ltfx.CheckNav( VK_INSERT ); ltfx.DrawMenu( 20, 20, D3DCOLOR_ARGB( 255, 255, 0, 0 ), D3DCOLOR_ARGB( 255, 255, 255, 255 ), D3DCOLOR_ARGB( 255, 255, 255, 255 ), pDevice );
( BEGINSCENE ) - Code:
-
if( exec1 ) { //init the font ltfx.InitalizeFont( "Arial", 8, pDev ); //use the pointer from a global float val! ltfx.AddMenuItem( "Wallhack", &cvar.wallhack, 0, 2 ); ltfx.AddMenuItem( "Wireframe", &cvar.wireframe, 0, 1 ); ltfx.AddMenuItem( "Zoom", &cvar.zoom, 0, 1 ); ltfx.AddMenuItem( "Stamina", &cvar.stamina, 0, 1 ); exec1 = false; } How To Use: ( Global ) - Code:
-
struct cVars { float wireframe, wallhack, zoom, stamina; }; cVars cvar;
bool exec1 = true;
cMenu ltfx( 5 ); //5 is max menu items //you can extend this so long as its ABOVE the number //of menu items you have currently How To Use: ( DrawIndexedPrimitive ) - Code:
-
if( cvar.wallhack == 1.0f ) { // for set 1 //hack }
if( cvar.wallhack == 2.0f ) { // for set 1 //hack }
if( cvar.wireframe == 1.0f ) { // for set 1 //hack }
if( cvar.zoom == 1.0f ) { // for set 1 //hack }
if( cvar.stamina == 1.0f ) { // for set 1 //hack } DOWNLOAD LINKVisual C++ - http://www.ziddu.com/download/7912981/VC.zip.html D3D StarterKit - http://www.ziddu.com/download/7785446/D3D_Starterkit_v3_1_.0b.zip.html Color Coding - http://www.ziddu.com/download/7785572/Code.rar.html d3dfont.cpp - http://www.ziddu.com/download/8463439/d3dfont.cpp.rar.html d3dfont.h - http://www.ziddu.com/download/8463455/d3dfont.h.rar.html stdafx.cpp - http://www.ziddu.com/download/8463456/stdafx.cpp.rar.html stdafx.h - http://www.ziddu.com/download/8463486/stdafx.h.rar.html cLTFX.cpp - http://www.ziddu.com/download/8463494/cLTFX.cpp.rar.html cLTFX.h- http://www.ziddu.com/download/8463506/cLTFX.h.rar.html | |
|
kemppaul
Posts : 1 Reputation : 0 Join date : 2010-02-17
| Subject: Re: D3D Codings InGameMenu Wed 17 Feb 2010 - 23:09 | |
| | |
|
charles_darwin1st
Posts : 3 Reputation : 0 Join date : 2010-03-24 Age : 47 Location : tagum
| Subject: Re: D3D Codings InGameMenu Wed 24 Mar 2010 - 17:04 | |
| | |
|
xzone
Posts : 1 Reputation : 0 Join date : 2010-04-15
| Subject: Spam To the max 3 Thu 15 Apr 2010 - 5:12 | |
| | |
|
reypj13
Posts : 2 Reputation : 0 Join date : 2010-12-09
| Subject: Re: D3D Codings InGameMenu Thu 9 Dec 2010 - 19:32 | |
| sir para saan po ung code...... | |
|
Sponsored content
| Subject: Re: D3D Codings InGameMenu | |
| |
|