From 15203e7d14722b73291c1bc0da33889f2ebf020c Mon Sep 17 00:00:00 2001 From: Dominic Bolin Date: Thu, 30 Mar 2006 19:49:24 +0000 Subject: [PATCH] Apply patch #523 to branch --- src/game_events.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/game_events.cpp b/src/game_events.cpp index 02fa2a3f43a..d46fd8208a3 100644 --- a/src/game_events.cpp +++ b/src/game_events.cpp @@ -1,4 +1,5 @@ /* $Id$ */ +/* $Id$ */ /* Copyright (C) 2003 by David White Part of the Battle for Wesnoth Project http://www.wesnoth.org/ @@ -1525,6 +1526,18 @@ bool event_handler::handle_event_command(const queued_event& event_info, units->erase(loc); units->insert(std::pair(loc,u)); + + const std::string& text = cfg["text"]; + if(!text.empty()) + { + //Print floating label + const int red = lexical_cast_default(cfg["red"],0); + const int green = lexical_cast_default(cfg["green"],0); + const int blue = lexical_cast_default(cfg["blue"],0); + { + screen->float_label(loc,text,red,green,blue); + } + } } else { player_info *player=state_of_game->get_player((*teams)[u.side()-1].save_id());