Hilite the hovered element in the types palette.

This commit is contained in:
2025-08-02 01:43:15 -04:00
parent 3bb416b1e4
commit 66c29fdd34

View File

@@ -726,6 +726,7 @@ void set_up_type_buttons(bool reset) {
// How transparent to make non-matching elements in the palette
static const sf::Uint8 FILTER_ALPHA = 255 / 8;
location mouse = translate_mouse_coordinates(sf::Mouse::getPosition(mainPtr()));
// first make terrain buttons
sf::Texture& editor_mixed = *ResMgr::graphics.get("edbuttons");
@@ -925,6 +926,9 @@ void set_up_type_buttons(bool reset) {
}
}break;
}
if(mouse.in(draw_rect)) {
fill_rect(mainPtr(), draw_rect, hilite_colour);
}
}
if(overall_mode < MODE_MAIN_SCREEN) {