I have reversed the steam GameOverlayUI properly, rather than the clumsy method i used before in my MW2 hook.
This method uses 1 address. ONE...and the sig scanning is already done for you,
this will allow you to render in any game that uses the overlay UI, there is 2 screenshots below of the "demo" code in action in MW2, and AVP Demo.
This method uses vtable hooking so unless your module gets detected (and i doubt vac2 scans GameOverlayUI), you should be safe.
Alternatively, you can use the UI to make not-hacks, since it would be even more helpful to make applications *like* ingame chats,
and other ingame things that you might want, like winamp controls, that steam did not add.
Have fun!
Extra stuff you should know:
You can pass normal integers as HFonts, meaning, when calling the "DrawTextColor" function,
for the font parameter you can pass any number from 1-23 (or above, i forget, there is a lot of natively loaded fonts)
NOTE FOR VERSION 2 REVISION x:
All Surface030, Panel_Old, and CSDK_Old references will be depreciated when Steam UI beta is official.
CHANGE LOG:
Code:
Version 1 revision 0:
Initial Release
Version 2 revision 0:
Added minimal support for beta UI
Version 2 revision 1:
Added new signiture for backwards compatibility
Added dynamic interface system for all other pointers
Version 2 revision 2:
Added CSDK class for backwards compatibility, cleaner code also