diff options
-rw-r--r-- | kurator/src/ScenarioEditor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kurator/src/ScenarioEditor.cpp b/kurator/src/ScenarioEditor.cpp index 9b20a14..b573d54 100644 --- a/kurator/src/ScenarioEditor.cpp +++ b/kurator/src/ScenarioEditor.cpp @@ -152,6 +152,16 @@ loadout_editor(std::shared_ptr<universe::Repository> repo, campaign::Loadout& lo *it = type; changed = true; } + if (ImGui::IsItemHovered()) { + ImGui::BeginTooltip(); + ImGui::Text("Damage: %.0f", type.base_damage); + ImGui::Text("RoF: %.1fs", type.rate_of_fire); + ImGui::Text("Reload: %.1fs", type.reload); + ImGui::Text("Rounds: %d", type.rounds); + ImGui::Text("Optimal Range: %.0fm", type.optimal_range); + ImGui::Text("Effective Range: %.0fm", type.effective_range()); + ImGui::EndTooltip(); + } }); ImGui::EndCombo(); } |