How to attach box to menu?

Posts 1–10 of 10 · Page 1 of 1
How to attach box to menu?
ok i have whit's combo base

and i have added his autosize box

and i have added move menu

how would i attach the Box to the menu so when i move the menu the box's goes with it.
boxX = menuX + offset;
boxY = menuY + offset;
Thank you,

this was a question but i solved it.
Request close/
wow that was short and sweet. how did you come across that?
i was gonna say that i was testing it lol works 100% i just had to do some math so text fit's alright
Or you could just set your box's x/y to the same variable as your menu. That way when you increase/decrease their values, both the menu and the box will move accordingly.
kinda what i did
this is exactly what i did
Code:
DrawBox(menux-10, menuy, 185, frame, D3DCOLOR_XRGB(40, 40, 40),D3DCOLOR_ARGB(255, 0, 0, 255),pDevice);
Code:
if(GetAsyncKeyState(VK_LCONTROL)) MoveMenu = (!MoveMenu);

if( MoveMenu ) {
   POINT myCursor; 
   GetCursorPos(&myCursor); // get the cursor position.
   if(GetAsyncKeyState(VK_LBUTTON)) {
      menux = myCursor.x; // set the x of your menu to the cursor x position.
      menuy = myCursor.y; // set the y of your menu to the cursor y position.
   }
}
i wanna make it a menu option but idk how atm.
Well to do that all you would have to do would be make a variable for it and call it whatever you want - like MoveMenu or something.
Then instead of the hotkey you have for it, all you would have to do would be:
Code:
//Globals:
int MoveMenu = 0;

//Then add it to your menu like any other hack.

//Hackthread or RenderFrame:
if(MoveMenu > 0){
     //... Do move menu code ...//
}
So that is basically all you need to do, it is just like adding any other hack to your menu.
thanks and Request close
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?