editor2: set report for selected mouse action (tool)
This commit is contained in:
parent
242f19151d
commit
04aa3bdece
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue