boxX = menuX + offset;
boxY = menuY + offset;
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.
Last edited by cosconub; 09-12-2010 at 02:05 PM.
cosconub (09-12-2010)
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
Last edited by cosconub; 09-12-2010 at 02:52 PM.
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);i wanna make it a menu option but idk how atm.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. } }
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:
So that is basically all you need to do, it is just like adding any other hack to your menu.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 ...// }
cosconub (09-13-2010)
thanks and Request close