mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
feature: Add granular print time placeholders for days, hours, minutes, and seconds (#13063)
This commit is contained in:
@@ -6610,7 +6610,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->tooltip = L("G-code written at the very top of the output file, before any other content. "
|
||||
"Useful for adding metadata that printer firmware reads from the first lines of the file "
|
||||
"(e.g. estimated print time, filament usage). "
|
||||
"Supports placeholders like {print_time_sec} and {used_filament_length}.");
|
||||
"Supports placeholders like {print_time_total_sec}, {print_time_day}, {print_time_hour}, {print_time_minute}, {print_time_sec} and {used_filament_length}.");
|
||||
def->multiline = true;
|
||||
def->full_width = true;
|
||||
def->height = 8;
|
||||
@@ -12559,10 +12559,26 @@ PrintStatisticsConfigDef::PrintStatisticsConfigDef()
|
||||
def->label = L("Used filament");
|
||||
def->tooltip = L("Total length of filament used in the print.");
|
||||
|
||||
def = this->add("print_time_sec", coString);
|
||||
def->label = L("Print time (seconds)");
|
||||
def = this->add("print_time_total_sec", coString);
|
||||
def->label = L("Print time (total seconds)");
|
||||
def->tooltip = L("Total estimated print time in seconds. Replaced with actual value during post-processing.");
|
||||
|
||||
def = this->add("print_time_day", coString);
|
||||
def->label = L("Print time (days component)");
|
||||
def->tooltip = L("Estimated print time day component (normal mode). Replaced with actual value during post-processing.");
|
||||
|
||||
def = this->add("print_time_hour", coString);
|
||||
def->label = L("Print time (hours component)");
|
||||
def->tooltip = L("Estimated print time hour component (normal mode). Replaced with actual value during post-processing.");
|
||||
|
||||
def = this->add("print_time_minute", coString);
|
||||
def->label = L("Print time (minutes component)");
|
||||
def->tooltip = L("Estimated print time minute component (normal mode). Replaced with actual value during post-processing.");
|
||||
|
||||
def = this->add("print_time_sec", coString);
|
||||
def->label = L("Print time (seconds component)");
|
||||
def->tooltip = L("Estimated print time second component (normal mode). Replaced with actual value during post-processing.");
|
||||
|
||||
def = this->add("used_filament_length", coString);
|
||||
def->label = L("Filament length (meters)");
|
||||
def->tooltip = L("Total filament length used in meters. Replaced with actual value during post-processing.");
|
||||
|
||||
Reference in New Issue
Block a user