mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Move imgui extension function to an appropriate place.
This commit is contained in:
@@ -19,6 +19,20 @@ namespace tracy
|
||||
ImGui::TextUnformatted( text );
|
||||
}
|
||||
|
||||
static inline void TextDisabledUnformatted( const char* begin, const char* end = nullptr )
|
||||
{
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );
|
||||
ImGui::TextUnformatted( begin, end );
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
static inline void TextFocused( const char* label, const char* value )
|
||||
{
|
||||
TextDisabledUnformatted( label );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted( value );
|
||||
}
|
||||
|
||||
static inline void DrawWaitingDots( double time )
|
||||
{
|
||||
ImGui::TextUnformatted( "" );
|
||||
|
||||
Reference in New Issue
Block a user