Author: ilor
Date: Sun Jul 6 20:01:35 2008
New Revision: 27792
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27792&view=rev
Log:
mouseover hex higlight in editor2
Modified:
trunk/src/editor2/editor_mouse_handler.cpp
Modified: trunk/src/editor2/editor_mouse_handler.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_mouse_handler.cpp?rev=27792&r1=27791&r2=27792&view=diff
==============================================================================
--- trunk/src/editor2/editor_mouse_handler.cpp (original)
+++ trunk/src/editor2/editor_mouse_handler.cpp Sun Jul 6 20:01:35 2008
@@ -30,6 +30,8 @@
void editor_mouse_handler::mouse_motion(int x, int y, const bool browse, bool
update)
{
if (mouse_handler_base::mouse_motion_default(x, y, update)) return;
+ const gamemap::location new_hex = gui().hex_clicked_on(x,y);
+ gui().highlight_hex(new_hex);
}
void editor_mouse_handler::set_gui(editor_display* gui)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits