Clarify voting phase

This commit is contained in:
Benau 2018-06-04 14:23:29 +08:00
parent 4014e8f0e4
commit 2f00196420

View File

@ -21,6 +21,7 @@
#include "config/player_manager.hpp"
#include "config/user_config.hpp"
#include "graphics/stk_tex_manager.hpp"
#include "guiengine/message_queue.hpp"
#include "guiengine/scalable_font.hpp"
#include "guiengine/widget.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
@ -174,6 +175,11 @@ void TracksScreen::beforeAddingWidget()
getWidget("all-track")->m_properties[GUIEngine::PROP_WIDTH] = "60%";
getWidget("vote")->setVisible(true);
calculateLayout();
//I18N: In track screen for networking, clarify voting phase
core::stringw msg = _("Poll will end early, after votes of all entries"
" from all players have more than 50% share, when half of the"
" remaining time is passed.");
MessageQueue::add(MessageQueue::MT_GENERIC, msg);
}
else
{