diff options
author | Aki <please@ignore.pl> | 2023-01-27 17:46:28 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-27 17:46:28 +0100 |
commit | 25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44 (patch) | |
tree | 705ea42c4a74b0119bfc5d87a5f1694ab1ebf251 | |
parent | b681f539860ee0aadd596921cdf4008be95df63b (diff) | |
download | kurator-25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44.zip kurator-25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44.tar.gz kurator-25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44.tar.bz2 |
Added informational tooltip for weapon selection
-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(); } |