Thread: Help please

Results 1 to 11 of 11
  1. #1
    coryster2100's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    394
    Reputation
    13
    Thanks
    1,174

    Help please

    Hello guys i was wondering if this was the right code for adding a pic into a GUI

    Code:
     this->DrawImageF(pDevice, pSprite, pTexture, 15.0f, 60.0f , 0.0f, "C:\wow\ehfgui.png");
    And i was wondering where to put it

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,193
    Reputation
    205
    Thanks
    1,438
    My Mood
    Mellow
    Well, one of the parameters seem to be the device, so put it in one of your hooked functions and call it.

  3. #3
    mrAWSOME's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    1
    well the code it's self all ready has everything says my source master and he gave me that and he said just add that to get the gui

  4. #4
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    just draw a sprite.

    LPDIRECT3DTEXTURE9 pTextureInterface;
    LPD3DXSPRITE pSpriteInterface;
    D3DXVECTOR2 Position;


    HRESULT WINAPI IDirect3DDevice9::BeginScene()
    {

    Position.x = 150.0f;
    Position.y = 200.0f;

    D3DXCreateTextureFromFile(pDeviceInterface, "*:\\file.ext", &pTextureInterface);
    D3DXCreateSprite(pDeviceInterface, &pSpriteInterface);

    return pDeviceInterface->BeginScene();

    }


    HRESULT WINAPI IDirect3DDevice9::EndScene()
    {

    pSpriteInterface->Begin();
    pSpriteInterface->Draw(pTextureInterface, NULL, NULL, NULL, NULL, &Position, 0xFFFFFFFF);
    pSpriteInterface->End();

    return pDeviceInterface->EndScene();

    }
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  5. The Following User Says Thank You to zmansquared For This Useful Post:

    whit (06-23-2010)

  6. #5
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    thanks man
    but would this be the file name *:\\file.ext
    if do we just put the file name the like so *:\\imagename.jpeg or what ever?

  7. #6
    _Gut's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    77
    My Mood
    Cheerful
    Yes, whit, that is what you would initially do.. and it works. i would use an image in my GUI, but its fail. no use at all.. plus it laggs

  8. #7
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    yep whit, if you need help i can help you or what not. if you do it right or have a good connection it will NOT lag.
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  9. The Following User Says Thank You to zmansquared For This Useful Post:

    whit (06-23-2010)

  10. #8
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    thanks zmansquared..
    ima try it myself and if i have problems ill pm you..

  11. #9
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    sounds good
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  12. #10
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    Instead of people having to place the files in their C:\ drive just use GetDirectoryFile.

  13. #11
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    You could do that. just keeping it simpile
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

Similar Threads

  1. [Help Request] Help Please ! Crossfire PH or whatever
    By maek0witzki33 in forum CrossFire Help
    Replies: 10
    Last Post: 05-28-2013, 09:18 PM
  2. [Help Request] Black Cipher Help [please help]
    By zubni in forum Combat Arms Help
    Replies: 25
    Last Post: 05-14-2011, 08:50 PM
  3. [Help Request] New. Help Please :)
    By xclutchx in forum Vindictus Help
    Replies: 8
    Last Post: 05-05-2011, 02:52 PM
  4. [Help Request] help please
    By alpha3po in forum Combat Arms Help
    Replies: 6
    Last Post: 05-01-2011, 05:29 PM
  5. [Help Request] [ANSWERED]crossfire Help Please.
    By ownedpjer in forum CrossFire Help
    Replies: 2
    Last Post: 04-30-2011, 03:53 AM