Jump to content
Returning Members: Password Reset Required ×

Anyone know some about new buttons in oldclient ?


ChiperXsS

Recommended Posts

Hm... I've never done something like this before. Not sure this would work... but I would probably start by trying to add the new button asset to the GUI. So like, modify the resources in the exe to have the additional button, and then try adding the button in gui.ini. If that doesn't work, then maybe some DirectX injection is necessary? But hopefully not. And then I'd probably try introducing a hook for handling dialog clicks and add whatever logic I need for the button to open a custom window overlay on the client. Worst comes to worst, you can always just overlay the button as well on top of the client.
Link to comment
Share on other sites

Hm... I've never done something like this before. Not sure this would work... but I would probably start by trying to add the new button asset to the GUI. So like, modify the resources in the exe to have the additional button, and then try adding the button in gui.ini. If that doesn't work, then maybe some DirectX injection is necessary? But hopefully not. And then I'd probably try introducing a hook for handling dialog clicks and add whatever logic I need for the button to open a custom window overlay on the client. Worst comes to worst, you can always just overlay the button as well on top of the client.

Thanks for the answer spirited, I tried with gui and it doesn't work, and on directx it's very difficult because I can't find to implement it in my dll :(

Link to comment
Share on other sites

The gui in co uses mfc to initialize and handle window based operations like left mouse button down or up etc... and it uses the game's rendering engine to render the visible gui and usually uses Controls.Ani to find the actual files.
Link to comment
Share on other sites

Well you need to find a place to hook and construct your button and add it's handlers and then find where the in-game gui is being rendered and hook it to also render your button every frame.

You need to be able to reverse the exe and find the needed function calls.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...