add warning about deprecated full-tile autoroad
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
{
|
||||
"build_systems":
|
||||
[
|
||||
{
|
||||
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
|
||||
"name": "Anaconda Python Builder",
|
||||
"selector": "source.python",
|
||||
"shell_cmd": "python -u \"$file\""
|
||||
}
|
||||
],
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"file_exclude_patterns":
|
||||
[
|
||||
"*.cod"
|
||||
],
|
||||
"follow_symlinks": true,
|
||||
"path": ".",
|
||||
"file_exclude_patterns": ["*.cod"]
|
||||
"path": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -528,6 +528,7 @@ struct BuildRoadToolbarWindow : Window {
|
||||
|
||||
virtual void OnClick(Point pt, int widget, int click_count)
|
||||
{
|
||||
static bool fullroad_warned = false;
|
||||
_remove_button_clicked = false;
|
||||
_one_way_button_clicked = false;
|
||||
switch (widget) {
|
||||
@@ -548,7 +549,10 @@ struct BuildRoadToolbarWindow : Window {
|
||||
|
||||
case WID_ROT_FULLROAD:
|
||||
HandlePlacePushButton(this, WID_ROT_FULLROAD, _road_type_infos[_cur_roadtype].cursor_autoroad, HT_RECT);
|
||||
// IConsolePrintF(CC_WARNING, "WARNING! Full-tile autoroad tool is deprecated and will be removed in next release.");
|
||||
if (!fullroad_warned) {
|
||||
ShowGoalQuestion(0, 2 /* INFO */, 2 /* OK */, "Full-tile autoroad tool is deprecated and will be removed in next release.\n Use regular autoroad tool instead.");
|
||||
fullroad_warned = true;
|
||||
}
|
||||
this->last_started_action = widget;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user