mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
imgui
This commit is contained in:
8
Logs.cpp
8
Logs.cpp
@@ -15,8 +15,6 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "utilities.h"
|
||||
#include "uilayer.h"
|
||||
|
||||
std::shared_ptr<ui_panel> ui_log = std::make_shared<ui_panel>( 20, 140 );
|
||||
|
||||
std::ofstream output; // standardowy "log.txt", można go wyłączyć
|
||||
std::ofstream errors; // lista błędów "errors.txt", zawsze działa
|
||||
std::ofstream comms; // lista komunikatow "comms.txt", można go wyłączyć
|
||||
@@ -84,9 +82,9 @@ void WriteLog( const char *str, logtype const Type ) {
|
||||
output << str << "\n";
|
||||
}
|
||||
|
||||
ui_log->text_lines.emplace_back(std::string(str), Global.UITextColor);
|
||||
if (ui_log->text_lines.size() > 20)
|
||||
ui_log->text_lines.pop_front();
|
||||
UILayer.log.emplace_back(std::string(str));
|
||||
if (UILayer.log.size() > 100)
|
||||
UILayer.log.pop_front();
|
||||
|
||||
if( Global.iWriteLogEnabled & 2 ) {
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user