From 14daf1c4f30f2f603c90c89126ce482f32db3e77 Mon Sep 17 00:00:00 2001 From: josteph Date: Sat, 10 Aug 2019 16:40:00 +0000 Subject: [PATCH] statistics_dialog: Clarify tooltip --- data/gui/window/statistics_dialog.cfg | 4 ++-- src/gui/dialogs/statistics_dialog.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/gui/window/statistics_dialog.cfg b/data/gui/window/statistics_dialog.cfg index 13d0d59b325c..0382b4dd8d98 100644 --- a/data/gui/window/statistics_dialog.cfg +++ b/data/gui/window/statistics_dialog.cfg @@ -548,8 +548,8 @@ {_GUI_DAMAGE_STATS_LIST (_ "Damage") damage_this_turn_header stats_list_damage damage_type damage_overall damage_this_turn (_"stats dialog^Difference of actual outcome to expected outcome, as a percentage. -The first number in parentheses is the expected number of hitpoints. -The sum (or difference) of the two numbers in parentheses is the actual number of hitpoints.") +The first number in parentheses is the expected number of hitpoints inflicted/taken. +The sum (or difference) of the two numbers in parentheses is the actual number of hitpoints inflicted/taken.") (_"stats dialog^Ratio of actual to expected")} [/column] diff --git a/src/gui/dialogs/statistics_dialog.cpp b/src/gui/dialogs/statistics_dialog.cpp index 04b3e6a6f1a2..d66690f09d50 100644 --- a/src/gui/dialogs/statistics_dialog.cpp +++ b/src/gui/dialogs/statistics_dialog.cpp @@ -325,8 +325,8 @@ void statistics_dialog::add_hits_row( element = tally(by_cth, more_is_better); item["tooltip"] = _( "stats dialog^Difference of actual outcome to expected outcome, as a percentage.\n" - "The first number in parentheses is the expected number of hits.\n" - "The sum (or difference) of the two numbers in parentheses is the actual number of hits.") + "The first number in parentheses is the expected number of hits inflicted/taken.\n" + "The sum (or difference) of the two numbers in parentheses is the actual number of hits inflicted/taken.") + element.tooltip; item["label"] = element.hitrate_str; data.emplace("hits_overall", item);