Not sure what you are trying to do from this post, you want to render a highlighted version of the menu buttons? Can't you just change the bg image that is being rendered already to a different art asset?
HI Michael,
Thank you for your response:)
Not sure what you are trying to do from this post, you want to render a highlighted version of the menu buttons ?
- Yes, it is true.
Can't you just change the bg image that is being rendered already to a different art asset?
- Inside the image there is the text and the menu is dynamic. I don't sure it is the best way.
I have already hooked the game with detours, so while I don't have the source code I can manipulate it externally with my code (in this case with directdraw and intercept the window handle).
In short, the vertical menu is accessible only with numeric keys, but I like to navigate it with arrow keys.
To do it I need the change the backgound color of the selected item (that actually not exist becouse is accessible directly with numeric keys ), but when the selected item is changed, the backgound color of the previous item must be resumed.
To do it I think (but not sure) that I need 2 functions:
1) Change the backgound color (that accept in input: the x,y coordinates in pixel, the target color, the new color to replace)
2) Resume the previous background color (undo the previous draw operation).
I don't have experience with directdraw, but I suppose the first thing to do is find the current window handle (hwnd) that it is easy to do.
After I don't know how is possible replace the color and what API must be use.
Can you help me please ?
Best Regards