mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ImGui: better name for blinker timer in logger
This commit is contained in:
parent
bfc985ea79
commit
3273b7112c
10
r5dev/thirdparty/imgui/misc/imgui_logger.cpp
vendored
10
r5dev/thirdparty/imgui/misc/imgui_logger.cpp
vendored
@ -34,7 +34,7 @@ CTextLogger::CTextLogger()
|
||||
, m_flLineSpacing(1.0f)
|
||||
, m_SelectionMode(SelectionMode::Normal)
|
||||
, m_flLastClick(-1.0)
|
||||
, m_nStartTime(-1.0f)
|
||||
, m_flCursorBlinkerStartTime(-1.0f)
|
||||
{
|
||||
m_Lines.push_back(Line());
|
||||
}
|
||||
@ -835,11 +835,11 @@ void CTextLogger::Render()
|
||||
// Initialize the cursor start render time, this is done here
|
||||
// as Dear ImGui typically isn't initialized during the
|
||||
// construction of this class
|
||||
if (m_nStartTime == -1.0)
|
||||
m_nStartTime = ImGui::GetTime();
|
||||
if (m_flCursorBlinkerStartTime == -1.0)
|
||||
m_flCursorBlinkerStartTime = ImGui::GetTime();
|
||||
|
||||
const double currTime = ImGui::GetTime();
|
||||
const double elapsed = currTime - m_nStartTime;
|
||||
const double elapsed = currTime - m_flCursorBlinkerStartTime;
|
||||
|
||||
if (elapsed > 0.4)
|
||||
{
|
||||
@ -852,7 +852,7 @@ void CTextLogger::Render()
|
||||
drawList->AddRectFilled(cstart, cend, 0xffe0e0e0);
|
||||
|
||||
if (elapsed > 0.8)
|
||||
m_nStartTime = currTime;
|
||||
m_flCursorBlinkerStartTime = currTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
2
r5dev/thirdparty/imgui/misc/imgui_logger.h
vendored
2
r5dev/thirdparty/imgui/misc/imgui_logger.h
vendored
@ -239,7 +239,7 @@ private:
|
||||
float m_flLineSpacing;
|
||||
SelectionMode m_SelectionMode;
|
||||
double m_flLastClick;
|
||||
double m_nStartTime;
|
||||
double m_flCursorBlinkerStartTime;
|
||||
|
||||
Coordinates m_InteractiveStart;
|
||||
Coordinates m_InteractiveEnd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user