Kawe Mazidjatari
a436b70601
CConsole / CTextLogger optimizations
...
CConsole: cast to proper types.
CTextLogger: only compute line string if filter is active.
2022-06-21 20:20:12 +02:00
Kawe Mazidjatari
3e2c395584
Don't append newlines on obtained text
...
Newlines are added through the SDK, and the CTextLogger class has been modified to insert a newline when in encounters a newline character.
2022-06-21 11:32:40 +02:00
Kawe Mazidjatari
a534ef1e3c
Type untyped variables in CTextLogger
...
All of these are known types that aren't going to change.
2022-06-21 11:13:30 +02:00
Kawe Mazidjatari
f7dd4089f0
Logger improvements
...
Fix crash cases due to concurrent access and wrong type casting.
Improve filter logic (now greys out everything outside criteria).
TODO: Return 'size_t' for everything size related.
2022-06-21 10:14:20 +02:00
Kawe Mazidjatari
da299a002c
Reimplement text filter
...
Could be better at some point, currently removes anything not matching criteria resulting in gaps.
But on the other side it might be good as the location of all occurrences are known (should make it easier to see when it is logged during the process).
Revisit in the future.
2022-06-20 20:21:52 +02:00
Kawe Mazidjatari
7d749fc53a
Skip space characters properly in CTextLogger
2022-06-20 13:23:38 +02:00
Kawe Mazidjatari
f52bfb139e
Remove m_bReadOnly from CTextLogger
...
User can't modify the log text, it can only be modified through code.
2022-06-20 13:23:11 +02:00
Kawe Mazidjatari
33aebfb89d
ImGui theme improvements
2022-06-20 13:05:50 +02:00
Kawe Mazidjatari
28f0df81c6
Fix crash case
...
Prevent concurrent access to CTextLogger::m_Lines.
Additional cleanup.
2022-06-20 11:01:53 +02:00
Kawe Mazidjatari
1b81f2d1eb
Modify CTextLogger
...
Redact and modify CTextLogger (copy of CTextEditor) to fit logger usage.
Removed most unnecessary methods/code and members.
2022-06-20 10:17:11 +02:00
Kawe Mazidjatari
fed337fbbd
Add imgui_logger.cpp
...
A copy of CTextEditor
2022-06-20 10:14:43 +02:00