From 4424c2cd67b3c56734538350dcb7dacc0ec03611 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 25 Jan 2023 01:24:30 +0100 Subject: Added naive tooltip of ship types --- kurator/src/ScenarioEditor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kurator/src/ScenarioEditor.cpp b/kurator/src/ScenarioEditor.cpp index e05b715..2df55c9 100644 --- a/kurator/src/ScenarioEditor.cpp +++ b/kurator/src/ScenarioEditor.cpp @@ -142,6 +142,14 @@ loadout_editor(std::shared_ptr repo, campaign::Loadout& lo loadout.type = type; changed = true; } + if (ImGui::IsItemHovered()) { + ImGui::BeginTooltip(); + ImGui::Text("Shield: %.0f", type.base_shield_points); + ImGui::Text("Armour: %.0f", type.base_armour_points); + ImGui::Text("Structure: %.0f", type.base_structure_points); + ImGui::Text("Speed: %.0f m/s", type.max_speed); + ImGui::EndTooltip(); + } }); ImGui::EndCombo(); } -- cgit v1.1