mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 18:32:35 +01:00
Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. (#12938)
This commit is contained in:
@@ -692,6 +692,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool last_overlay_state;
|
||||
void OnMouseLoop() override
|
||||
{
|
||||
if (last_overlay_state != ShowCargoIconOverlay()) {
|
||||
last_overlay_state = ShowCargoIconOverlay();
|
||||
this->SetDirty();
|
||||
}
|
||||
}
|
||||
|
||||
void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
|
||||
{
|
||||
switch (widget) {
|
||||
|
||||
Reference in New Issue
Block a user