D3D Simple MENU

Posts 1–15 of 18 · Page 1 of 2
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
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..
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.
Checkout @Void sig he made simple Menu Class
It's not necessary to use hooks to prevent flickering. Double buffering is usually enough to suffice.
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?
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!
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
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"?!
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
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
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
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 .
Maybe you should just learn DirectX for real.
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?