mail[Wesnoth-commits] r28443 - /trunk/src/editor2/editor_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on August 10, 2008 - 18:49:
Author: ilor
Date: Sun Aug 10 18:30:21 2008
New Revision: 28443

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28443&view=rev
Log:
editor2: set report for selected mouse action (tool)

Modified:
    trunk/src/editor2/editor_controller.cpp

Modified: trunk/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=28443&r1=28442&r2=28443&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Sun Aug 10 18:30:21 2008
@@ -660,6 +660,9 @@
        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";
        }




Related Messages


Powered by MHonArc, Updated Sun Aug 10 19:01:54 2008