YaLTeR / SourcePauseTool

This was once just a plugin to prevent game unpausing.
Other
87 stars 23 forks source link

Dear ImGui support #339

Closed UncraftedName closed 2 months ago

UncraftedName commented 2 months ago

Screenshot_18 Screenshot_19 Screenshot_20 Screenshot_22 2024-08-29 10-40-36 gif

Changes

Added BETA support for Dear ImGui to SPT.

Minor changes:

Goal

Broad goal for ImGui implementation:

The current implementation is mostly working, although it does seem to have a small midlife crisis every now and then. At least it pretends to not crash anymore :). It's a little unstable, but I think we can merge it in and call it a BETA feature for now.

TODO

Add more features to the GUI!!! I've added a handful of relatively simple features to serve as examples. I'll add more in the future, and I strongly encourage others to add their own features as well. I made a demo of what I want the overlay feature GUI to look like a while ago, but I want to change the portal selection code before I implement it.

2024-08-29 12-58-22 gif

Major

Currently, you can only use the GUI when the game has a VGUI panel focused, otherwise the mouse is always teleported to the middle of the screen which obviously isn't great for UI. It would be really cool if we could use the GUI without forcing focus on a VGUI panel. A couple ideas on how this could be done:

Medium

Minor

lipsanen commented 2 months ago

tyvm