Commit Graph

22 Commits

Author SHA1 Message Date
Arnaud Jamin 2fc8a64173 Fix plotted event not correctly rendered when not the event is not ended 2025-02-24 23:05:13 -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 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 1e27fc0c13 Code analysis pass 2025-02-06 15:46:34 -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 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
Arnaud Jamin f7e63c3823 CogEngine: Plot window Add number of Y axis configuration 2025-01-17 13:10:52 -05:00
Arnaud Jamin d7bd68618f CogAbility: Plot Window minor UI tweak 2025-01-17 11:27:17 -05:00
Arnaud Jamin 6d8f7cb975 CogEngine: Plot window tweaks 2025-01-17 02:03:51 -05:00
Arnaud Jamin dcce0f1b47 CogEngine: improve plot events automatic row manangement
CogSample: plot Ability Activate/End event
2025-01-16 19:30:12 -05:00
Arnaud Jamin 5eee7c9903 CogEngine: Improve plot window UI
Make docking of plots optional
2025-01-14 23:36:41 -05:00
Arnaud Jamin 2f1361a412 CogEngine: Fix and improve Plot window
CogEngine: Fix and improve the Plot window
- Fix ImPlot assert
- Improve UI

CogSample:
-  Add Inputs and AnimNotify plot events
- Fix ability system warning
2025-01-11 00:31:53 -05:00
Arnaud Jamin 3539881135 Fix includes
Fix collision draw functions not using draw settings
2024-06-05 09:39:05 -04:00
Arnaud Jamin 85a903a341 Various null checks, const correctness, remove unused headers 2023-12-17 01:02:05 -05:00
Arnaud Jamin d5fd488b6a Formating
sort headers and remove tabs
2023-12-09 16:58:32 -05:00
Elhoussine Mehnik 3e73c486a4 Fix compling errors on various platforms/consoles
- Fixed some include paths case sensitive
- Fixed CogImguiInputHelper.h including itself
- Added missing includes
- Added missing forward declarations
- Fixed enums forward declarations
- Fixed "TCHAR_TO_ANSI" and const char* formatting issues
- Fixed "sscanf" on Linux
2023-12-09 04:38:02 +01:00
Arnaud Jamin c44171b113 CogWindow: Add an option to have no padding on windows (used by CogAbilityWindow_Abilities, Effects, Tags, ...) 2023-11-05 00:32:25 -04:00
Arnaud Jamin 860c9be349 CogEngine: Plot window improvements. 2023-11-04 23:20:21 -04:00
Arnaud Jamin 315782183d CogSample: progress on projectiles 2023-10-30 01:11:48 -04:00
Arnaud Jamin e72504b47a CogWindow: CogWindows are not UObject anymore
CogWindows are now normal object because we want to be able to Ifdef them, and UObject cannot be ifdef. CogWindows were UObject mainly for saving their config. The configs have been moved in separated class, which are UObject.
2023-10-27 02:39:33 -04:00
Arnaud Jamin 5b50d97cbd Move most modules in the same Cog plugin 2023-10-13 14:59:53 -04:00