16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00
This commit is contained in:
milek7
2019-01-18 00:26:48 +01:00
parent aa82349aee
commit f63bd04bfe
17 changed files with 542 additions and 463 deletions

View File

@@ -20,7 +20,9 @@ void ui::vehiclelist_panel::render_contents() {
else if (ImGui::TreeNode(vehicle, label.c_str())) {
vehicle = vehicle->Next();
while (vehicle) {
ImGui::TextUnformatted(vehicle->name().c_str());
if (ImGui::Button(vehicle->name().c_str())) {
Global.pCamera.Pos = vehicle->GetPosition();
}
vehicle = vehicle->Next();
}
ImGui::TreePop();