Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Cltfx Class | D3d Ingamemenu


    NeoIII
     Share

    Recommended Posts

    Add Code in specified Files or Functions!!!

     

    File: d3d8dev.cpp

     

    at Top:

    #include "cLTFX.h"

     

    ( PRERESET )

    	ltfx.PreReset( );

    ( POSTRESET )

    	ltfx.PostReset( "Arial", 8, pDevice );

     

    ( ENDSCENE OR PRESENT )

    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 )

    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 )

    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 )

    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
    }

     

    screenshot:

    untitled3ya5.png

     

    Credits: GHOSTER, Azorbix, s0beit;

     

    Tutorial rewritten by Neo I.I.I

    d3dfont.cpp

    d3dfont.h

    stdafx.cpp

    stdafx.h

    cLTFX.cpp

    cLTFX.h

    Link to comment
    Share on other sites

    • 7 months later...
    • Replies 50
    • Created
    • Last Reply

    Top Posters In This Topic

    hi neo like all time i get this error haw i fixe plz

     

    d3d8dev.cpp(2): fatal error C1083: Cannot open include file: 'cLTFX.h': No such file or directory

    Link to comment
    Share on other sites

    the cltfx.h file is missing in your directory, download all attached files and add them to your project folder

    Link to comment
    Share on other sites

    at first... Great tut!

    Good work in all O.o

     

    But got 2 errors xD

    If the first is fixed , the second is fixed too think so ;)

     

    Compiling...

    d3d8dev.cpp

    c:\dokumente und einstellungen\bigxxx\desktop\d3d_starterkit_v3.0b\d3d8\d3d8dev.cpp(49) : error C2065: 'pDevice' : undeclared identifier

    c:\dokumente und einstellungen\bigxxx\desktop\d3d_starterkit_v3.0b\d3d8\d3d8dev.cpp(270) : error C2065: 'pDev' : undeclared identifier

    Error executing cl.exe.

    Link to comment
    Share on other sites

    Bigxxx You need to change pDevice and pDev to m_pD3Ddev.

     

    And NeoIII forgot about something xD

     

    in ( BEGINSCENE )

     

    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;
    }

     

    exec1=false; must be here becouse its gonna add menu items forever and crash the game ^^

    I know all pr0s include Neo(of cource) knows it O.o

    Link to comment
    Share on other sites

    thx to inform me of that xD ill edit it on the first post...

     

    and pDevice is the d3d device name i can be another name at your source for tatnium its like he said m_pD3Ddev

    Link to comment
    Share on other sites

    thank you you both =)

    Now it is working O.o

    Great tut xD

    Link to comment
    Share on other sites

    • 2 weeks later...

    if you want to draw text then just go through the functions of the lftx class

     

    ltfx.DrawGameText(x, y, color, text, ...);

    Link to comment
    Share on other sites

    void cMenu::DrawMenu( int x, int y, DWORD dwSelected, DWORD dwNonSelected, DWORD dwValues, LPDIRECT3DDEVICE8 pDevice )
    {
    if( !bMenu )return;
    
    for (int i = 0; i <= ( MAX_ITEMS - 1 ); i++)
    {
    	if( i == curItem )
    	{
    		DrawGameTextPixel( x, y + (i * 20), dwSelected, mainMenu[i].title );
    		if( ( int )mainMenu[i].max != 1 && ( int )mainMenu[i].value[0] != 0 ) 
    		{
    			DrawGameTextPixel( x + 120, y + (i * 20), dwValues, "%2.2f", mainMenu[i].value[0] );
    		} else {
    			DrawGameTextPixel( x + 120, y + (i * 20), dwValues, ( ( int )mainMenu[i].value[0] ) ? "On" : "Off" );
    		}
    	}
    	else
    	{
    		DrawGameTextPixel( x, y + (i * 20), dwNonSelected, mainMenu[i].title);
    		if( ( int )mainMenu[i].max != 1 && ( int )mainMenu[i].value[0] != 0 ) 
    		{
    			DrawGameTextPixel( x + 120, y + (i * 20), dwValues, "%2.2f", mainMenu[i].value[0] );
    		} else {
    			DrawGameTextPixel( x + 120, y + (i * 20), dwValues, ( ( int )mainMenu[i].value[0] ) ? "On" : "Off" );
    		}
    	}
    }
    }

    Link to comment
    Share on other sites

    • 1 month later...
    • 4 weeks later...

    Hallu...

    hab mal alles nach anleitung gemacht..., aber

     

    Compiling...
    d3d8dev.cpp
    Linking...
    
    LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::PreReset(void)" (?PreReset@cMenu@@QAEXXZ) referenced in function "public: long __thiscall CD3DManager::PreReset(void)" (?PreReset@CD3DManager@@QAEJXZ)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::PostReset(char *,int,struct IDirect3DDevice8 *)" (?PostReset@cMenu@@QAEXPADHPAUIDirect3DDevice8@@@Z) referenced in function "public: long __thiscall CD3DManager::PostReset(void)" (?PostReset@CD3DManager@@QAEJXZ)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::DrawMenu(int,int,unsigned long,unsigned long,unsigned long,struct IDirect3DDevice8 *)" (?DrawMenu@cMenu@@QAEXHHKKKPAUIDirect3DDevice8@@@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::Present(struct tagRECT const *,struct tagRECT const *,struct HWND__ *,struct _RGNDATA const *)" (?Present@hkIDirect3DDevice8@@UAGJPBUtagRECT@@0PAUHWND__@@PBU_RGNDATA@@@Z)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::CheckNav(int)" (?CheckNav@cMenu@@QAEXH@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::Present(struct tagRECT const *,struct tagRECT const *,struct HWND__ *,struct _RGNDATA const *)" (?Present@hkIDirect3DDevice8@@UAGJPBUtagRECT@@0PAUHWND__@@PBU_RGNDATA@@@Z)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::AddMenuItem(char * const,float *,int,int)" (?AddMenuItem@cMenu@@QAEXQADPAMHH@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::BeginScene(void)" (?BeginScene@hkIDirect3DDevice8@@UAGJXZ)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: void __thiscall cMenu::InitalizeFont(char *,int,struct IDirect3DDevice8 *)" (?InitalizeFont@cMenu@@QAEXPADHPAUIDirect3DDevice8@@@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::BeginScene(void)" (?BeginScene@hkIDirect3DDevice8@@UAGJXZ)
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: __thiscall cMenu::cMenu(int)" (??0cMenu@@QAE@H@Z) referenced in function _$E1
    
    d3d8dev.obj : error LNK2019: unresolved external symbol "public: __thiscall cMenu::~cMenu(void)" (??1cMenu@@QAE@XZ) referenced in function _$E2
    
    .\Debug/TatniumD3D.dll : fatal error LNK1120: 8 unresolved externals

     

     

    what to do??

     

    ////EDIT: Problem solved..., hab vergessen d3dfont.h zu includen und die cpps zum project zu adden xD

    Edited by progamer92
    Link to comment
    Share on other sites

    i tryed drawing text but it crashes zeas tryed to help.... anyone no how?

     

     

     

    Edit: I fixed nevermind

    Edited by Proxycode
    Link to comment
    Share on other sites

    • 2 months later...

    ok thx it works....=P

     

     

    i don´t get errors, but if i press insert in warrock the menu is not shown...

    I think i have to update something???

    Edited by ggf_razor
    Link to comment
    Share on other sites

    möglicherweise hast du was vergessen oder nicht gemacht... ich kann dir gleich sagen das mit starterkit nicht geht weil du warrock zb nicht hooken kannst ( createdevice )

     

    this thread is NOT OUTDATED

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Loading...
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.

    ×
    ×
    • Create New...