Commit Graph

232 Commits

Author SHA1 Message Date
Arnaud Jamin ae19f27674 constraint game pad window aspect ratio 2025-02-13 01:34:45 -05:00
Arnaud Jamin 1d8f9b5368 Remove debug menu item 2025-02-13 00:52:20 -05:00
Arnaud Jamin 30ecbefd10 Retake the focus when loosing it while ImGui has the input 2025-02-13 00:51:44 -05:00
Arnaud Jamin 2906837026 Re-enable the reset Configs on load to make sure they get their default values 2025-02-13 00:51:01 -05:00
Arnaud Jamin bf6c7cb371 Fix Cog module name 2025-02-13 00:50:00 -05:00
Arnaud Jamin 32ca4dc2ba Rename CogWindow plugin to Cog.
Fix Config saving not working
2025-02-12 13:56:06 -05:00
Arnaud Jamin 6d9494b685 Major Change - Rework how Cog gets integrated
Cog integration has been reworked to make it easier,  to keep Cog available between level loadings, and to properly tick ImGui while the game is paused.
Cog 's WindowManager is now a GameInstanceSubsystem.
The WindowManager ticks ImGui and the windows during the OnWorldPostActorTick delegate.
(If this is not working for your project, don't hesitate to open an issue.)

Check the readme to see how to integrate Cog.

The Plot debug functions (displayed by the Engine/Plot window) have been reworked as they were not properly working in Multi PIE in Single Process.

API changes:
- use FCogDebug::Plot instead of FCogDebugPlot::PlotValue
- use FCogDebug::InstantEvent  instead of FCogDebugPlot::PlotEventInstant
- use FCogDebug::StartEvent instead of FCogDebugPlot::PlotEventStart
- use FCogDebug::StopEvent instead of FCogDebugPlot::PlotEventStop
2025-02-11 13:29:12 -05:00
Arnaud Jamin 357bd9974e Console: completion use Contains instead of StartWith 2025-02-09 17:03:24 -05:00
Arnaud Jamin 319a870522 CogEngine: Levels window: Remove the loading of assets by default. 2025-02-09 16:44:10 -05:00
Arnaud Jamin 8b650632a7 CogEngine: Add Levels window to load a specific level
CogSample: fix server target not excluding cog
2025-02-09 01:18:27 -05:00
Arnaud Jamin f13ef84dab Fix shipping target 2025-02-08 01:57:55 -05:00
Arnaud Jamin 160a09d7c5 Merge branch 'main' into pr/48 2025-02-08 00:54:57 -05:00
Arnaud Jamin 7e69b9cfbb Merge pull request #49 from jakobbouchard/fix-typos
Fix typo in Show Borders
2025-02-08 00:49:54 -05:00
Arnaud Jamin 2befda814b Merge pull request #47 from jakobbouchard/add-utf8-inspector
Use TCHAR_TO_UTF8 in Inspector window for some properties
2025-02-08 00:33:04 -05:00
Arnaud Jamin 157d8bae84 Merge branch 'main' into pr/50 2025-02-08 00:01:50 -05:00
Arnaud Jamin a49857c7a8 Add missing dependency 2025-02-07 23:54:06 -05:00
Arnaud Jamin 7ba2e5221f Fix crash in CogDebugDrawImGui 2025-02-07 23:51:04 -05:00
Arnaud Jamin 2cc42bf196 CogEngine: Add BuildInfo window to display the build changelist, target, and so on. 2025-02-07 23:50:25 -05:00
Arnaud Jamin 254a1c2ce5 API change for CogWindow
FCogWindow::PreRender Renamed to PreBegin
FCogWindow::PostRender Renamed to PostEnd
Add FCogWindow::PostBegin
Remove FCogWindow bNoPadding field. Instead implement PreBegin/PostBegin to push the desired styles

Improve Notifications usability
2025-02-07 23:49:30 -05:00
Arnaud Jamin 6a1a3901d4 CogEngine: Fix crash related to log and notification 2025-02-07 09:41:17 -05:00
Jakob Bouchard 9fe19c862a Merge branch 'main' into add-map-set-inspector 2025-02-06 16:09:47 -05:00
Arnaud Jamin 1e27fc0c13 Code analysis pass 2025-02-06 15:46:34 -05:00
Jakob Bouchard 5c19a41cfe Add render function for TMap and TSet 2025-02-06 14:30:47 -05:00
Jakob Bouchard 68a2c4c66d Fix struct name rendering 2025-02-06 14:30:24 -05:00
Jakob Bouchard b1920a3dc8 Fix inspected object tooltip being overridden 2025-02-06 14:29:34 -05:00
Jakob Bouchard 87c093277c Fix typo in Show Borders 2025-02-06 14:28:59 -05:00
Jakob Bouchard 5f923d37a0 Use TCHAR_TO_UTF8 for FText, categories, tooltips and display names 2025-02-06 14:25:54 -05:00
Jakob Bouchard 7d76db3872 Add setting for transparent mode 2025-02-06 14:22:15 -05:00
Arnaud Jamin 82fbf9caaf CogEngine: Fix command list of console widget staying when deactivating imgui input 2025-02-06 11:39:16 -05:00
Arnaud Jamin cf3bcf9612 CogWindow: Fix Push Pop ID in main menu bar 2025-02-06 11:27:10 -05:00
Arnaud Jamin 27ad15488d CogEngine: Fix crash when the CogEngine data asset is not present
Fix cheat colors always overriding the user color
2025-02-06 10:21:31 -05:00
Arnaud Jamin c8f5aa1521 Remove the Selection window runtime setter for the raycast. Replace it with settings defined in the CogEngine asset. 2025-02-06 02:18:33 -05:00
Arnaud Jamin b2d1d312f8 CogEngine: Fix crash 2025-02-06 01:50:57 -05:00
Arnaud Jamin cee4787d9a Notification Window: Improve usability 2025-02-06 00:21:02 -05:00
Arnaud Jamin 816889ba7c CogEngine: First iteration on notification window 2025-02-05 17:09:25 -05:00
Arnaud Jamin 882605ab2b Console Window: Add Shift+Tab shirtcut, similar to Up arrow 2025-02-04 23:39:16 -05:00
Arnaud Jamin 74dd726c2c CogEngine: Make the Cheat Execution implementable in blueprint
- Deprecate CogAbilityWindow_Cheats as it is now replaced with CogEngineWindow_Cheats
- Add CogAbilityCheat_Execution_ActivateAbility for cheats that rely on an ability
- CogSample: Add new cheats
2025-02-04 21:52:53 -05:00
Arnaud Jamin 27c309ad87 CogEngine: Selection Window - Fix Pickup button not scaling with DPI 2025-02-04 15:21:04 -05:00
Arnaud Jamin 9bf32b2d86 CogEngine: Improve various windows widgets usability
- Implement ImGui Copy Paste, and OpenInShell backend.
- Fix ColorEdit4
- Fix Hand and NotAllowed cursors
- Make the reset of windows configuration automatic (but optional) when getting a config.
- Console Window: Improve usability
- Stat Window: Add configuration of of MaxFPS, Pings, and PacketLoss. Improve widget usability.
- Time Scale Window: Add configuration of time scale. Improve widget usability.
- Output Log Window: Fix the Copy.
- Selection Window: The Pick button now uses an icon
2025-02-04 01:26:19 -05:00
Arnaud Jamin cb758450be CogEngine: Fix Console window context menu appearing when it shouldn't 2025-02-02 00:22:17 -05:00
Arnaud Jamin 597db17f9c CogEngine: Console improvements 2025-02-01 02:40:56 -05:00
Arnaud Jamin 0429a7b313 CogEngine: console window improvements 2025-01-31 23:33:22 -05:00
Arnaud Jamin 2ede6b4cf9 CogEngine: progress on console window 2025-01-31 15:52:58 -05:00
Arnaud Jamin b56d7bf4a9 CogEngine: Add first iteration on a Console window 2025-01-30 13:16:17 -05:00
Arnaud Jamin 1cecf93841 CogWindow: simplify how CogWidgets are rendered
Remove the need to specify the widgets width to be able to right them.
Instead widgets are rendered in a table which left/center/right align automatically.
2025-01-30 13:15:25 -05:00
Arnaud Jamin c9918da4f1 CogCommonUI: Add a new plugin to fix CommonUI blocking cog shortcuts (F1, F2, ...)
Reference this plugin where other cog modules are added.
This plugin uses a CommonUI ActionRouter to let Cog receives the shortcuts it needs.
If you already have an Action Router, you can call FCogImguiInputHelper::IsTopPriorityKey to know if the key event to should handled or not.
2025-01-25 21:50:19 -05:00
Arnaud Jamin b08c8768c7 Fix toggle imgui input shortcut not working when input is enabled (happening in Lyra) 2025-01-24 11:43:00 -05:00
Arnaud Jamin a24deacce3 Fix usage of raw pointers on UProperties 2025-01-24 11:41:01 -05:00
Arnaud Jamin 4f8d969ce5 CogWindow: Change the way Cog shortcuts are treated
Shortcuts to enable imgui (F1), enable actor selection (F5), loading and saving layouts, used to be handled by registering console commands with shortcuts. Now console commands can still be executed, but the shortcuts are handled by directly checking if the corresponding key is pressed from the UPlayerInput when imgui do not need Text input.
This should fix cases where the console shortcuts were not executed (typically with CommonUI menus)
2025-01-24 01:19:18 -05:00
Arnaud Jamin aca54cbe9d CogEngine: Improve Plot window
- Save plotted entries between sessions
- Add more options (autofit padding, num recorded values, record values when paused
- Fix dragging the mouse on a different window over the graph pausing the graph
2025-01-24 00:57:24 -05:00