mouseover hex higlight in editor2
This commit is contained in:
parent
259316c8af
commit
551483fa77
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ editor_mouse_handler::editor_mouse_handler(editor_display* disp, editor_map& map
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue