12 Commits

Author SHA1 Message Date
Kawe Mazidjatari
8f20326983 Recast: create a nice gradient background
Makes the application look more solid.
2024-07-09 20:15:54 +02:00
Kawe Mazidjatari
76ecbd8062 Recast: polish GUI layout
Make sure nothing clips outside the rects and make it look good.
2024-07-09 19:40:28 +02:00
Kawe Mazidjatari
42e2c8d309 Recast: fix level name truncation
Make sure the largest map name fits in the window.
2024-07-09 16:49:49 +02:00
Kawe Mazidjatari
6fd9a5b936 Recast: allow closing the testcase window
If the testcase window was opened, there was no way to close it without opening a test case. This patch allows you to toggle it.
2024-07-09 16:40:09 +02:00
Kawe Mazidjatari
f843c69672 Recast: properly render text over screen
Use the drawlist wrapper instead of relying on ImGui windows (which didn't work to begin with). Also fixed all text colors that weren't converted from the previous library.
2024-07-09 16:40:08 +02:00
Kawe Mazidjatari
9623c1640d Recast: initialize theme and improve UX
New theme and allow user to resize or move all the panels around.
2024-07-09 12:31:35 +02:00
Kawe Mazidjatari
fdfd7ef416 Recast: replace old graph plotter with ImPlot
The old one doesn't work properly with the new ImGui library since the upgrade in commit 949d01da7935d957e0a01cbd592364e74008d8c4. Moved to the use of ImPlot which was added in commit c2df5e19bf332db0ff24849ee5bbb4c033c51117.
2024-07-09 11:41:05 +02:00
Kawe Mazidjatari
e2c48c49db Recast: upgrade legacy ImGui implementation to 1.90.4 (WIP)
Major upgrade to newer library. This is still work in progress, there are many bugs.
2024-07-09 11:41:05 +02:00
Kawe Mazidjatari
fa8d89d287 Recast: make assert and allocation code shared
All recast/detour allocation and assertion code were identical, with the exception of their names (rc* for recast, dt* for detour). We want to use Recast's rcVectorBase class in Detour code, as there is no Detour equivalent, but copying it in its whole isn't good practice (especially considering there is more boilerplate code we want to get rid of in the future). Moved these to Shared so Detour could use it as well under the name rdVectorBase (rd stands for Recast Detour). No changes to the logic of the code were made in this patch.
2024-07-04 11:32:56 +02:00
Kawe Mazidjatari
8b51403310 Recast: fix camera movement bug (XZ -> XY)
Up/down should be applied to the Z axis.
2024-07-01 13:23:06 +02:00
Kawe Mazidjatari
7ba2d2caf5 Recast: fix trailing extension delimiter on model names when loading .gset files
The code assumed an extension of 3 characters, but .gset is 4 and is also supported, causing a trailing '.' as it only truncates the training 4 characters (including the null char). The code now searches for the extension delimiter and gets the actual model name regardless of the length of presence of an extension.
2024-06-30 21:57:26 +02:00
Kawe Mazidjatari
fd3e227a86 Align folder structure with p4 2023-09-19 22:13:22 +02:00