Build confirmation window, for each build action on the map

This commit is contained in:
Sergii Pylypenko
2016-04-06 23:34:28 +03:00
parent a474c233e0
commit a7a8e35968
10 changed files with 204 additions and 1 deletions

View File

@@ -42,6 +42,7 @@
#include "station_base.h"
#include "waypoint_base.h"
#include "command_func.h"
#include "build_confirmation_func.h"
#include "table/strings.h"
@@ -1439,6 +1440,12 @@ void Window::InitializeData(WindowNumber window_number)
this->nested_focus = NULL;
this->window_number = window_number;
if (this->window_class != WC_BUILD_CONFIRMATION &&
this->window_class != WC_TOOLTIPS &&
this->window_class != WC_NEWS_WINDOW) {
HideBuildConfirmationWindow();
}
this->OnInit();
/* Initialize nested widget tree. */
if (this->nested_array == NULL) {
@@ -3650,6 +3657,7 @@ static void MoveAllWindowsOffScreen(bool moveOffScreen)
FOR_ALL_WINDOWS_FROM_BACK(w) {
switch (w->window_class) {
case WC_MAIN_WINDOW:
case WC_BUILD_CONFIRMATION:
case WC_BOOTSTRAP:
case WC_MAIN_TOOLBAR:
case WC_MAIN_TOOLBAR_RIGHT: