mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 07:52:05 +03:00
When nothing's selected, don't display anything in the status bar. Previously, it was '...', which looked clickable.
This commit is contained in:
parent
0320b2be89
commit
0feeb3cee4
@ -100,7 +100,7 @@ impl CommonState {
|
|||||||
Line(" to warp"),
|
Line(" to warp"),
|
||||||
])
|
])
|
||||||
} else {
|
} else {
|
||||||
Text::from(Line("..."))
|
Text::new()
|
||||||
};
|
};
|
||||||
if !keys.is_empty() {
|
if !keys.is_empty() {
|
||||||
osd.append(Line(" Hotkeys: "));
|
osd.append(Line(" Hotkeys: "));
|
||||||
@ -228,7 +228,7 @@ impl CommonState {
|
|||||||
Line(" to warp"),
|
Line(" to warp"),
|
||||||
])
|
])
|
||||||
} else {
|
} else {
|
||||||
Text::from(Line("..."))
|
Text::new()
|
||||||
};
|
};
|
||||||
CommonState::draw_custom_osd(g, app, osd);
|
CommonState::draw_custom_osd(g, app, osd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user