Thread: D3D Simple MENU

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive

    D3D Simple MENU

    Can someone make me a simple d3d menu example ,
    that works on a d3d windows?

    I tried many ways,
    All of them, blinks on d3d windows,
    failed.

    I dont want someone base, i just want a very very simple example how to make it work good on d3d windows, i beg you help, my dream is make a good d3d menu XDDDDDDD
    The example can be just a simple Hello World text..Please

    Cause all my ways fail, Blinks or desapier, Please help me

  2. #2
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,662
    My Mood
    Dead
    Quote Originally Posted by Lyoto Machida View Post
    Can someone make me a simple d3d menu example ,
    that works on a d3d windows?

    I tried many ways,
    All of them, blinks on d3d windows,
    failed.

    I dont want someone base, i just want a very very simple example how to make it work good on d3d windows, i beg you help, my dream is make a good d3d menu XDDDDDDD
    The example can be just a simple Hello World text..Please

    Cause all my ways fail, Blinks or desapier, Please help me
    Hook Endframe or w.e thing that gets called near the end of the frame drawing func. of w.e engine/game you're messing with, And call your crap with it ; Yay no more blinking/disappearance. But if you're asking like that I highly doubt your knowledge of drawing engines/D3D/etc..
    Love You All~

  3. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Checkout @Void sig he made simple Menu Class

  4. The Following User Says Thank You to whit For This Useful Post:

    Void (06-02-2011)

  5. #4
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by Melodia View Post


    Hook Endframe or w.e thing that gets called near the end of the frame drawing func. of w.e engine/game you're messing with, And call your crap with it ; Yay no more blinking/disappearance. But if you're asking like that I highly doubt your knowledge of drawing engines/D3D/etc..
    Im new on d3d stuff, very new, my whole menu is made with the functions DrawText and SetRects and FillRects etc..

    It works good on normal windows, but sucks on d3d windows...

    I only can find projects with like 10 files and cannot understand very well the menu, just want like a simple Hello World text example =(

    To make like a simple text on the screen is very hard? cause no one helps me, never.
    Last edited by Lyoto Machida; 06-02-2011 at 04:21 PM.

  6. #5
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Thanks alot @Void

  7. #6
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    It's not necessary to use hooks to prevent flickering. Double buffering is usually enough to suffice.

  8. #7
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by Fovea View Post
    It's not necessary to use hooks to prevent flickering. Double buffering is usually enough to suffice.
    Any ideas how i do that?

  9. #8
    Anarchy99's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    14
    Reputation
    13
    Thanks
    1
    2 Min pseudo
    Code:
    int Pos;
    
    typedef struct { // can be a class 
      string name;
      bool bSwitch; // or int/float what ever you want
    }p_Menu;
    
    p_Menu  Menu[] = {
        { "Hack1", false  },
        { "Hack2", false  },
        { "Hack3", false  },
        {" Hack4", false  }
    }
    
    void Handler( int i )
    {
        if(GetASyncKeyState(VK_UP))
              Pos++;
        if(GetASyncKeyState(VK_DOWN))
              Pos--;  
        if(GetASyncKeyState(VK_RIGHT))
              Menu[i].bState != Menu[i].bState;
              
    }
    HRESULT WINAPI EndScene( )
    {
       for(int i=0;i<ARRAYSIZE(Menu);i++)
       {
              Handler( int i );
              if( i == Pos )
                  DrawBox( MenuPos+(20*i));
              D3DCOLOR pColor = ( Menu[i].bState ? Red : Green );
              DrawString( MenuPos+(20*i) , Menu[i].name , pColor );
    
       }
       return oEndScene( );
    }
    Don't try to put this in a compiler this is just a simple how to Draw a menu and handle key's, this is as simple as a menu gets;


    You Flickering is caused by your rendering methods!
    Last edited by Anarchy99; 06-03-2011 at 08:03 PM.

  10. The Following User Says Thank You to Anarchy99 For This Useful Post:

    Lyoto Machida (06-03-2011)

  11. #9
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by Anarchy99 View Post
    2 Min pseudo
    Code:
    int Pos;
    
    typedef struct { // can be a class 
      string name;
      bool bSwitch; // or int/float what ever you want
    }p_Menu;
    
    p_Menu  Menu[] = {
        { "Hack1", false  },
        { "Hack2", false  },
        { "Hack3", false  },
        {" Hack4", false  }
    }
    
    void Handler( int i )
    {
        if(GetASyncKeyState(VK_UP))
              Pos++;
        if(GetASyncKeyState(VK_DOWN))
              Pos--;  
        if(GetASyncKeyState(VK_RIGHT))
              Menu[i].bState != Menu[i].bState;
              
    }
    HRESULT WINAPI EndScene( )
    {
       for(int i=0;i<ARRAYSIZE(Menu);i++)
       {
              Handler( int i );
              if( i == Pos )
                  DrawBox( MenuPos+(20*i));
              D3DCOLOR pColor = ( Menu[i].bState ? Red : Green );
              DrawString( MenuPos+(20*i) , Menu[i].name , pColor );
    
       }
       return oEndScene( );
    }
    Don't try to put this in a compiler this is just a simple how to Draw a menu and handle key's, this is as simple as a menu gets;


    You Flickering is caused by your rendering methods!
    hmm Thanks will try to use your way later..
    My menu is all made with DrawText without font LOL
    it works good but not on d3d windows
    Thanked

  12. #10
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Wait.. so if you're making a DirectX-based menu, and it works on non-"D3D windows" but not DirectX windows, then what the heck are non-"D3D windows"?!

  13. #11
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by freedompeace View Post
    Wait.. so if you're making a DirectX-based menu, and it works on non-"D3D windows" but not DirectX windows, then what the heck are non-"D3D windows"?!
    He means not D3D windows As in Nopetad & win32/.NET apps i think
    Last edited by whit; 06-03-2011 at 09:34 PM.

  14. #12
    TheBest-1337's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    35
    Reputation
    15
    Thanks
    38
    My Mood
    Goofy
    Quote Originally Posted by freedompeace View Post
    Wait.. so if you're making a DirectX-based menu, and it works on non-"D3D windows" but not DirectX windows, then what the heck are non-"D3D windows"?!
    non-D3D windows are menus that are not 3D lol

  15. #13
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by freedompeace View Post
    Wait.. so if you're making a DirectX-based menu, and it works on non-"D3D windows" but not DirectX windows, then what the heck are non-"D3D windows"?!
    Any apps that are not games like GTA or crossfire ,combat arms etc..

    But no one fucking give me a example , i need always the get a source from someone without understand shit about directx..

    And i did one from topblast menu, but its detected on the game idk why..
    Thats why i want to make my own working, cause all my own BLINKS or fucking dont work
    Last edited by Lyoto Machida; 06-03-2011 at 10:00 PM.

  16. #14
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by whit View Post
    He means not D3D windows As in Nopetad & win32/.NET apps i think
    You can't use DirectX in a GDI window |:
    Well, you can, but let's no get into that.

    Quote Originally Posted by Lyoto Machida View Post


    Any apps that are not games like GTA or crossfire ,combat arms etc..

    But no one fucking give me a example , i need always the get a source from someone without understand shit about directx..

    And i did one from topblast menu, but its detected on the game idk why..
    Thats why i want to make my own working, cause all my own BLINKS or fucking dont work
    You need to show us what you're doing .

  17. #15
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Maybe you should just learn DirectX for real.

  18. The Following User Says Thank You to Auxilium For This Useful Post:

    VvITylerIvV (06-03-2011)

Page 1 of 2 12 LastLast