Files
commandergenius/project/jni/application/openttd/0239-Align-construction-windows-with-main-toolbar.patch

82 lines
3.0 KiB
Diff

From 5f5f740ab93005b641e6062a9c255117e363c17b Mon Sep 17 00:00:00 2001
From: Juanjo <juanjo.ng.83@gmail.com>
Date: Sat, 19 Oct 2013 11:40:00 +0000
Subject: [PATCH 239/249] Align construction windows with main toolbar.
---
src/dock_gui.cpp | 2 +-
src/industry_gui.cpp | 2 +-
src/road_gui.cpp | 2 +-
src/terraform_gui.cpp | 2 +-
src/town_gui.cpp | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index 2962a09..3ffded2 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -402,7 +402,7 @@ static const NWidgetPart _nested_build_docks_scen_toolbar_widgets[] = {
/** Window definition for the build docks in scenario editor window. */
static WindowDesc _build_docks_scen_toolbar_desc(
- WDP_AUTO, "toolbar_water_scen", 0, 0,
+ WDP_ALIGN_TOOLBAR, "toolbar_water_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_docks_scen_toolbar_widgets, lengthof(_nested_build_docks_scen_toolbar_widgets)
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 3ddb3c5..b886119 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -191,7 +191,7 @@ static const NWidgetPart _nested_build_industry_widgets[] = {
/** Window definition of the dynamic place industries gui */
static WindowDesc _build_industry_desc(
- WDP_AUTO, "build_industry", 170, 212,
+ WDP_ALIGN_TOOLBAR, "build_industry", 170, 212,
WC_BUILD_INDUSTRY, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_industry_widgets, lengthof(_nested_build_industry_widgets)
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 1dc2eb7..353f76b 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -833,7 +833,7 @@ static const NWidgetPart _nested_build_road_scen_widgets[] = {
};
static WindowDesc _build_road_scen_desc(
- WDP_AUTO, "toolbar_road_scen", 0, 0,
+ WDP_ALIGN_TOOLBAR, "toolbar_road_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_road_scen_widgets, lengthof(_nested_build_road_scen_widgets),
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index f8d7e0b..8cfee69 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -746,7 +746,7 @@ static Hotkey terraform_editor_hotkeys[] = {
HotkeyList ScenarioEditorLandscapeGenerationWindow::hotkeys("terraform_editor", terraform_editor_hotkeys, TerraformToolbarEditorGlobalHotkeys);
static WindowDesc _scen_edit_land_gen_desc(
- WDP_AUTO, "toolbar_landscape_scen", 0, 0,
+ WDP_ALIGN_TOOLBAR, "toolbar_landscape_scen", 0, 0,
WC_SCEN_LAND_GEN, WC_NONE,
WDF_CONSTRUCTION,
_nested_scen_edit_land_gen_widgets, lengthof(_nested_scen_edit_land_gen_widgets),
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index d1f9847..ad51d39 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -1212,7 +1212,7 @@ public:
};
static WindowDesc _found_town_desc(
- WDP_AUTO, "build_town", 160, 162,
+ WDP_ALIGN_TOOLBAR, "build_town", 160, 162,
WC_FOUND_TOWN, WC_NONE,
WDF_CONSTRUCTION,
_nested_found_town_widgets, lengthof(_nested_found_town_widgets)
--
1.8.1.2