Thread: Hack menu

Results 1 to 2 of 2
  1. #1
    Mr_Boris's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Hack menu

    Hello, I have problem with some on-screen drawn menu. Normal it's all good but there is one point where item list is too long for screen and it has been drawn out of visible area. I can go through it but I can't see what I'm picking.

    Code:
    struct itemEntry
    {
    	char name[64];
    	BYTE type;
    	void* item;
    	itemEntry* last;
    	itemEntry* next;
    	bool show;
    	itemEntry(char * n, BYTE t,void *i)
    	{
    		strcpy_s(name,n);
    		type = t;
    		item = i;
    		show = 1;
    		next = NULL;
    	}
    };

    Code:
    struct itemPicker
    {
    	itemEntry* first;
    	itemEntry* last;
    	itemEntry* selected;
    	itemPicker()
    	{
    		itemEntry *f = new itemEntry("...",0,0);
    		selected = last = first = f;
    		f->last = NULL;
    	}
    	void add(itemEntry* nm)
    	{
    		last->next = nm;
    		nm->last = last;
    		last = nm;
    	}
    	void update(char* t)
    	{
    
    	}
    };

    Code:
    void DrawFont (int X, int Y, D3DCOLOR Color, char *format, ...)
    {
     char buffer[256];
     va_list args; 
     va_start (args, format);
     vsprintf (buffer,format, args);
     RECT FontRect = { X, Y, X + 120, Y + 16 };
     m_pFont->DrawText( NULL, buffer, -1, &FontRect, DT_NOCLIP , Color );
     va_end (args);
    }

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,807
    My Mood
    Twisted
    https://stackoverflow.com/questions/3...directx-device

    use the height to check if the item is drawn outside the visible area and then draw it in a second row

Similar Threads

  1. Need in game hack menu source code!
    By tambre in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 06-18-2010, 08:59 PM
  2. Breach hack menu?
    By mickysux in forum Combat Arms Help
    Replies: 7
    Last Post: 03-03-2010, 07:16 AM
  3. No hack menu
    By shawnthe3rd in forum Combat Arms Help
    Replies: 5
    Last Post: 01-21-2010, 09:12 AM
  4. [Help] I can't see the hack menu
    By da_fin in forum WarRock - International Hacks
    Replies: 8
    Last Post: 12-13-2009, 10:57 PM
  5. is there any way to change the hack menu?
    By KnockOut in forum C++/C Programming
    Replies: 5
    Last Post: 08-12-2009, 07:45 AM