This commit is contained in:
milek7
2018-07-10 23:21:50 +02:00
parent fba3b253a7
commit a13fc4e500
28 changed files with 32185 additions and 1034 deletions

View File

@@ -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