Update status bar sizing when changing date/time display settings
This commit is contained in:
@@ -72,6 +72,7 @@
|
|||||||
#include "scope_info.h"
|
#include "scope_info.h"
|
||||||
#include "viewport_func.h"
|
#include "viewport_func.h"
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
|
#include "statusbar_gui.h"
|
||||||
|
|
||||||
#include "void_map.h"
|
#include "void_map.h"
|
||||||
#include "station_base.h"
|
#include "station_base.h"
|
||||||
@@ -1306,6 +1307,7 @@ static bool UpdateTimeSettings(int32 p1)
|
|||||||
{
|
{
|
||||||
SetupTimeSettings();
|
SetupTimeSettings();
|
||||||
InvalidateVehTimetableWindow(p1);
|
InvalidateVehTimetableWindow(p1);
|
||||||
|
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_REINIT);
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -210,6 +210,9 @@ struct StatusBarWindow : Window {
|
|||||||
this->ticker_scroll = TICKER_STOP; // reset ticker ...
|
this->ticker_scroll = TICKER_STOP; // reset ticker ...
|
||||||
this->reminder_timeout.SetInterval(REMINDER_STOP); // ... and reminder
|
this->reminder_timeout.SetInterval(REMINDER_STOP); // ... and reminder
|
||||||
break;
|
break;
|
||||||
|
case SBI_REINIT:
|
||||||
|
this->ReInit();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ enum StatusBarInvalidate {
|
|||||||
SBI_SHOW_TICKER, ///< start scrolling news
|
SBI_SHOW_TICKER, ///< start scrolling news
|
||||||
SBI_SHOW_REMINDER, ///< show a reminder (dot on the right side of the statusbar)
|
SBI_SHOW_REMINDER, ///< show a reminder (dot on the right side of the statusbar)
|
||||||
SBI_NEWS_DELETED, ///< abort current news display (active news were deleted)
|
SBI_NEWS_DELETED, ///< abort current news display (active news were deleted)
|
||||||
|
SBI_REINIT, ///< reinit status bar
|
||||||
SBI_END
|
SBI_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -4794,7 +4794,7 @@ max = 3
|
|||||||
str = STR_CONFIG_SETTING_DATE_WITH_TIME
|
str = STR_CONFIG_SETTING_DATE_WITH_TIME
|
||||||
strval = STR_CONFIG_SETTING_DATE_WITH_TIME_NONE
|
strval = STR_CONFIG_SETTING_DATE_WITH_TIME_NONE
|
||||||
strhelp = STR_CONFIG_SETTING_DATE_WITH_TIME_HELPTEXT
|
strhelp = STR_CONFIG_SETTING_DATE_WITH_TIME_HELPTEXT
|
||||||
proc = RedrawScreen
|
proc = UpdateTimeSettings
|
||||||
|
|
||||||
[SDTC_BOOL]
|
[SDTC_BOOL]
|
||||||
var = gui.timetable_start_text_entry
|
var = gui.timetable_start_text_entry
|
||||||
|
Reference in New Issue
Block a user