1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Implement #3994: Show bottom toolbar with map tooltip

This commit is contained in:
jensj12
2017-08-16 22:27:20 +02:00
committed by Michael Steenbeek
parent c75be48653
commit c3a5ffbe04
7 changed files with 113 additions and 10 deletions

View File

@@ -19,6 +19,7 @@
extern "C"
{
#include "../input.h"
#include "../interface/themes.h"
#include "../interface/widget.h"
#include "../localisation/localisation.h"
}
@@ -76,6 +77,13 @@ static void window_map_tooltip_open();
*/
void window_map_tooltip_update_visibility()
{
if (theme_get_flags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR)
{
// The map tooltip is drawn by the bottom toolbar
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);
return;
}
sint32 cursorX, cursorY;
const CursorState * state = context_get_cursor_state();