editor2: set report for selected mouse action (tool)

This commit is contained in:
Tomasz Śniatowski 2008-08-10 17:30:21 +01:00
parent 242f19151d
commit 04aa3bdece

View file

@ -660,6 +660,9 @@ void editor_controller::hotkey_set_mouse_action(hotkey::HOTKEY_COMMAND command)
std::map<hotkey::HOTKEY_COMMAND, mouse_action*>::iterator i = mouse_actions_.find(command);
if (i != mouse_actions_.end()) {
mouse_action_ = i->second;
gui().set_report_content(reports::EDIT_LEFT_BUTTON_FUNCTION,
hotkey::get_hotkey(command).get_description());
gui().invalidate_game_status();
} else {
ERR_ED << "Invalid hotkey command (" << (int)command << ") passed to set_mouse_action\n";
}