diff options
author | Aki <please@ignore.pl> | 2023-01-25 01:24:30 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-25 01:24:30 +0100 |
commit | 4424c2cd67b3c56734538350dcb7dacc0ec03611 (patch) | |
tree | 3cd4e6e151ada17def37a502280853d93ec621ef | |
parent | f154bc35014e2b72c2e925d83c17ae2c20c7425a (diff) | |
download | kurator-4424c2cd67b3c56734538350dcb7dacc0ec03611.zip kurator-4424c2cd67b3c56734538350dcb7dacc0ec03611.tar.gz kurator-4424c2cd67b3c56734538350dcb7dacc0ec03611.tar.bz2 |
Added naive tooltip of ship types
-rw-r--r-- | kurator/src/ScenarioEditor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<universe::Repository> 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(); } |