mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 21:06:58 +00:00
(svn r19705) -Change: reinitialise the windows when changing the newgrf_developer_tools setting
This commit is contained in:
parent
3461430a34
commit
fef77ca53e
@ -679,6 +679,18 @@ static bool RedrawScreen(int32 p1)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reinitalise all windows, i.e. construct their windows
|
||||||
|
* from the begin. For example to show a particular button
|
||||||
|
* that was previously hidden.
|
||||||
|
* @param p1 ignored
|
||||||
|
*/
|
||||||
|
static bool ReinitWindows(int32 p1)
|
||||||
|
{
|
||||||
|
ReInitAllWindows();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redraw the smallmap after a colour scheme change.
|
* Redraw the smallmap after a colour scheme change.
|
||||||
* @param p1 Callback parameter.
|
* @param p1 Callback parameter.
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
static bool v_PositionMainToolbar(int32 p1);
|
static bool v_PositionMainToolbar(int32 p1);
|
||||||
static bool PopulationInLabelActive(int32 p1);
|
static bool PopulationInLabelActive(int32 p1);
|
||||||
static bool RedrawScreen(int32 p1);
|
static bool RedrawScreen(int32 p1);
|
||||||
|
static bool ReinitWindows(int32 p1);
|
||||||
static bool RedrawSmallmap(int32 p1);
|
static bool RedrawSmallmap(int32 p1);
|
||||||
static bool InvalidateDetailsWindow(int32 p1);
|
static bool InvalidateDetailsWindow(int32 p1);
|
||||||
static bool InvalidateStationBuildWindow(int32 p1);
|
static bool InvalidateStationBuildWindow(int32 p1);
|
||||||
@ -605,7 +606,7 @@ const SettingDesc _settings[] = {
|
|||||||
SDTC_BOOL(gui.show_date_in_logs, S, 0, false, STR_NULL, NULL),
|
SDTC_BOOL(gui.show_date_in_logs, S, 0, false, STR_NULL, NULL),
|
||||||
#endif
|
#endif
|
||||||
SDTC_VAR(gui.developer, SLE_UINT8, S, 0, 1, 0, 2, 0, STR_NULL, NULL),
|
SDTC_VAR(gui.developer, SLE_UINT8, S, 0, 1, 0, 2, 0, STR_NULL, NULL),
|
||||||
SDTC_BOOL(gui.newgrf_developer_tools, S, 0, false, STR_NULL, NULL),
|
SDTC_BOOL(gui.newgrf_developer_tools, S, 0, false, STR_NULL, ReinitWindows),
|
||||||
SDTC_BOOL(gui.ai_developer_tools, S, 0, false, STR_NULL, NULL),
|
SDTC_BOOL(gui.ai_developer_tools, S, 0, false, STR_NULL, NULL),
|
||||||
SDTC_VAR(gui.console_backlog_timeout, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),
|
SDTC_VAR(gui.console_backlog_timeout, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),
|
||||||
SDTC_VAR(gui.console_backlog_length, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),
|
SDTC_VAR(gui.console_backlog_length, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),
|
||||||
|
Loading…
Reference in New Issue
Block a user