mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
training changes
This commit is contained in:
@@ -67,7 +67,7 @@ void trainingcard_panel::save_thread_func()
|
||||
|
||||
std::fstream temp("reports/" + rep + ".html", std::ios_base::out | std::ios_base::binary);
|
||||
|
||||
temp << "<!DOCTYPE html>" << std::endl;
|
||||
temp << "<!DOCTYPE html><meta charset=\"utf-8\"> " << std::endl;
|
||||
temp << "<body>" << std::endl;
|
||||
temp << "<div><b>Miejsce: </b>" << (std::string(place.c_str())) << "</div><br>" << std::endl;
|
||||
temp << "<div><b>Data: </b>" << (date) << "</div><br>" << std::endl;
|
||||
|
||||
@@ -189,7 +189,18 @@ void ui::vehicleparams_panel::render_contents()
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::Button(LOC_STR(vehicleparams_reset)))
|
||||
m_relay.post(user_command::resettrainset, 0.0, 0.0, GLFW_PRESS, 0, glm::vec3(0.0f), &vehicle_ptr->name());
|
||||
m_relay.post(user_command::resetconsist, 0.0, 0.0, GLFW_PRESS, 0, glm::vec3(0.0f), &vehicle_ptr->name());
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::Button(LOC_STR(vehicleparams_resetpipe)))
|
||||
m_relay.post(user_command::fillcompressor, 0.0, 0.0, GLFW_PRESS, 0, glm::vec3(0.0f), &vehicle_ptr->name());
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::Button(LOC_STR(cab_releaser_bt));
|
||||
if (ImGui::IsItemClicked())
|
||||
m_relay.post(user_command::consistreleaser, 0.0, 0.0, GLFW_PRESS, 0, glm::vec3(0.0f), &vehicle_ptr->name());
|
||||
if (ImGui::IsItemDeactivated())
|
||||
m_relay.post(user_command::consistreleaser, 0.0, 0.0, GLFW_RELEASE, 0, glm::vec3(0.0f), &vehicle_ptr->name());
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::Button(LOC_STR(vehicleparams_move500f)))
|
||||
|
||||
Reference in New Issue
Block a user