Hilite the terrain the mouse is over in the scenario editor so that you can tell which terrain will be affected when clicking, even in cases where it's not so obvious (for example when the cursor's hotspot is in an unexpected place).
This commit is contained in:
@@ -157,6 +157,7 @@ void Handle_One_Event() {
|
||||
case sf::Event::MouseMoved:
|
||||
if(mouse_button_held)
|
||||
handle_action(loc(event.mouseMove.x,event.mouseMove.y),event);
|
||||
update_mouse_spot(loc(event.mouseMove.x,event.mouseMove.y));
|
||||
break;
|
||||
|
||||
case sf::Event::MouseButtonReleased:
|
||||
|
Reference in New Issue
Block a user